I am trying to switch versions of busybox from 1.2.2 to 1.4.2 and it looks like the configuration for setting cross compile is now different enough that my old method doesn't work.
Previously I just set CROSS_COMPILE and all the various tool env variables to point to the correct tool and added any necessary CFLAGS via EXTRA_CFLAGS= It doesn't seem to pick up the CROSS_COMPILE var from the environment when doing 'make oldconfig' it has to be added to the command line. If I don't provide ARCH it makes an assumption and passes -march=i386 to the compiler which doesn't work. Adding during 'make oldconfig' doesn't get recorded for the 'make all' So the question (which isn't in the FAQ or on google for a recent version) is: What is the proper way to configure and make busybox for cross compile? BTW, do you know that with -Wall coreutils/touch.c gives an error? mips64_octeon_be-gcc -Wp,-MD,coreutils/.touch.o.d -std=gnu99 -Iinclude -Ilibbb -I/home/lbrigman/sandbox/cavium/vendor/pkg/busybox-1.4.2/libbb -include include/autoconf.h -D_GNU_SOURCE -DNDEBUG -D"BB_VER=KBUILD_STR(1.4.2)" -DBB_BT=AUTOCONF_TIMESTAMP -Wall -Wstrict-prototypes -Wshadow -Werror -Wundef -funsigned-char -fno-builtin-strlen -finline-limit=0 -static-libgcc -Os -falign-functions=1 -falign-jumps=1 -falign-loops=1 -fomit-frame-pointer -ffunction-sections -fdata-sections -Wdeclaration-after-statement -I/home/lbrigman/sandbox/cavium/vendor/cai/include -I/home/lbrigman/sandbox/cavium/vendor/include -I/home/lbrigman/sandbox/cavium/buildtools/montavista/pro/devkit/mips64/octeon_be/target/usr/include -mabi=64 -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(touch)" -D"KBUILD_MODNAME=KBUILD_STR(touch)" -c -o coreutils/touch.o coreutils/touch.c coreutils/touch.c: In function `touch_main': coreutils/touch.c:44: warning: null argument where non-null required (arg 2) make[2]: *** [coreutils/touch.o] Error 1 make[1]: *** [coreutils] Error 2 _______________________________________________ busybox mailing list [email protected] http://busybox.net/cgi-bin/mailman/listinfo/busybox
