Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] kernel built by buildroot won't boot
@ 2009-07-22  8:34 Sven Neumann
  2009-07-22 12:09 ` Peter Korsgaard
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Neumann @ 2009-07-22  8:34 UTC (permalink / raw)
  To: buildroot

Hi,

we are developing for an ARM platform. Here are the relevant parts of
our buildroot .config:

BR2_ARM=Y
BR2_iwmmxt=y
BR2_ARM_TYPE="ARM_IWMMXT"
# BR2_ARM_OABI is not set
BR2_ARM_EABI=y
BR2_ARCH="arm"
BR2_ENDIAN="LITTLE"
BR2_GCC_TARGET_TUNE="iwmmxt"
BR2_GCC_TARGET_ARCH="iwmmxt"
BR2_GCC_TARGET_ABI="aapcs-linux"

So far we did compile the kernel ourselves, using the gcc from the
buildroot toolchain. Now we have changed our setup to have buildroot
create the kernel for us. The build succeeds, but the resulting kernel
can not be booted.

We tracked this down to the fact that buildroot passes the TARGET_CFLAGS
(with some minor adjustments) to the kernel build as CFLAGS_KERNEL. The
problem is that the TARGET_CFLAGS contain "-mtune=iwmmxt -march=iwmmxt",
which is fine for the user-space, but you can't build a working kernel
with these flags. Not passing any CFLAGS at all solved the problem for
us and buildroot now creates a kernel that boots and works nicely.

Is there a particular reason for passing the TARGET_CFLAGS to the kernel
build? Could this perhaps be dropped entirely or at least be made
optional?


Sven

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-07-22 20:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-22  8:34 [Buildroot] kernel built by buildroot won't boot Sven Neumann
2009-07-22 12:09 ` Peter Korsgaard
2009-07-22 12:25   ` [Buildroot] [PATCH] linux26: do not set CFLAGS_KERNEL to TARGET_CFLAGS Sven Neumann
2009-07-22 20:45     ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox