summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorPatrick Ohly <patrick.ohly@intel.com>2017-04-10 10:28:12 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-04-11 18:10:17 +0100
commit874a46b6a76adc34a24655a975ca65dbb1ad7f06 (patch)
tree97cbf0da2d95fd5779984c9eb83ba746b0d37360 /meta/classes
parentae65b95354dad27052782160813010b27e10c4fc (diff)
downloadpoky-874a46b6a76adc34a24655a975ca65dbb1ad7f06.tar.gz
buildhistory.bbclass: do not influence sstate of do_rootfs
Enabling or disabling buildhistory caused a rebuild of images, which is undesirable. For example, it prevented image reuse from a main build with buildhistory in a following oe-selftest where buildhistory must be disabled. The reason are the additional ROOTFS_POSTUNINSTALL_COMMAND and ROOTFS_POSTUNINSTALL_COMMAND entries. Those need to be excluded both via vardepvalueexclude and vardepsexclude. (From OE-Core rev: e4c28ea05ef4514deb3d19e8e33f81d352712455) Signed-off-by: Patrick Ohly <patrick.ohly@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/buildhistory.bbclass12
1 files changed, 8 insertions, 4 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 109b375059..eea1e72a28 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -579,10 +579,14 @@ python buildhistory_get_extra_sdkinfo() {
579 579
580# By using ROOTFS_POSTUNINSTALL_COMMAND we get in after uninstallation of 580# By using ROOTFS_POSTUNINSTALL_COMMAND we get in after uninstallation of
581# unneeded packages but before the removal of packaging files 581# unneeded packages but before the removal of packaging files
582ROOTFS_POSTUNINSTALL_COMMAND += " buildhistory_list_installed_image ;\ 582ROOTFS_POSTUNINSTALL_COMMAND += "buildhistory_list_installed_image ;"
583 buildhistory_get_image_installed ; " 583ROOTFS_POSTUNINSTALL_COMMAND += "buildhistory_get_image_installed ;"
584 584ROOTFS_POSTUNINSTALL_COMMAND[vardepvalueexclude] .= "| buildhistory_list_installed_image ;| buildhistory_get_image_installed ;"
585IMAGE_POSTPROCESS_COMMAND += " buildhistory_get_imageinfo ; " 585ROOTFS_POSTUNINSTALL_COMMAND[vardepsexclude] += "buildhistory_list_installed_image buildhistory_get_image_installed"
586
587IMAGE_POSTPROCESS_COMMAND += "buildhistory_get_imageinfo ;"
588IMAGE_POSTPROCESS_COMMAND[vardepvalueexclude] .= "| buildhistory_get_imageinfo ;"
589IMAGE_POSTPROCESS_COMMAND[vardepsexclude] += "buildhistory_get_imageinfo"
586 590
587# We want these to be the last run so that we get called after complementary package installation 591# We want these to be the last run so that we get called after complementary package installation
588POPULATE_SDK_POST_TARGET_COMMAND_append = " buildhistory_list_installed_sdk_target;" 592POPULATE_SDK_POST_TARGET_COMMAND_append = " buildhistory_list_installed_sdk_target;"