[Buildroot] I want to know how the buildroot works inside when build and install a new package

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Fri Feb 27 21:30:49 UTC 2009


Hi,

Le Fri, 27 Feb 2009 11:45:55 +0800,
IaMaPlAyEr <iamaplayer at gmail.com> a écrit :

> And how the buildroot works inside?

Most of the autotools-based packages are released with the configure
script and Makefile.in files already generated (i.e, aclocal, autoconf,
autoheader and automake have been run by the developer and integrated
inside the released tarball). So, the automagic thing available in
Buildroot to compile autotools-based packages will basically do :

 ./configure
 make
 make install

(passing of course the correct options and setting the appropriate
environment variables to get cross-compilation to work properly).

However, if for some reason you want the whole aclocal, autoconf,
autoheader and automake process to be run before compiling the package,
you can add :

FOO_AUTORECONF=YES

in your Buildroot Makefile. This is particularly useful if you patch
the configure.in file or the Makefile.am files.

Does that answer your question ? If not, don't hesitate to ask for
details.

Sincerly,

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


More information about the buildroot mailing list