2010-03-19 23:12:06 +00:00
|
|
|
addtask listtasks
|
|
|
|
do_listtasks[nostamp] = "1"
|
|
|
|
python do_listtasks() {
|
2014-02-24 16:05:46 +00:00
|
|
|
taskdescs = {}
|
|
|
|
maxlen = 0
|
2012-07-11 17:33:43 +00:00
|
|
|
for e in d.keys():
|
|
|
|
if d.getVarFlag(e, 'task'):
|
2014-02-24 16:05:46 +00:00
|
|
|
maxlen = max(maxlen, len(e))
|
|
|
|
if e.endswith('_setscene'):
|
|
|
|
desc = "%s (setscene version)" % (d.getVarFlag(e[:-9], 'doc') or '')
|
|
|
|
else:
|
|
|
|
desc = d.getVarFlag(e, 'doc') or ''
|
|
|
|
taskdescs[e] = desc
|
|
|
|
|
|
|
|
tasks = sorted(taskdescs.keys())
|
|
|
|
for taskname in tasks:
|
|
|
|
bb.plain("%s %s" % (taskname.ljust(maxlen), taskdescs[taskname]))
|
2010-03-19 23:12:06 +00:00
|
|
|
}
|
|
|
|
|
2010-08-27 11:33:58 +00:00
|
|
|
CLEANFUNCS ?= ""
|
|
|
|
|
2012-08-17 13:19:22 +00:00
|
|
|
T_task-clean = "${LOG_DIR}/cleanlogs/${PN}"
|
2010-03-19 23:12:06 +00:00
|
|
|
addtask clean
|
|
|
|
do_clean[nostamp] = "1"
|
2010-03-22 17:12:38 +00:00
|
|
|
python do_clean() {
|
2012-07-11 17:33:43 +00:00
|
|
|
"""clear the build and temp directories"""
|
|
|
|
dir = d.expand("${WORKDIR}")
|
|
|
|
bb.note("Removing " + dir)
|
|
|
|
oe.path.remove(dir)
|
2010-03-19 23:12:06 +00:00
|
|
|
|
2015-06-18 14:14:16 +00:00
|
|
|
dir = "%s.*" % bb.data.expand(d.getVar('STAMP', False), d)
|
2012-07-11 17:33:43 +00:00
|
|
|
bb.note("Removing " + dir)
|
|
|
|
oe.path.remove(dir)
|
2010-08-27 11:33:58 +00:00
|
|
|
|
2012-07-11 17:33:43 +00:00
|
|
|
for f in (d.getVar('CLEANFUNCS', True) or '').split():
|
|
|
|
bb.build.exec_func(f, d)
|
2010-03-19 23:12:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
addtask checkuri
|
|
|
|
do_checkuri[nostamp] = "1"
|
|
|
|
python do_checkuri() {
|
2012-07-11 17:33:43 +00:00
|
|
|
src_uri = (d.getVar('SRC_URI', True) or "").split()
|
|
|
|
if len(src_uri) == 0:
|
|
|
|
return
|
|
|
|
|
|
|
|
localdata = bb.data.createCopy(d)
|
|
|
|
bb.data.update_data(localdata)
|
|
|
|
|
|
|
|
try:
|
|
|
|
fetcher = bb.fetch2.Fetch(src_uri, localdata)
|
|
|
|
fetcher.checkstatus()
|
|
|
|
except bb.fetch2.BBFetchException, e:
|
|
|
|
raise bb.build.FuncFailed(e)
|
2010-03-19 23:12:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
addtask checkuriall after do_checkuri
|
2012-07-02 12:27:46 +00:00
|
|
|
do_checkuriall[recrdeptask] = "do_checkuriall do_checkuri"
|
2013-06-19 13:05:17 +00:00
|
|
|
do_checkuriall[recideptask] = "do_${BB_DEFAULT_TASK}"
|
2010-03-19 23:12:06 +00:00
|
|
|
do_checkuriall[nostamp] = "1"
|
2010-03-22 17:12:38 +00:00
|
|
|
do_checkuriall() {
|
2010-03-19 23:12:06 +00:00
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
addtask fetchall after do_fetch
|
2012-07-02 12:27:46 +00:00
|
|
|
do_fetchall[recrdeptask] = "do_fetchall do_fetch"
|
2013-06-19 13:05:17 +00:00
|
|
|
do_fetchall[recideptask] = "do_${BB_DEFAULT_TASK}"
|
2010-03-22 17:12:38 +00:00
|
|
|
do_fetchall() {
|
2010-03-19 23:12:06 +00:00
|
|
|
:
|
|
|
|
}
|