summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <pmiscml@gmail.com>2007-12-18 15:54:32 +0000
committerPaul Sokolovsky <pmiscml@gmail.com>2007-12-18 15:54:32 +0000
commited6fea19ceed3790a8e6d9553a573e7ff63474c9 (patch)
treedace04cffcc3be9ba41fcba246fcfc20fae02a53
parentfd598aa1d87ced8eae98b6be657c4fe371fb307a (diff)
bitbake.conf: Allow TARGET_ARCH to be passed via environment.
* This is to allow easy building of packages using generic distros, e.g.: DISTRO=generic-uclibc TARGET_ARCH=mipsel bitbake nano
-rw-r--r--conf/bitbake.conf2
1 files changed, 1 insertions, 1 deletions
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 676421961f..ac2d281123 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -82,7 +82,7 @@ HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}"
HOST_PREFIX = "${TARGET_PREFIX}"
HOST_CC_ARCH = "${TARGET_CC_ARCH}"
-TARGET_ARCH = "INVALID"
+TARGET_ARCH ?= "INVALID"
TARGET_OS = "INVALID"
TARGET_VENDOR = "${BUILD_VENDOR}"
TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}"