conf/bitbake.conf: allow new field custom for TARGET_SYS
authorHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 28 Jul 2006 21:34:45 +0000 (21:34 +0000)
committerHenning Heinold <heinold@inf.fu-berlin.de>
Fri, 28 Jul 2006 21:34:45 +0000 (21:34 +0000)
some architecture has no sub-arch like msp430, so
we should honor this because otherwise the configure-scripts
for binutils and gcc won't work the right way

conf/bitbake.conf

index d446d40..4d99f08 100644 (file)
@@ -51,7 +51,7 @@ HOST_CC_ARCH = "${TARGET_CC_ARCH}"
 TARGET_ARCH = "INVALID"
 TARGET_OS = "INVALID"
 TARGET_VENDOR = "${BUILD_VENDOR}"
-TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}-${TARGET_OS}"
+TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}"
 TARGET_PREFIX = "${TARGET_SYS}-"
 TARGET_CC_ARCH = ""