summaryrefslogtreecommitdiff
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 10:37:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-10 12:01:04 +0000
commitd1a1635a458233a29ea8998e74eec11c856ee371 (patch)
tree9759a1fbf9e8fc03745ea6b1b00f79fb7c94b326 /meta/classes/package.bbclass
parent388a92bb7c0ea64b18a31c0c82437cc03ab309d8 (diff)
downloadopenembedded-core-d1a1635a458233a29ea8998e74eec11c856ee371.tar.gz
openembedded-core-d1a1635a458233a29ea8998e74eec11c856ee371.tar.bz2
openembedded-core-d1a1635a458233a29ea8998e74eec11c856ee371.tar.xz
openembedded-core-d1a1635a458233a29ea8998e74eec11c856ee371.zip
package.bbclass: Only set recrdeptask for do_build if packaging is enabled for the recipe
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index 0698f6451..fd29aaa03 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -158,6 +158,8 @@ python () {
# shlibs requires any DEPENDS to have already packaged for the *.list files
deps.append("do_package")
bb.data.setVarFlag('do_package', 'deptask', " ".join(deps), d)
+ else:
+ d.setVar("PACKAGERDEPTASK", "")
}
def runstrip(file, d):
@@ -1129,7 +1131,8 @@ do_package_write () {
:
}
do_package_write[noexec] = "1"
-do_build[recrdeptask] += "do_package_write"
+PACKAGERDEPTASK = "do_package_write"
+do_build[recrdeptask] += "${PACKAGERDEPTASK}"
addtask package_write before do_build after do_package
#