summaryrefslogtreecommitdiff
path: root/meta-facebook/conf/machine/include/facebook-withhost.inc
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2021-11-05 17:26:48 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-11-10 21:12:12 +0300
commit8376db433f73a311d5d6acdaefb3a6cfcd034560 (patch)
tree525858d74089fa1906033dc23549dc71eb902d60 /meta-facebook/conf/machine/include/facebook-withhost.inc
parentd83b524fcf1bf3a0fa2851591e0abf845fbdeaa3 (diff)
downloadopenbmc-8376db433f73a311d5d6acdaefb3a6cfcd034560.tar.xz
meta-facebook: revamp OVERRIDES
Ensure OVERRIDES are specific, MACHINE or DISTRO, rather than extending the primary OVERRIDES variable. Fix the order so that the variables are ordered from least-specific to most-specific since bitbake applies overrides in increasing order. This makes it so that 'fb-withhost' is applied before 'fb-compute-multihost' is applied before 'yosemitev2'. Thus, if a recipe has a specialization for 'yosemitev2' it is used rather than the weaker specialization for 'fb-withhost'. Tested by checking the OVERRIDES and MACHINEOVERRIDES for Bletchley, Tiogapass, and Yosemitev2 to verify they look correct. ``` MACHINEOVERRIDES="armv7a:aspeed:aspeed-g6:fb-nohost:bletchley" MACHINEOVERRIDES="armv6:aspeed:aspeed-g5:fb-withhost:fb-compute:fb-compute-singlehost:tiogapass" MACHINEOVERRIDES="armv6:aspeed:aspeed-g5:fb-withhost:fb-compute:fb-compute-multihost:yosemitev2" ``` Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Id5fa38de29c748e4ceafd5ef5c831b4f6434ea01
Diffstat (limited to 'meta-facebook/conf/machine/include/facebook-withhost.inc')
-rw-r--r--meta-facebook/conf/machine/include/facebook-withhost.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta-facebook/conf/machine/include/facebook-withhost.inc b/meta-facebook/conf/machine/include/facebook-withhost.inc
index 8567f696c..861d35f86 100644
--- a/meta-facebook/conf/machine/include/facebook-withhost.inc
+++ b/meta-facebook/conf/machine/include/facebook-withhost.inc
@@ -1,3 +1,5 @@
+MACHINEOVERRIDES =. "fb-withhost:"
+
require conf/machine/include/facebook.inc
MACHINE_FEATURES += "\
@@ -12,4 +14,3 @@ VIRTUAL-RUNTIME_obmc-chassis-state-manager ?= "x86-power-control"
PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw ?= "phosphor-ipmi-kcs"
-OVERRIDES .= ":fb-withhost"