summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2014-10-21 11:50:13 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-24 17:36:16 +0100
commitac638b7bd1f4a347f2ebbf4f1f8d8f5f54b5173c (patch)
tree2c33dd637b365ee5091e66442223550524dcb75f /meta/classes
parent9f33c2858c4192ade4d80091448b1513467196d6 (diff)
downloadpoky-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.bbclass21
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"
61export CONFIG_SITE = "${COREBASE}/meta/site/native" 61export 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
64export CC = "${CCACHE}${HOST_PREFIX}gcc ${HOST_CC_ARCH}" 64export CC = "${BUILD_CC}"
65export CXX = "${CCACHE}${HOST_PREFIX}g++ ${HOST_CC_ARCH}" 65export CXX = "${BUILD_CXX}"
66export FC = "${CCACHE}${HOST_PREFIX}gfortran ${HOST_CC_ARCH}" 66export FC = "${BUILD_FC}"
67export CPP = "${HOST_PREFIX}gcc ${HOST_CC_ARCH} -E" 67export CPP = "${BUILD_CPP}"
68export LD = "${HOST_PREFIX}ld ${HOST_LD_ARCH} " 68export LD = "${BUILD_LD}"
69export CCLD = "${CC}" 69export CCLD = "${BUILD_CCLD}"
70export AR = "${HOST_PREFIX}ar" 70export AR = "${BUILD_AR}"
71export AS = "${HOST_PREFIX}as ${HOST_AS_ARCH}" 71export AS = "${BUILD_AS}"
72export RANLIB = "${HOST_PREFIX}ranlib" 72export RANLIB = "${BUILD_RANLIB}"
73export STRIP = "${HOST_PREFIX}strip" 73export STRIP = "${BUILD_STRIP}"
74export NM = "${BUILD_NM}"
74 75
75# Path prefixes 76# Path prefixes
76base_prefix = "${STAGING_DIR_NATIVE}" 77base_prefix = "${STAGING_DIR_NATIVE}"