2010-03-19 23:12:06 +00:00
|
|
|
addtask listtasks
|
|
|
|
do_listtasks[nostamp] = "1"
|
|
|
|
python do_listtasks() {
|
|
|
|
import sys
|
|
|
|
# emit variables and shell functions
|
|
|
|
#bb.data.emit_env(sys.__stdout__, d)
|
|
|
|
# emit the metadata which isnt valid shell
|
|
|
|
for e in d.keys():
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
if d.getVarFlag(e, 'task'):
|
2010-11-28 15:00:42 +00:00
|
|
|
bb.plain("%s" % e)
|
2010-03-19 23:12:06 +00:00
|
|
|
}
|
|
|
|
|
2010-08-27 11:33:58 +00:00
|
|
|
CLEANFUNCS ?= ""
|
|
|
|
|
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() {
|
2010-03-19 23:12:06 +00:00
|
|
|
"""clear the build and temp directories"""
|
2012-03-03 11:21:22 +00:00
|
|
|
dir = d.expand("${WORKDIR}")
|
2010-08-05 11:21:33 +00:00
|
|
|
bb.note("Removing " + dir)
|
|
|
|
oe.path.remove(dir)
|
2010-03-19 23:12:06 +00:00
|
|
|
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
dir = "%s.*" % bb.data.expand(d.getVar('STAMP'), d)
|
2010-08-05 11:21:33 +00:00
|
|
|
bb.note("Removing " + dir)
|
|
|
|
oe.path.remove(dir)
|
2010-08-27 11:33:58 +00:00
|
|
|
|
2012-03-03 10:59:25 +00:00
|
|
|
for f in (d.getVar('CLEANFUNCS', True) or '').split():
|
2010-08-27 11:33:58 +00:00
|
|
|
bb.build.exec_func(f, d)
|
2010-03-19 23:12:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
addtask checkuri
|
|
|
|
do_checkuri[nostamp] = "1"
|
|
|
|
python do_checkuri() {
|
Convert to use direct access to the data store (instead of bb.data.*Var*())
This is the result of running the following over the metadata:
sed \
-e 's:bb.data.\(setVar([^,()]*,[^,()]*\), *\([^ )]*\) *):\2.\1):g' \
-e 's:bb.data.\(setVarFlag([^,()]*,[^,()]*,[^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^(), ]*\) *,\([^)]*\)):\2.\1,\3):g' \
-e 's:bb.data.\(getVarFlag([^,()]*,[^,()]*\), *\([^() ]*\) *):\2.\1):g' \
-e 's:bb.data.\(getVar([^,()]*\), *\([^) ]*\) *):\2.\1):g' \
-i `grep -ril bb.data *`
(From OE-Core rev: b22831fd63164c4db9c0b72934d7d734a6585251)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2011-11-09 15:00:01 +00:00
|
|
|
src_uri = (d.getVar('SRC_URI', True) or "").split()
|
2011-02-07 10:16:00 +00:00
|
|
|
if len(src_uri) == 0:
|
|
|
|
return
|
2010-03-19 23:12:06 +00:00
|
|
|
|
|
|
|
localdata = bb.data.createCopy(d)
|
|
|
|
bb.data.update_data(localdata)
|
|
|
|
|
2011-02-07 10:16:00 +00:00
|
|
|
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
|
|
|
|
do_checkuriall[recrdeptask] = "do_checkuri"
|
|
|
|
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
|
|
|
|
do_fetchall[recrdeptask] = "do_fetch"
|
2010-03-22 17:12:38 +00:00
|
|
|
do_fetchall() {
|
2010-03-19 23:12:06 +00:00
|
|
|
:
|
|
|
|
}
|
|
|
|
|
|
|
|
addtask buildall after do_build
|
|
|
|
do_buildall[recrdeptask] = "do_build"
|
2010-03-22 17:12:38 +00:00
|
|
|
do_buildall() {
|
2010-03-19 23:12:06 +00:00
|
|
|
:
|
|
|
|
}
|