[uClibc]buildroot can build a uClibc development system

Erik Andersen andersen at codepoet.org
Thu Nov 14 12:44:06 UTC 2002


On Thu Nov 14, 2002 at 04:55:22AM -0700, Erik wrote:
> FYI...  buildroot can now build a uClibc only development system.

I was just asked how one can build their own...  Well it's
actually quite easy...

Step one, visit
    http://www.uclibc.org/cgi-bin/cvsweb/buildroot/
and click on the "Download tarball" link on the bottom
of the page.  That will generate a current tarball of 
buildroot. 

Step two, unpack the tarball and read the README file.

Step three, edit the Makefile and adjust any options you feel
like.  If you want to build a uClibc development system, be sure
you leave USE_UCLIBC_TOOLCHAIN enabled and uncomment the TARGETS
line following the "Everything needed to build a full uClibc
development system" comment.

Step four, optionally copy any of the tarballs that buildroot
needs into the sources/dl directory.  If, for example, you
already have the gcc-3.2 tarball or the linux-2.4.19 tarball,
just copy them into place so you can avoid having buildroot
download them once again from the net.

Step five, run 'make' and wait a long time...  There is a lot of
stuff that needs to be compiled, so be patient.  Go to the
kitchen and make yourself a nice sandwich.  Since buildroot will
download any source files it needs which are not already sitting
in the sources/dl directory, if you have a slow net connection
you might consider starting this before you go to bed in the hope
that it will be done when you wake up. ;-)

Step six, Enjoy!  Buildroot will have built everything under the
build/root directory.  Because the root filesystem is too large
for genext2fs, it won't build the final filesystem when you have
built the development system.  I plan on fixing this sometime
(but not tonight).  For the moment, you will need to chroot into
build/root to use your new uClibc system.

<yawn>  g'night and have fun,

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list