From ed6fea19ceed3790a8e6d9553a573e7ff63474c9 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Tue, 18 Dec 2007 15:54:32 +0000 Subject: 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 --- conf/bitbake.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')]}" -- cgit v1.2.3