Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Kernel headers from an externally built kernel
@ 2010-05-06 16:52 Wagner, Scott
  2010-05-06 17:08 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Wagner, Scott @ 2010-05-06 16:52 UTC (permalink / raw)
  To: buildroot

Hello,

 

I would like to use buildroot to create a root file system only - I have
an external toolchain and an external cross-built kernel made with that
toolchain.

 

How do I configure buildroot to reference the external kernel's headers?
In poking through the makefiles, it looks like this is possible, but I
have not yet found a way to specify it through menuconfig or by feeding
environment variables to make.  I'm currently building with
BR2_KERNEL_none=y.

 

I think that as a result buildroot is trying to use the host platform's
kernel headers, because the busybox build fails looking for an mtd
header file, which is not present in the host's kernel headers - but
this is just a guess.

 

Any ideas?  Thanks in advance ...

 

Scott Wagner
Rochester, NY US

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20100506/29d39ac6/attachment.htm>

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

* [Buildroot] Kernel headers from an externally built kernel
  2010-05-06 16:52 [Buildroot] Kernel headers from an externally built kernel Wagner, Scott
@ 2010-05-06 17:08 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2010-05-06 17:08 UTC (permalink / raw)
  To: buildroot

On Thu, 6 May 2010 12:52:13 -0400
"Wagner, Scott" <swagner@vanteon.com> wrote:

> I would like to use buildroot to create a root file system only - I have
> an external toolchain and an external cross-built kernel made with that
> toolchain.
> 
> How do I configure buildroot to reference the external kernel's headers?
> In poking through the makefiles, it looks like this is possible, but I
> have not yet found a way to specify it through menuconfig or by feeding
> environment variables to make.  I'm currently building with
> BR2_KERNEL_none=y.
> 
> I think that as a result buildroot is trying to use the host platform's
> kernel headers, because the busybox build fails looking for an mtd
> header file, which is not present in the host's kernel headers - but
> this is just a guess.

In external toolchain mode, Buildroot simply uses the kernel headers as
available in the external toolchain. There is no option to use other
kernel headers, as it wouldn't make sense: kernel headers *are* part of
the external toolchain.

Concerning the MTD build problem, you may want to apply the patch
http://git.buildroot.net/~tpetazzoni/git/buildroot/patch/?id=93abe41eefbc1cea9b9a457011f66037772f4265.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com

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

end of thread, other threads:[~2010-05-06 17:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 16:52 [Buildroot] Kernel headers from an externally built kernel Wagner, Scott
2010-05-06 17:08 ` Thomas Petazzoni

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