]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake.conf/utils: Drop some OVERRIDES from FILESPATH
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 7 Dec 2012 17:38:23 +0000 (17:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 11 Dec 2012 15:58:27 +0000 (15:58 +0000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/utils.bbclass
meta/conf/bitbake.conf

index c1de2f6930d17d0cbb18ee74f88542cfd1e54b27..be0a25a2b9b81db38ca5165a6909014c8c3a6555 100644 (file)
@@ -308,7 +308,7 @@ def base_set_filespath(path, d):
     if extrapaths != "":
         path = extrapaths.split(":") + path
     # The ":" ensures we have an 'empty' override
-    overrides = ((d.getVar("OVERRIDES", True) or "") + ":").split(":")
+    overrides = ((d.getVar("FILESOVERRIDES", True) or "") + ":").split(":")
     for p in path:
         if p != "": 
             for o in overrides:
index 420bdfa31a062e01843cb6dc9988de5aa1da2409..be3bfc2092327de3bce91f4512dd96d0515391c7 100644 (file)
@@ -671,6 +671,8 @@ DISTROOVERRIDES ?= "${@d.getVar('DISTRO', True) or ''}"
 MACHINEOVERRIDES ?= "${MACHINE}"
 MACHINEOVERRIDES[vardepsexclude] = "MACHINE"
 
+FILESOVERRIDES = "${TRANSLATED_TARGET_ARCH}:${MACHINEOVERRIDES}:${DISTROOVERRIDES}"
+
 CPU_FEATURES ?= ""
 CPU_FEATURES_arm ?= "vfp"