diff options
author | Ross Burton <ross.burton@intel.com> | 2014-10-21 11:50:13 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-10-24 17:36:16 +0100 |
commit | ac638b7bd1f4a347f2ebbf4f1f8d8f5f54b5173c (patch) | |
tree | 2c33dd637b365ee5091e66442223550524dcb75f /meta/classes | |
parent | 9f33c2858c4192ade4d80091448b1513467196d6 (diff) | |
download | poky-ac638b7bd1f4a347f2ebbf4f1f8d8f5f54b5173c.tar.gz |
native.bbclass: use BUILD_* variables
Instead of replicating the logic for the host compiler naming from bitbake.conf,
use the BUILD_* variables directly.
Also change BUILD_CPP to use gcc -E (which native.bbclass previously used), as
some recipes (e.g. grub-efi) use ${CPP} with multiple input files, which gcc -E
can handle but cpp can't.
(From OE-Core rev: 9237d18964ff0bf76f5c37fca21ab3974d81d0d2)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/native.bbclass | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/meta/classes/native.bbclass b/meta/classes/native.bbclass index dcd364b92c..4acc936ccd 100644 --- a/meta/classes/native.bbclass +++ b/meta/classes/native.bbclass | |||
@@ -61,16 +61,17 @@ PTEST_ENABLED = "0" | |||
61 | export CONFIG_SITE = "${COREBASE}/meta/site/native" | 61 | export CONFIG_SITE = "${COREBASE}/meta/site/native" |
62 | 62 | ||
63 | # set the compiler as well. It could have been set to something else | 63 | # set the compiler as well. It could have been set to something else |
64 | export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" | 64 | export CC = "${BUILD_CC}" |
65 | export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" | 65 | export CXX = "${BUILD_CXX}" |
66 | export FC = "${CCACHE}${HOST_PREFIX}gfortran ${HOST_CC_ARCH}" | 66 | export FC = "${BUILD_FC}" |
67 | export CPP = "${HOST_PREFIX}gcc ${HOST_CC_ARCH} -E" | 67 | export CPP = "${BUILD_CPP}" |
68 | export LD = "${HOST_PREFIX}ld ${HOST_LD_ARCH} " | 68 | export LD = "${BUILD_LD}" |
69 | export CCLD = "${CC}" | 69 | export CCLD = "${BUILD_CCLD}" |
70 | export AR = "${HOST_PREFIX}ar" | 70 | export AR = "${BUILD_AR}" |
71 | export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}" | 71 | export AS = "${BUILD_AS}" |
72 | export RANLIB = "${HOST_PREFIX}ranlib" | 72 | export RANLIB = "${BUILD_RANLIB}" |
73 | export STRIP = "${HOST_PREFIX}strip" | 73 | export STRIP = "${BUILD_STRIP}" |
74 | export NM = "${BUILD_NM}" | ||
74 | 75 | ||
75 | # Path prefixes | 76 | # Path prefixes |
76 | base_prefix = "${STAGING_DIR_NATIVE}" | 77 | base_prefix = "${STAGING_DIR_NATIVE}" |