summaryrefslogtreecommitdiff
path: root/meta/classes/archive-original-source.bbclass
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-05-07 15:31:14 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-05-07 13:57:26 +0100
commit2400a74923e51e17ecfa94c2d63908b0b2aac76a (patch)
tree06e1da3baba6c7e2676b359200075b23ce6ecc41 /meta/classes/archive-original-source.bbclass
parentea6b28cad959d9ebbaf0ecbd695d1d72c0c01151 (diff)
downloadopenembedded-core-2400a74923e51e17ecfa94c2d63908b0b2aac76a.tar.gz
openembedded-core-2400a74923e51e17ecfa94c2d63908b0b2aac76a.tar.bz2
openembedded-core-2400a74923e51e17ecfa94c2d63908b0b2aac76a.zip
archive-*-source.bbclass: handle dependency in anonymous function
Using "before do_rootfs" would have this task added to do_rootfs dependencies regardless of the filtering options. Instead, add this dependency in the anonymous python function. Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archive-original-source.bbclass')
-rw-r--r--meta/classes/archive-original-source.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/archive-original-source.bbclass b/meta/classes/archive-original-source.bbclass
index 2796ff9600..7e9ed6d111 100644
--- a/meta/classes/archive-original-source.bbclass
+++ b/meta/classes/archive-original-source.bbclass
@@ -14,7 +14,7 @@ addtask do_archive_original_sources_patches after do_unpack
addtask do_archive_scripts_logs
# Get dump date and create diff file
-addtask do_dumpdata_create_diff_gz before do_rootfs
+addtask do_dumpdata_create_diff_gz
python () {
pn = d.getVar('PN', True)
@@ -34,7 +34,10 @@ python () {
d.appendVarFlag('do_patch', 'depends', ' %s:do_archive_original_sources_patches' %pn)
build_deps += ' %s:do_archive_original_sources_patches' %pn
- d.appendVarFlag('do_build', 'depends', build_deps)
+ if bb.data.inherits_class('image', d):
+ d.appendVarFlag('do_rootfs', 'depends', build_deps)
+ else:
+ d.appendVarFlag('do_build', 'depends', build_deps)
}
ARCHIVE_SSTATE_OUTDIR = "${DEPLOY_DIR}/sources/"