基于GEC210的u-boot编译过程问题收集

来源:互联网 发布:sql server 1326错误 编辑:程序博客网 时间:2024/05/29 08:52

硬件平台:GEC210(128MB*4 RAM,256MB NandFlash)
U-Boot版本:u-boot-samsung-dev(android_uboot_smdkv210.tar.bz2)
交叉编译工具链:/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-


问题1:
uboot源码根目录下执行make,出现“Nothing to be done for `_depend’.”错误。

walle@ubuntu12:~/arm/arm_os/uboot/u-boot-samsung-dev$ makefor dir in tools examples api_examples ; do make -C $dir _depend ; donemake[1]: Entering directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/tools'make[1]: Nothing to be done for `_depend'.make[1]: Leaving directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/tools'make[1]: Entering directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/examples'make[1]: Nothing to be done for `_depend'.make[1]: Leaving directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/examples'make[1]: Entering directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/api_examples'make[1]: Nothing to be done for `_depend'.make[1]: Leaving directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/api_examples'make -C tools allmake[1]: Entering directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/tools'gcc -Wall -pedantic -idirafter /home/walle/arm/arm_os/uboot/u-boot-samsung-dev/include -idirafter /home/walle/arm/arm_os/uboot/u-boot-samsung-dev/include2 -idirafter /home/walle/arm/arm_os/uboot/u-boot-samsung-dev/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.cgcc -Wall -pedantic -idirafter /home/walle/arm/arm_os/uboot/u-boot-samsung-dev/include -idirafter /home/walle/arm/arm_os/uboot/u-boot-samsung-dev/include2 -idirafter /home/walle/arm/arm_os/uboot/u-boot-samsung-dev/include -DTEXT_BASE=0xc3e00000 -DUSE_HOSTCC -O  -o img2srec img2srec.ostrip img2srecmake[1]: *** No rule to make target `/home/walle/arm/arm-os/U-Boot/u-boot-samsung-dev/include/sha1.h', needed by `mkimage.o'.  Stop.make[1]: Leaving directory `/home/walle/arm/arm_os/uboot/u-boot-samsung-dev/tools'make: *** [tools] Error 2

解决办法:执行 make distclean

一般来说,make clean 仅仅是清除之前编译的可执行文件及配置文件。而 make distclean 要清除所有生成的文件。

1 0
原创粉丝点击