diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2011-07-27 15:31:28 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-05 17:15:59 +0100 |
commit | 17e8d8558dbabe2540860ecf1232214dfdf90ff0 (patch) | |
tree | af12f217fc152e4f85993e318088c2d2b0f943cc /meta/conf/bitbake.conf | |
parent | 5561aaad28ed6db6d962f88db32814043044731f (diff) | |
download | poky-17e8d8558dbabe2540860ecf1232214dfdf90ff0.tar.gz |
toolchain-scripts & other classes: add TARGET_LD_ARCH & TARGET_AS_ARCH vars
This is comming from x32 need to pass special parameters to ld & as.
(From OE-Core rev: 96931af89f9cc3056e413cff437a85eca85b3b75)
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/bitbake.conf')
-rw-r--r-- | meta/conf/bitbake.conf | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf index 6f0b42c237..a8321ed878 100644 --- a/meta/conf/bitbake.conf +++ b/meta/conf/bitbake.conf | |||
@@ -71,6 +71,8 @@ BUILD_VENDOR = "" | |||
71 | BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}" | 71 | BUILD_SYS = "${BUILD_ARCH}${BUILD_VENDOR}-${BUILD_OS}" |
72 | BUILD_PREFIX = "" | 72 | BUILD_PREFIX = "" |
73 | BUILD_CC_ARCH = "" | 73 | BUILD_CC_ARCH = "" |
74 | BUILD_LD_ARCH = "" | ||
75 | BUILD_AS_ARCH = "" | ||
74 | BUILD_EXEEXT = "" | 76 | BUILD_EXEEXT = "" |
75 | 77 | ||
76 | HOST_ARCH = "${TARGET_ARCH}" | 78 | HOST_ARCH = "${TARGET_ARCH}" |
@@ -79,10 +81,14 @@ HOST_VENDOR = "${TARGET_VENDOR}" | |||
79 | HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" | 81 | HOST_SYS = "${HOST_ARCH}${HOST_VENDOR}-${HOST_OS}" |
80 | HOST_PREFIX = "${TARGET_PREFIX}" | 82 | HOST_PREFIX = "${TARGET_PREFIX}" |
81 | HOST_CC_ARCH = "${TARGET_CC_ARCH}" | 83 | HOST_CC_ARCH = "${TARGET_CC_ARCH}" |
84 | HOST_LD_ARCH = "${TARGET_LD_ARCH}" | ||
85 | HOST_AS_ARCH = "${TARGET_AS_ARCH}" | ||
82 | HOST_EXEEXT = "" | 86 | HOST_EXEEXT = "" |
83 | 87 | ||
84 | TUNE_ARCH ??= "INVALID" | 88 | TUNE_ARCH ??= "INVALID" |
85 | TUNE_CCARGS ??= "" | 89 | TUNE_CCARGS ??= "" |
90 | TUNE_LDARGS ??= "" | ||
91 | TUNE_ASARGS ??= "" | ||
86 | TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}" | 92 | TUNE_FEATURES ??= "${TUNE_FEATURES_tune-${DEFAULTTUNE}}" |
87 | LIBCEXTENSION ??= "" | 93 | LIBCEXTENSION ??= "" |
88 | ABIEXTENSION ??= "" | 94 | ABIEXTENSION ??= "" |
@@ -93,6 +99,8 @@ TARGET_VENDOR = "-oe" | |||
93 | TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}" | 99 | TARGET_SYS = "${TARGET_ARCH}${TARGET_VENDOR}${@['-' + bb.data.getVar('TARGET_OS', d, 1), ''][bb.data.getVar('TARGET_OS', d, 1) == ('' or 'custom')]}" |
94 | TARGET_PREFIX = "${TARGET_SYS}-" | 100 | TARGET_PREFIX = "${TARGET_SYS}-" |
95 | TARGET_CC_ARCH = "${TUNE_CCARGS}" | 101 | TARGET_CC_ARCH = "${TUNE_CCARGS}" |
102 | TARGET_LD_ARCH = "${TUNE_LDARGS}" | ||
103 | TARGET_AS_ARCH = "${TUNE_ASARGS}" | ||
96 | 104 | ||
97 | SDK_ARCH = "${BUILD_ARCH}" | 105 | SDK_ARCH = "${BUILD_ARCH}" |
98 | SDK_OS = "${BUILD_OS}" | 106 | SDK_OS = "${BUILD_OS}" |
@@ -101,6 +109,8 @@ SDK_SYS = "${SDK_ARCH}${SDK_VENDOR}${@['-' + bb.data.getVar('SDK_OS', d, 1), ''] | |||
101 | SDK_PREFIX = "${SDK_SYS}-" | 109 | SDK_PREFIX = "${SDK_SYS}-" |
102 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" | 110 | SDK_CC_ARCH = "${BUILD_CC_ARCH}" |
103 | SDK_PACKAGE_ARCHS = "all any noarch ${SDK_ARCH}-nativesdk" | 111 | SDK_PACKAGE_ARCHS = "all any noarch ${SDK_ARCH}-nativesdk" |
112 | SDK_LD_ARCH = "${BUILD_LD_ARCH}" | ||
113 | SDK_AS_ARCH = "${BUILD_AS_ARCH}" | ||
104 | 114 | ||
105 | PACKAGE_ARCH = "${TUNE_PKGARCH}" | 115 | PACKAGE_ARCH = "${TUNE_PKGARCH}" |
106 | MACHINE_ARCH = "${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}" | 116 | MACHINE_ARCH = "${@[bb.data.getVar('TUNE_PKGARCH', d, 1), bb.data.getVar('MACHINE', d, 1)][bool(bb.data.getVar('MACHINE', d, 1))].replace('-', '_')}" |
@@ -398,11 +408,11 @@ export CCACHE_DIR = "${TMPDIR}/ccache/${HOST_SYS}/${PN}" | |||
398 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 408 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
399 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 409 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
400 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" | 410 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" |
401 | export CPP = "${HOST_PREFIX}gcc -E${TOOLCHAIN_OPTIONS}" | 411 | export CPP = "${HOST_PREFIX}gcc -E${TOOLCHAIN_OPTIONS} ${HOST_CC_ARCH}" |
402 | export LD = "${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS}" | 412 | export LD = "${HOST_PREFIX}ld${TOOLCHAIN_OPTIONS} ${HOST_LD_ARCH}" |
403 | export CCLD = "${CC}" | 413 | export CCLD = "${CC}" |
404 | export AR = "${HOST_PREFIX}ar" | 414 | export AR = "${HOST_PREFIX}ar" |
405 | export AS = "${HOST_PREFIX}as" | 415 | export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}" |
406 | export RANLIB = "${HOST_PREFIX}ranlib" | 416 | export RANLIB = "${HOST_PREFIX}ranlib" |
407 | export STRIP = "${HOST_PREFIX}strip" | 417 | export STRIP = "${HOST_PREFIX}strip" |
408 | export OBJCOPY = "${HOST_PREFIX}objcopy" | 418 | export OBJCOPY = "${HOST_PREFIX}objcopy" |
@@ -413,10 +423,11 @@ PYTHON = "${@sys.executable}" | |||
413 | export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" | 423 | export BUILD_CC = "${CCACHE}${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" |
414 | export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}" | 424 | export BUILD_CXX = "${CCACHE}${BUILD_PREFIX}g++ ${BUILD_CC_ARCH}" |
415 | export BUILD_F77 = "${CCACHE}${BUILD_PREFIX}g77 ${BUILD_CC_ARCH}" | 425 | export BUILD_F77 = "${CCACHE}${BUILD_PREFIX}g77 ${BUILD_CC_ARCH}" |
416 | export BUILD_CPP = "${BUILD_PREFIX}cpp" | 426 | export BUILD_CPP = "${BUILD_PREFIX}cpp ${BUILD_CC_ARCH}" |
417 | export BUILD_LD = "${BUILD_PREFIX}ld" | 427 | export BUILD_LD = "${BUILD_PREFIX}ld ${BUILD_LD_ARCH}" |
418 | export BUILD_CCLD = "${BUILD_PREFIX}gcc" | 428 | export BUILD_CCLD = "${BUILD_PREFIX}gcc ${BUILD_CC_ARCH}" |
419 | export BUILD_AR = "${BUILD_PREFIX}ar" | 429 | export BUILD_AR = "${BUILD_PREFIX}ar" |
430 | export BUILD_AS = "${BUILD_PREFIX}as ${BUILD_AS_ARCH}" | ||
420 | export BUILD_RANLIB = "${BUILD_PREFIX}ranlib" | 431 | export BUILD_RANLIB = "${BUILD_PREFIX}ranlib" |
421 | export BUILD_STRIP = "${BUILD_PREFIX}strip" | 432 | export BUILD_STRIP = "${BUILD_PREFIX}strip" |
422 | export BUILD_NM = "${BUILD_PREFIX}nm" | 433 | export BUILD_NM = "${BUILD_PREFIX}nm" |