error cross-compiling to ARM
Denys Vlasenko
vda.linux at googlemail.com
Sat Aug 28 13:12:20 UTC 2010
On Saturday 28 August 2010 12:47, Salim Tyrewala wrote:
> Hi,
>
> I'm new to busybox. I'm having trouble cross-compiling busybox to ARM
> using arm-elf-gcc. It doesn't find some include files byteswap.h for
> instance.
>
> I can compile natively just fine using native gcc.
>
> I'm not sure what is happening differently when I cross-compile. Why
> isn't the include path include /usr/include where it should find all
> the headers?
Whom do you ask? Are people who built your toolchain on this list?
>
> I think I'm doing something stupid. Please help!
I tried to cross-compiling to arm using Rob's toolchain
from Aboriginal Linux and it worked. Here's the script:
#!/bin/sh
set -e
test -f cross-compiler-armv5l.tar.bz2 \
|| wget http://impactlinux.com/aboriginal/downloads/binaries/cross-compiler-armv5l.tar.bz2
rm -rf cross-compiler-armv5l
tar xf cross-compiler-armv5l.tar.bz2
test -f busybox-1.17.2.tar.bz2 \
|| wget http://busybox.net/downloads/busybox-1.17.2.tar.bz2
rm -rf busybox-1.17.2
tar xf busybox-1.17.2.tar.bz2
CROSS_COMPILE="$PWD/cross-compiler-armv5l/bin/armv5l-"
cd busybox-1.17.2
make CROSS_COMPILE="$CROSS_COMPILE" defconfig
sed "s:^CONFIG_CROSS_COMPILER_PREFIX.*:CONFIG_CROSS_COMPILER_PREFIX=\"$CROSS_COMPILE\":" -i .config
make
--
vda
More information about the busybox
mailing list