From: Paul Sokolovsky Date: Tue, 18 Dec 2007 15:54:32 +0000 (+0000) Subject: bitbake.conf: Allow TARGET_ARCH to be passed via environment. X-Git-Tag: Release-2010-05/1~8136^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed6fea19ceed3790a8e6d9553a573e7ff63474c9;p=openembedded.git 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 --- 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')]}"