summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-07 13:12:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-08 13:34:46 +0100
commitaf950e2c0923996788fa147feddbf4a9522b30f4 (patch)
treed0df62e30a23a307cc3cd418c7337800bb2693bf /meta
parentaac343acc01ea275e05acd8ccf0e6f73581d535a (diff)
downloadpoky-af950e2c0923996788fa147feddbf4a9522b30f4.tar.gz
staging: Ensure a clean recipe sysroot removes addto_recipe_sysroot stamps
The commands: bitbake nodejs-native; bitbake nodejs-native -c clean; bitbake nodejs-native; bitbake -c addto_recipe_sysroot nodejs-native; bitbake -c devshell nodejs-native; bitbake -c addto_recipe_sysroot nodejs-native; bitbake -c devshell nodejs-native; never result in npm in the sysroot within devshell. The reason is the addto_recipe_sysroot stamp isn't removed when do_fetch is run but the sysroot is cleaned. With this patch, the second devshell will contain npm, which I think is probably the best outcome we can hope for here. [YOCTO #11461] (From OE-Core rev: c440298674ab3b960c83a127eedb9e1b66bddf78) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/staging.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/staging.bbclass b/meta/classes/staging.bbclass
index fe8229499a..8f470d523b 100644
--- a/meta/classes/staging.bbclass
+++ b/meta/classes/staging.bbclass
@@ -559,6 +559,9 @@ addtask do_prepare_recipe_sysroot before do_configure after do_fetch
559# Clean out the recipe specific sysroots before do_fetch 559# Clean out the recipe specific sysroots before do_fetch
560# (use a prefunc so we can order before extend_recipe_sysroot if it gets added) 560# (use a prefunc so we can order before extend_recipe_sysroot if it gets added)
561python clean_recipe_sysroot() { 561python clean_recipe_sysroot() {
562 # We remove these stamps since we're removing any content they'd have added with
563 # cleandirs. This removes the sigdata too, likely not a big deal,
564 oe.path.remove(d.getVar("STAMP") + "*addto_recipe_sysroot*")
562 return 565 return
563} 566}
564clean_recipe_sysroot[cleandirs] += "${RECIPE_SYSROOT} ${RECIPE_SYSROOT_NATIVE}" 567clean_recipe_sysroot[cleandirs] += "${RECIPE_SYSROOT} ${RECIPE_SYSROOT_NATIVE}"