aboutsummaryrefslogtreecommitdiffstats
path: root/meta-initramfs/classes
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-09-12 21:19:13 -0700
committerMartin Jansa <Martin.Jansa@gmail.com>2017-09-18 10:16:23 +0200
commit7fb5af65575987d394f3a8446eb17df8c8680c5b (patch)
tree3f792d34fafd9418488fc6dbfd8d5b1d634c4198 /meta-initramfs/classes
parent028eeb8ca6809b7f4042fcaf2ec4f3982076f857 (diff)
downloadmeta-openembedded-contrib-7fb5af65575987d394f3a8446eb17df8c8680c5b.tar.gz
meta-openembedded-contrib-7fb5af65575987d394f3a8446eb17df8c8680c5b.tar.bz2
meta-openembedded-contrib-7fb5af65575987d394f3a8446eb17df8c8680c5b.zip
klibc.bbclass: Use forcevariable override to define flags
This is required so it can override the CC settings when clang is used because meta-clang uses toolchain-clang override to set CC and friends so we need to use higher order override, forcevariable is highest order. Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-initramfs/classes')
-rw-r--r--meta-initramfs/classes/klibc.bbclass7
1 files changed, 3 insertions, 4 deletions
diff --git a/meta-initramfs/classes/klibc.bbclass b/meta-initramfs/classes/klibc.bbclass
index f864104cfb..c9de58cec6 100644
--- a/meta-initramfs/classes/klibc.bbclass
+++ b/meta-initramfs/classes/klibc.bbclass
@@ -3,11 +3,10 @@ DEPENDS =+ "klcc-cross"
# Default for klcc is to build static binaries.
# Set CC = "${TARGET_PREFIX}klcc -shared" to build the dynamic version.
+CC_forcevariable = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}"
+CC_forcevariable_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
-export CC = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS}"
-export CC_armv4_linux-gnueabi = "${TARGET_PREFIX}klcc ${TOOLCHAIN_OPTIONS} -march=armv4 -mthumb-interwork"
-
-export CPP = "${CC} -E"
+CPP_forcevariable = "${CC} -E"
# klcc uses own optimizations by default. See klcc(1) man file.
export CFLAGS=""