Hi, Le 18 mars 2011 à 23:38, Wolfgang Denk a écrit :
> which exact problem is your patch supposed to fix? Building mkimage alone without having to set up the rest, on OSX. > In message <[email protected]> you wrote: >> >> - don't include config.h when building with host cc, >> - HOSTCFLAGS was defined with the wrong name, so wasn't used, > > What makes you think so? Top-level "config.mk" defines > > HOSTCFLAGS = -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer \ > $(HOSTCPPFLAGS) Somehow it doesn't get used here: $ make tools make -C tools all /Volumes/Data/devel/u-boot/u-boot/common/env_embedded.c:28:20: error: config.h: No such file or directory /Volumes/Data/devel/u-boot/u-boot/tools/envcrc.c:35:20: error: config.h: No such file or directory gcc -g -Os -D__KERNEL__ -I/Volumes/Data/devel/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/i686-apple-darwin10/4.2.1/include -pipe -Wall -Wstrict-prototypes -fno-stack-protector -o crc32.o crc32.c -c i686-apple-darwin10-gcc-4.2.1: crc32.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files make[1]: *** [crc32.o] Error 1 make: *** [tools] Error 2 2nd pass (it doesn't like dep stuff): $ make tools make -C tools all gcc -g -Os -D__KERNEL__ -I/Volumes/Data/devel/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/i686-apple-darwin10/4.2.1/include -pipe -Wall -Wstrict-prototypes -fno-stack-protector -o crc32.o crc32.c -c i686-apple-darwin10-gcc-4.2.1: crc32.c: No such file or directory i686-apple-darwin10-gcc-4.2.1: no input files make[1]: *** [crc32.o] Error 1 make: *** [tools] Error 2 Been this way for a year at least, never managed to build it before. I recall trying passing all sort of stuff to make, probably after asking on IRC but it didn't make it either. >> - make sure make finds sources outside of tools/. > > Again, which exact problem are you trying to fix? i686-apple-darwin10-gcc-4.2.1: crc32.c: No such file or directory François. _______________________________________________ U-Boot mailing list [email protected] http://lists.denx.de/mailman/listinfo/u-boot

