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/classes/native.bbclass | |
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/classes/native.bbclass')
-rw-r--r-- | meta/classes/native.bbclass | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index 00f7b9f02d..9a41f19dc6 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -24,6 +24,8 @@ TARGET_OS = "${BUILD_OS}" | |||
24 | TARGET_VENDOR = "${BUILD_VENDOR}" | 24 | TARGET_VENDOR = "${BUILD_VENDOR}" |
25 | TARGET_PREFIX = "${BUILD_PREFIX}" | 25 | TARGET_PREFIX = "${BUILD_PREFIX}" |
26 | TARGET_CC_ARCH = "${BUILD_CC_ARCH}" | 26 | TARGET_CC_ARCH = "${BUILD_CC_ARCH}" |
27 | TARGET_LD_ARCH = "${BUILD_LD_ARCH}" | ||
28 | TARGET_AS_ARCH = "${BUILD_AS_ARCH}" | ||
27 | TARGET_FPU = "" | 29 | TARGET_FPU = "" |
28 | 30 | ||
29 | HOST_ARCH = "${BUILD_ARCH}" | 31 | HOST_ARCH = "${BUILD_ARCH}" |
@@ -31,6 +33,8 @@ HOST_OS = "${BUILD_OS}" | |||
31 | HOST_VENDOR = "${BUILD_VENDOR}" | 33 | HOST_VENDOR = "${BUILD_VENDOR}" |
32 | HOST_PREFIX = "${BUILD_PREFIX}" | 34 | HOST_PREFIX = "${BUILD_PREFIX}" |
33 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" | 35 | HOST_CC_ARCH = "${BUILD_CC_ARCH}" |
36 | HOST_LD_ARCH = "${BUILD_LD_ARCH}" | ||
37 | HOST_AS_ARCH = "${BUILD_AS_ARCH}" | ||
34 | 38 | ||
35 | CPPFLAGS = "${BUILD_CPPFLAGS}" | 39 | CPPFLAGS = "${BUILD_CPPFLAGS}" |
36 | CFLAGS = "${BUILD_CFLAGS}" | 40 | CFLAGS = "${BUILD_CFLAGS}" |
@@ -50,11 +54,11 @@ export CONFIG_SITE = "" | |||
50 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | 54 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" |
51 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" | 55 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" |
52 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}" | 56 | export F77 = "${CCACHE}${HOST_PREFIX}g77 ${HOST_CC_ARCH}" |
53 | export CPP = "${HOST_PREFIX}gcc -E" | 57 | export CPP = "${HOST_PREFIX}gcc ${HOST_CC_ARCH} -E" |
54 | export LD = "${HOST_PREFIX}ld" | 58 | export LD = "${HOST_PREFIX}ld ${HOST_LD_ARCH} " |
55 | export CCLD = "${CC}" | 59 | export CCLD = "${CC}" |
56 | export AR = "${HOST_PREFIX}ar" | 60 | export AR = "${HOST_PREFIX}ar" |
57 | export AS = "${HOST_PREFIX}as" | 61 | export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}" |
58 | export RANLIB = "${HOST_PREFIX}ranlib" | 62 | export RANLIB = "${HOST_PREFIX}ranlib" |
59 | export STRIP = "${HOST_PREFIX}strip" | 63 | export STRIP = "${HOST_PREFIX}strip" |
60 | 64 | ||