Automatic chroot build infrastructure?

John Kelly jakelly at shtc.net
Mon Dec 12 18:51:23 UTC 2005


On Mon, 12 Dec 2005 12:20:16 +0100, Marcus Crafter
<crafterm at gmail.com> wrote:

>Now that I've got a toolchain built that can also build native  
>binaries under buildroot/build_i386/root I'd like to start building  
>various libraries under a chroot environment with buildroot.

>Has anyone thought about integrating something like this into  
>buildroot buildsystem proper at all?


There are people doing what you have in mind, but without buildroot.
Buildroot is a place to see how certain things are done, but once you
understand what buildroot does, it's easier to use another framework
like hlfs or something of your own.

For instance, buildroot's third pass of gcc is missing syslimits.h,
which the makefile tries to correct, and the specs file still says
it's a cross compiler, and they try to fix that with a sed.  So after
three passes, buildroot does not cleanly produce a native compiler.

Using ideas from hlfs, diy-linux, and buildroot, I produce a uclibc
native compiler with the second pass of gcc, while I'm still in the
"tools" phase.  It has syslimts.h and the specs file correctly shows
it's a native compiler.

Buildroot was not designed with the hlfs or diy concept in mind, where
you want to reach a self hosting state with uclibc.  Buildroot is a
tangled mess of makefiles which will be hard to adapt for the purpose
you have in mind.





More information about the uClibc mailing list