summaryrefslogtreecommitdiffstats
path: root/meta/classes/archive-configured-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:58:26 +0100
commit3438927b301131c10a2be2ea53481348356620ee (patch)
tree37f82a07a8eefcffd6f364a621383824404c8c67 /meta/classes/archive-configured-source.bbclass
parent10219f05608308175600232d2e6887c524fcce25 (diff)
downloadpoky-3438927b301131c10a2be2ea53481348356620ee.tar.gz
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. (From OE-Core rev: 2400a74923e51e17ecfa94c2d63908b0b2aac76a) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/archive-configured-source.bbclass')
-rw-r--r--meta/classes/archive-configured-source.bbclass7
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/archive-configured-source.bbclass b/meta/classes/archive-configured-source.bbclass
index a481b141db..54c234406a 100644
--- a/meta/classes/archive-configured-source.bbclass
+++ b/meta/classes/archive-configured-source.bbclass
@@ -14,7 +14,7 @@ addtask do_archive_configured_sources after do_configure
14addtask do_archive_scripts_logs 14addtask do_archive_scripts_logs
15 15
16# Get dump date and create diff file 16# Get dump date and create diff file
17addtask do_dumpdata_create_diff_gz before do_rootfs 17addtask do_dumpdata_create_diff_gz
18 18
19python () { 19python () {
20 pn = d.getVar('PN', True) 20 pn = d.getVar('PN', True)
@@ -34,7 +34,10 @@ python () {
34 d.appendVarFlag('do_compile', 'depends', ' %s:do_archive_configured_sources' %pn) 34 d.appendVarFlag('do_compile', 'depends', ' %s:do_archive_configured_sources' %pn)
35 build_deps += ' %s:do_archive_configured_sources' %pn 35 build_deps += ' %s:do_archive_configured_sources' %pn
36 36
37 d.appendVarFlag('do_build', 'depends', build_deps) 37 if bb.data.inherits_class('image', d):
38 d.appendVarFlag('do_rootfs', 'depends', build_deps)
39 else:
40 d.appendVarFlag('do_build', 'depends', build_deps)
38} 41}
39 42
40ARCHIVE_SSTATE_OUTDIR = "${DEPLOY_DIR}/sources/" 43ARCHIVE_SSTATE_OUTDIR = "${DEPLOY_DIR}/sources/"