]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_base: if the SDKIMAGE_FEATURES changes, refresh the SDK
authorMark Hatle <mark.hatle@kernel.crashing.org>
Fri, 7 Feb 2020 17:43:37 +0000 (11:43 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 13 Feb 2020 12:18:49 +0000 (12:18 +0000)
Since the features are processed by a python fragment, we need to explicitly
list the variables that should affect the resulting hash, and thus sstate
re-use.

Signed-off-by: Mark Hatle <mark.hatle@kernel.crashing.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/populate_sdk_base.bbclass

index d03465b6fc94706c742bcda37def266ecd5b57cd..3248bb01c3a7aee67f23f24a80978bcc0b323b14 100644 (file)
@@ -21,6 +21,7 @@ def complementary_globs(featurevar, d):
 
 SDKIMAGE_FEATURES ??= "dev-pkgs dbg-pkgs src-pkgs ${@bb.utils.contains('DISTRO_FEATURES', 'api-documentation', 'doc-pkgs', '', d)}"
 SDKIMAGE_INSTALL_COMPLEMENTARY = '${@complementary_globs("SDKIMAGE_FEATURES", d)}'
+SDKIMAGE_INSTALL_COMPLEMENTARY[vardeps] += "SDKIMAGE_FEATURES"
 
 PACKAGE_ARCHS_append_task-populate-sdk = " sdk-provides-dummy-target"
 SDK_PACKAGE_ARCHS += "sdk-provides-dummy-${SDKPKGSUFFIX}"