[BusyBox] Building ash

Jon McClintock jonm at bluemug.com
Thu Apr 12 17:21:37 UTC 2001


On Thu, Apr 12, 2001 at 11:11:26AM +0100, John Hall wrote:
> Hi,
> 
> I downloaded ash 0.3.5 from debian.org, both the original source and a
> patch 0.3.5-11. I want to compile it for an embedded system we've built
> running a SA1100, but can't workout how to compile it; there doesn't
> seem to be any instructions on how to configure and build it.

It's really a pain. Here's what you do (assuming you've got a cross compiled
glibc and X libraries under /usr/local/arm-linux):

> env CC=arm-linux-gcc ./configure --target=arm-linux --build=i586-linux \
	--prefix=/usr/local/arm-linux/ --libdir=/usr/local/arm-linux/lib/ \
	--x-libraries=/usr/local/arm-linux/usr/X11R6/lib/

Then, since for some reason it can't figure out what kind of terminals
are used, append the following lines to config.h:

  #define PTYS_ARE_GETPT 1
  #define PTYS_ARE_SEARCHED 1

At which point, you can safely run make:

> make CC=arm-linux-gcc

Hope this helps.

-Jon





More information about the busybox mailing list