NSLU2-Linux
view · edit · print · history

Note that you can now use the instructions at NativelyCompileUnslungPackages to natively compile GNU make directly from the Unslung CVS repository.

Goal:

Create a native version of GNU make directly on your NSLU2 Box.

Prerequisites:

Installation of Unslung.
Successful completion of NativeNSLU2Toolchain, which provides a development environment on your NSLU2.
Busybox version 1.00 (potentially optional). Use ipkg to install.
Bzip2 - use ipkg to install.

Steps:

The instructions for making GNU make are included in README and INSTALL files included in the release. However, this set of instructions are specific for the NSLU2. In addition, the sed command in step 2 takes care of a known bug in release 3.80. All these instructions take place directly on your NSLU2. Don't skip the prerequisites!

1) Retrieve source code for GNU make, and then unzip and untar it. I did this from my NSLU2 box using the following command:

    cd /share/hdd/data
wget ftp://ftp.gnu.org/pub/gnu/make/make-3.80.tar.bz2
bunzip2 make-3.80.tar.bz2 (bunzip2 comes with BusyBox? 1.00)
tar -xvf make-3.80.tar

2) Create the make executable, and put it somewhere in your path.

    cd make-3.80
./configure (This takes about 7 minutes)
sed -e 's/@REMOTE@/stub/' build.sh >build-fixed.sh (fixes a bug in make 3.80)
sh build-fixed.sh (This takes about 8 minutes)
strip make (Optional)
mv make /usr/bin (Is this where it should be placed?)

That's it! Make some more software for the NSLU2!

view · edit · print · history · Last edited by michaelebrownmindspringcom.
Based on work by michaelebrownmindspringcom and jsilence.
Originally by rwhitby.
Page last modified on April 14, 2005, at 10:26 PM