[OE-core] [PATCH V2 1/3] kernel.bbclass, module-base.bbclass: Use CC to form KERNEL_CC

Phil Blundell philb at gnu.org
Wed Sep 12 06:32:02 UTC 2012


On Tue, 2012-09-11 at 22:59 -0700, Khem Raj wrote:
> 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.

Historically, the kernel compiler has indeed been special: there have
been some machines where, due to bugs in the kernel or the compiler or
both, we need to use a different version of the compiler for the kernel
than we use for userspace.  The most famous example of this were the old
ARM kernels back in the day which needed gcc-2.95 long after everyone
else had stopped using it, but I think there might be a few cases where
the same situation obtains even today.

If you remove ${KERNEL_CCSUFFIX} then we will lose the ability to do
that (easily).  I'm not necessarily opposed to such a change but I think
it does need to be justified with clear benefits.

p.






More information about the Openembedded-core mailing list