
On 18:30 Fri 01 May , Timur Tabi wrote:
I'm trying to cross-compile U-Boot on a Mac OS X system, which is BSD-like. I have a toolchain already created - I've been able to compile the Linux kernel with no problems. I figured U-Boot would be easier, but instead it's doing a lot of weird stuff.
So when I run "make", I get this:
$ make ARCH=ppc for dir in tools examples api_examples ; do make -C $dir _depend ; done make[1]: Nothing to be done for `_depend'. make[1]: Circular hello_world.c <- hello_world.c dependency dropped. make[1]: Circular sched.c <- sched.c dependency dropped. make[1]: Circular stubs.c <- stubs.c dependency dropped. make[1]: Circular ppc_longjmp.S <- ppc_longjmp.S dependency dropped. make[1]: Circular ppc_setjmp.S <- ppc_setjmp.S dependency dropped. make[1]: Nothing to be done for `_depend'. make[1]: Nothing to be done for `_depend'. make -C tools all cc -Wall -pedantic -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include2 -idirafter /Volumes/Goliath/Users/timur/dev/u-boot.git/include -I /Volumes/Goliath/Users/timur/dev/u-boot.git/libfdt -I /Volumes/Goliath/Users/timur/dev/u-boot.git/tools -DTEXT_BASE=0xFE000000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o crc32.c powerpc-apple-darwin9-gcc-4.0.1: crc32.c: No such file or directory powerpc-apple-darwin9-gcc-4.0.1: no input files make[1]: *** [crc32.o] Error 1 make: *** [tools] Error 2
crc32.c is in lib_generic/, but the current directory is tools/, so
IIRC this is fix on the Mainline
I'm not surprised it doesn't compile. Has anyone tried this before? What am I missing?
to compile on Mac OS you will have to move to the laster Mainline , fix the lib_ftd endian.h and byteswap.h does not exist on MAC OS X IIRC and fix the _depend Makefile target I've start to fix it but never find time to finish (some patch are already mainline)
Best Regards, J.