[oe-commits] org.oe.dev bitbake.conf: Allow TARGET_ARCH to be passed via environment.

pfalcon commit openembedded-commits at lists.openembedded.org
Tue Dec 18 17:34:25 UTC 2007


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

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: b98706e643fe20b21c34102738a4ce726bc5fb60
ViewMTN: http://monotone.openembedded.org/revision/info/b98706e643fe20b21c34102738a4ce726bc5fb60
Files:
1
conf/bitbake.conf
Diffs:

#
# mt diff -red1b1f05dd903161c432138c11d62d2b679301d0 -rb98706e643fe20b21c34102738a4ce726bc5fb60
#
# 
# 
# patch "conf/bitbake.conf"
#  from [b14f08a63b2e6c059abc0f50bbbb04c3b06c5cd5]
#    to [5044eed5572b1c9c12c31cf7952ccedc1648524c]
# 
============================================================
--- conf/bitbake.conf	b14f08a63b2e6c059abc0f50bbbb04c3b06c5cd5
+++ conf/bitbake.conf	5044eed5572b1c9c12c31cf7952ccedc1648524c
@@ -82,7 +82,7 @@ HOST_CC_ARCH = "${TARGET_CC_ARCH}"
 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')]}"






More information about the Openembedded-commits mailing list