Automatic chroot build infrastructure?

Marcus Crafter crafterm at gmail.com
Mon Dec 12 11:20:16 UTC 2005


Hi Troops,

Hope all is going well.

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?

Upon first thoughts it seems logical to place the necessary extra  
build rules inbetween the 'package' and 'target' rules so that extra  
chroot'd applications are built after the root filesystem is built,  
but before any targets such as cramfs, etc, is processed? Does this  
sound like the right place to add something? Or is there a nicer way  
already available inside of buildroot for such extensions.

Also, from first inspections, it looks like a chroot build requires  
root privileges as well (sudo or similar, etc).

I was thinking of essentially mirroring the style of makefiles used  
in packages/*/*.mk but with build roots set to / rather than $ 
(STAGING_DIR)/$(TARGET)/etc for the extra packages I'd like to make,  
so that they build within the chroot environment properly.

Any thoughts?

Cheers,

Marcus




More information about the uClibc mailing list