]> code.ossystems Code Review - openembedded-core.git/commitdiff
conf/bitbake.conf: Add MACHINEOVERRIDES variable
authorKhem Raj <raj.khem@gmail.com>
Fri, 13 May 2011 18:39:04 +0000 (11:39 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 16 May 2011 14:21:11 +0000 (15:21 +0100)
By defualt it points to $MACHINE but sometimes its desired
to have more than one overrides stemming out of a machine
then they can be added to MACHINEOVERRIDES.

e.g. MACHINEOVERRIDES = "${MACHINE}:nslu2"

Note that if you redefine MACHINEOVERRIDES then default
override for machine has to be added to it explicitly
otherwise it will get lost.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/conf/bitbake.conf

index 7c72de1e29bef4d51974d42d2def368ac87b9cb2..8b6236e03ea8c6d49f9064e745dffe293026b293 100644 (file)
@@ -610,8 +610,9 @@ AUTO_LIBNAME_PKGS = "${PACKAGES}"
 #
 # This works for  functions as well, they are really just environment variables.
 # Default OVERRIDES to make compilation fail fast in case of build system misconfiguration.
-OVERRIDES = "local:${MACHINE}:${DISTROOVERRIDES}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}:forcevariable"
+OVERRIDES = "local:${MACHINEOVERRIDES}:${DISTROOVERRIDES}:${TARGET_OS}:${TARGET_ARCH}:build-${BUILD_OS}:fail-fast:pn-${PN}:forcevariable"
 DISTROOVERRIDES ?= "${DISTRO}"
+MACHINEOVERRIDES ?= "${MACHINE}"
 
 CPU_FEATURES ?= ""
 CPU_FEATURES_arm ?= "vfp"