]> code.ossystems Code Review - openembedded-core.git/commit
kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC
authorKhem Raj <raj.khem@gmail.com>
Sat, 19 Jan 2013 22:40:03 +0000 (14:40 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 20 Jan 2013 12:47:41 +0000 (12:47 +0000)
commitc49f967384ccbfe131bbb33ee518014f3fc4b38f
tree408fddf3068163a78806de77a68457b80c3e017d
parent58731bbdbd4ab4cfd560f14758a65efdfad2e28f
kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC

kernel compiler is not special and we currently have it so
we want to pass -march and -mtune options as CFLAGS to kernel
build so that compiler picks the right subarch flags when
compiling assembly files in particular. Otherwise defaults
are chosen which may not be right in many case e.g. when
compiling kernel for collie machine we should use arch=armv4
but it uses toolchain/as defaults which is armv5te

in some case e.g. thumb1 we know that kernel can not be compiled
in thumb1 mode so we can provide that information e.g. -marm
option through KERNEL_HOST_CC_ARCH variable as we do now

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/kernel-arch.bbclass
meta/classes/kernel.bbclass
meta/classes/module-base.bbclass