For PACKAGECONFIG settings in recipes, we care about the end value, we don't
really care how it is constructed. bbappends to recipes can add things to
the default PACKAGECONFIG settings, for example being dependent on a 
DISTRO_FEATURE
or other variable. If the computed value doesn't change, the task hashes can 
remain
constant, allowing for better sstate reuse.

To do this, set a vardepvalue of the variable value itself, ignoring how
the actual value is calculated.

Signed-off-by: Richard Purdie <[email protected]>
---
 meta/conf/bitbake.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index f21e8f8918b..5f632d9f8e7 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -931,6 +931,10 @@ SHELL[unexport] = "1"
 # Used by canadian-cross to handle string conversions on TARGET_ARCH where 
needed
 TRANSLATED_TARGET_ARCH ??= "${@d.getVar('TARGET_ARCH').replace("_", "-")}"
 
+# We only care about the computed configuration, not how it is constructed 
which may
+# vary with bbappends
+PACKAGECONFIG[vardepvalue] = "${PACKAGECONFIG}"
+
 # Set a default umask to use for tasks for determinism
 BB_DEFAULT_UMASK ??= "022"
 # The umask to use for shared files (e.g. DL_DIR and SSTATE_DIR)
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#232882): 
https://lists.openembedded.org/g/openembedded-core/message/232882
Mute This Topic: https://lists.openembedded.org/mt/118260168/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to