Skip to contentSkip to conversation

Fix vardeps issue with SDK generation

PATCH New Mark Hatle 1 participant 2 messages Feb 7, 2020

lore
Share & tools
lore

Mark Hatle

author
#0 lore raw

cover Fix vardeps issue with SDK generation

I sent this before, but I suspect it got lost in the unrelated microblaze rework. No changes from the prior version, just resending to make it easier to find.

Mark Hatle (1):
populate_sdk_base: if the SDKIMAGE_FEATURES changes, refresh the SDK

 meta/classes/populate_sdk_base.bbclass | 1 +
 1 file changed, 1 insertion(+)
Signature · 1 line
2.17.1
author
#1 lore raw

PATCH 1/1 populate_sdk_base: if the SDKIMAGE_FEATURES changes, refresh the SDK

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.

---
 meta/classes/populate_sdk_base.bbclass | 1 +
 1 file changed, 1 insertion(+)
meta/classes/populate_sdk_base.bbclass +1 -0
index d03465b6fc..3248bb01c3 100644
@@ -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}"
Signature · 1 line
2.17.1