summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-07 17:38:23 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-12-11 15:58:36 +0000
commitf823f0a0c04d6f13359f0aac4a2946a6e4dd3649 (patch)
treece62eba2f275630f937a042a85f4b16e20ad5adc
parenta190aba5252da167cf37e1aade6b0077056401b2 (diff)
downloadpoky-f823f0a0c04d6f13359f0aac4a2946a6e4dd3649.tar.gz
bitbake.conf/utils: Drop some OVERRIDES from FILESPATH
There are several overrides that don't make sense as part of FILESPATH. This introduces FILESOVERRIDES and allows us to drop some of the pointless ones, simplifying the files search path further and improving the user experience. If needed by specific recipes, other overrides can be added back in for specific cases. (From OE-Core rev: b8b1b39961332c99d62ee466f7859bd62a0f806f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/utils.bbclass2
-rw-r--r--meta/conf/bitbake.conf2
2 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/utils.bbclass b/meta/classes/utils.bbclass
index c1de2f6930..be0a25a2b9 100644
--- a/meta/classes/utils.bbclass
+++ b/meta/classes/utils.bbclass
@@ -308,7 +308,7 @@ def base_set_filespath(path, d):
308 if extrapaths != "": 308 if extrapaths != "":
309 path = extrapaths.split(":") + path 309 path = extrapaths.split(":") + path
310 # The ":" ensures we have an 'empty' override 310 # The ":" ensures we have an 'empty' override
311 overrides = ((d.getVar("OVERRIDES", True) or "") + ":").split(":") 311 overrides = ((d.getVar("FILESOVERRIDES", True) or "") + ":").split(":")
312 for p in path: 312 for p in path:
313 if p != "": 313 if p != "":
314 for o in overrides: 314 for o in overrides:
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 420bdfa31a..be3bfc2092 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -671,6 +671,8 @@ DISTROOVERRIDES ?= "${@d.getVar('DISTRO', True) or ''}"
671MACHINEOVERRIDES ?= "${MACHINE}" 671MACHINEOVERRIDES ?= "${MACHINE}"
672MACHINEOVERRIDES[vardepsexclude] = "MACHINE" 672MACHINEOVERRIDES[vardepsexclude] = "MACHINE"
673 673
674FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
675
674CPU_FEATURES ?= "" 676CPU_FEATURES ?= ""
675CPU_FEATURES_arm ?= "vfp" 677CPU_FEATURES_arm ?= "vfp"
676 678