分类: LINUX
2013-01-21 11:18:49
http://blog.chinaunix.net/uid-9525959-id-2001841.html
UNDEF_SYM=`mips-openwrt-linux-uclibc-objdump -x lib_bootstrap/libbootstrap.a board/ar7240/ap121/libap121.a cpu/mips/libmips.a cpu/mips/ar7240/libar7240.a |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
mips-openwrt-linux-uclibc-ld -Bstatic -T /home/xxg/wr703n-uboot-with-web-failsafe-read-only/u-boot/board/ar7240/ap121/u-boot-bootstrap.lds -Ttext 0x9f000000 -G 0 -static -n -nostdlib $UNDEF_SYM cpu/mips/start_bootstrap.o \
--start-group lib_bootstrap/libbootstrap.a board/ar7240/ap121/libap121.a cpu/mips/libmips.a cpu/mips/ar7240/libar7240.a --end-group -L /home/xxg/wr703n-uboot-with-web-failsafe-read-only/toolchain/OpenWrt-Toolchain-ar71xx-for-mips_r2-gcc-4.6-linaro_uClibc-0.9.33/toolchain-mips_r2_gcc-4.6-linaro_uClibc-0.9.33/bin/../lib/gcc/mips-openwrt-linux-uclibc/4.6.3 -lgcc \
-Map bootstrap.map -o bootstrap
mips-openwrt-linux-uclibc-objcopy --gap-fill=0xff -O binary bootstrap bootstrap.bin