next up previous contents index
Next: Compiling tinylogin-snapshot Up: Setting up the uClibc Previous: Setting up uClibc   Contents   Index


Compiling busybox-0.60.5

I don't explain again, why we re-compile the famous package, we just do it :-) Please assure that you're in the correct folder $\sim$/Dreamcast/BUILD:

$ cd busybox-0.60.5

First, we clean up the directory from any old make pass:

$ make clean

Now, we're able to re-compile busybox against uClibc. Please make your choice for any user programs you want busybox to have in its configuration file Config.h or simply take the ones I've given in chapter two. First, we have to correct a setting in the Makefile for using the correct compiler (in our case the cc - wrapper of uClibc):

$ cat Makefile | sed s/CC\ =\ \$\(CROSS\)gcc/\
  CC\ =\ \$\(CROSS\)cc/ > Makefile.new
$ rm -f Makefile && mv Makefile.new Makefile

Following, just invoke the compiling process:

$ make CROSS=$UCLIBC/usr/bin/ all
$ su -c "make PREFIX=/home/christian\
  /Dreamcast/INITRD install"
$ cd ..

That's all! Please compare, if it's possible, the actual size of busybox with its old one. You'll probably determine it has shrunken under about 300 KB.



Christian Berger 2004-10-19