summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/archive-configured-source.bbclass7
-rw-r--r--meta/classes/archive-original-source.bbclass7
-rw-r--r--meta/classes/archive-patched-source.bbclass7
3 files changed, 15 insertions, 6 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/"
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
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_patch', 'depends', ' %s:do_archive_original_sources_patches' %pn) 34 d.appendVarFlag('do_patch', 'depends', ' %s:do_archive_original_sources_patches' %pn)
35 build_deps += ' %s:do_archive_original_sources_patches' %pn 35 build_deps += ' %s:do_archive_original_sources_patches' %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/"
diff --git a/meta/classes/archive-patched-source.bbclass b/meta/classes/archive-patched-source.bbclass
index 995a259473..d8d494a45d 100644
--- a/meta/classes/archive-patched-source.bbclass
+++ b/meta/classes/archive-patched-source.bbclass
@@ -14,7 +14,7 @@ addtask do_archive_patched_sources after do_patch
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_configure', 'depends', ' %s:do_archive_patched_sources' %pn) 34 d.appendVarFlag('do_configure', 'depends', ' %s:do_archive_patched_sources' %pn)
35 build_deps += ' %s:do_archive_patched_sources' %pn 35 build_deps += ' %s:do_archive_patched_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/"