How to rebuild following .config change?
Several times in the past week, I've gotten things terminally
broken: where it's impossible to build after doing a "make menuconfig" or "make uclibc-menuconfg" and changing a configuration setting.
It appears that you can't reliably make a configuration change and then do a "make".
Doing a "make clean" doesn't appear to be enough either, since often a "make" still fails or doesn't rebuild certain things.
You can do a "distclean", but then all the sources get re-downloaded and toolchains re-built -- which takes a _long_ time.
How does one re-build appropriate packages after a configuration change.
Signature · 4 lines
Grant Edwards grante Yow! If elected, Zippy
at pledges to each and every
visi.com American a 55-year-old
houseboy ...Quoted 8 lines · Grant Edwards
Several times in the past week, I've gotten things terminally
broken: where it's impossible to build after doing a "make menuconfig" or "make uclibc-menuconfg" and changing a configuration setting.It appears that you can't reliably make a configuration change and then do a "make".
Quoted 6 lines
Doing a "make clean" doesn't appear to be enough either, since often a "make" still fails or doesn't rebuild certain things.
You can do a "distclean", but then all the sources get re-downloaded and toolchains re-built -- which takes a _long_ time.
if you set your DL_DIR != down then they are not wiped. Alternatively you can rm -rf ${yourarch}_*, e.g.
rm -rf powerpc_nofpu_nommu_*
(or maybe not, not sure if Peter picked that convenience up already).
Quoted 3 lines
How does one re-build appropriate packages after a configuration change.
My tree (search archives) has quite some improvements in this area, perhaps you want to distill those out and submit it for review and inclusion?
TIA and cheers,
Le Tue, 23 Jun 2009 20:05:06 +0000 (UTC), Grant Edwards <[email protected]> a ?crit :
Quoted 3 lines
You can do a "distclean", but then all the sources get re-downloaded and toolchains re-built -- which takes a _long_ time.
It's true that Buildroot doesn't handle partial rebuilds very well. This is something we should improve.
In the mean time, here is how I use Buildroot :
* Set the BUILDROOT_DL_DIR environment variable, so that downloads are made to a completely separate directory from the Buildroot source and Buildroot build directories ;
* Use an external toolchain (such as one generated by Crosstool-NG, for example). This way, the toolchain generation process is independent from Buildroot, and you don't need to re-generate the toolchain everytime you want to recompile the root filesystem from scratch ;
* Use out-of-tree generation in Buildroot with "make O=/path/to/somewhere". This way, all generated files are in a separate directory, which makes it easy to clean everything.
Sincerly,
Thomas
Signature · 4 lines
Thomas Petazzoni, Free Electrons Kernel, drivers and embedded Linux development, consulting, training and support. http://free-electrons.com
Quoted 9 lines · Thomas Petazzoni
Le Tue, 23 Jun 2009 20:05:06 +0000 (UTC), Grant Edwards <[email protected]> a ??crit :
Quoted 3 lines
You can do a "distclean", but then all the sources get re-downloaded and toolchains re-built -- which takes a _long_ time.
It's true that Buildroot doesn't handle partial rebuilds very well. This is something we should improve.
Unfortunately, it's a very difficult problem -- especially for something built up of several sort-of-independant subsystems. It's pretty hard to automatically detect what depends on what with 100% accuracy.
Quoted 12 lines
In the mean time, here is how I use Buildroot :
* Set the
BUILDROOT_DL_DIRenvironment variable, so that downloads are made to a completely separate directory from the Buildroot source and Buildroot build directories ;* Use an external toolchain (such as one generated by Crosstool-NG, for example). This way, the toolchain generation process is independent from Buildroot, and you don't need to re-generate the toolchain everytime you want to recompile the root filesystem from scratch ;
Quoted 3 lines
* Use out-of-tree generation in Buildroot with "make O=/path/to/somewhere". This way, all generated files are in a separate directory, which makes it easy to clean everything.
Thanks, those are indeed valuable tips.
Signature · 3 lines
Grant Edwards grante Yow! I am having FUN...
at I wonder if it's NET FUN or
visi.com GROSS FUN?