# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: 进入目录“/forlinx/uboot1.1.6/tools”
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
make[1]: *** 没有规则可制作目标“.depend”,由“_depend” 需求。 停止。
make[1]: 离开目录“/forlinx/uboot1.1.6/tools”
make[1]: 进入目录“/forlinx/uboot1.1.6/examples”
make[1]: 对“_depend”无需做任何事。
make[1]: 离开目录“/forlinx/uboot1.1.6/examples”
make[1]: 进入目录“/forlinx/uboot1.1.6/post”
make[1]: 对“_depend”无需做任何事。
make[1]: 离开目录“/forlinx/uboot1.1.6/post”
make[1]: 进入目录“/forlinx/uboot1.1.6/post/cpu”
make[1]: 对“_depend”无需做任何事。
make[1]: 离开目录“/forlinx/uboot1.1.6/post/cpu”
make -C tools all
make[1]: 进入目录“/forlinx/uboot1.1.6/tools”
gcc -Wall -pedantic -idirafter /forlinx/uboot1.1.6/include -idirafter /forlinx/uboot1.1.6/include2 -idirafter /forlinx/uboot1.1.6/include -DTEXT_BASE=0xCFE00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
make[1]: gcc: Command not found
/forlinx/uboot1.1.6/config.mk:234: recipe for target 'img2srec.o' failed
make[1]: *** [img2srec.o] Error 127
make[1]: 离开目录“/forlinx/uboot1.1.6/tools”
Makefile:281: recipe for target 'tools' failed
make: *** [tools] Error 2
我使用的编译器不是手册里面那种,出错可能是因为手册内提供的uboot有一些路径设置和我的不一样。请问,我该怎么修改,改哪些文件,depend又是哪个?
# make
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: 进入目录“/forlinx/uboot1.1.6/tools”
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
/bin/sh: 3: gcc: not found
make[1]: *** 没有规则可制作目标“.depend”,由“_depend” 需求。 停止。
make[1]: 离开目录“/forlinx/uboot1.1.6/tools”
make[1]: 进入目录“/forlinx/uboot1.1.6/examples”
make[1]: 对“_depend”无需做任何事。
make[1]: 离开目录“/forlinx/uboot1.1.6/examples”
make[1]: 进入目录“/forlinx/uboot1.1.6/post”
make[1]: 对“_depend”无需做任何事。
make[1]: 离开目录“/forlinx/uboot1.1.6/post”
make[1]: 进入目录“/forlinx/uboot1.1.6/post/cpu”
make[1]: 对“_depend”无需做任何事。
make[1]: 离开目录“/forlinx/uboot1.1.6/post/cpu”
make -C tools all
make[1]: 进入目录“/forlinx/uboot1.1.6/tools”
gcc -Wall -pedantic -idirafter /forlinx/uboot1.1.6/include -idirafter /forlinx/uboot1.1.6/include2 -idirafter /forlinx/uboot1.1.6/include -DTEXT_BASE=0xCFE00000 -DUSE_HOSTCC -O -c -o img2srec.o img2srec.c
make[1]: gcc: Command not found
/forlinx/uboot1.1.6/config.mk:234: recipe for target 'img2srec.o' failed
make[1]: *** [img2srec.o] Error 127
make[1]: 离开目录“/forlinx/uboot1.1.6/tools”
Makefile:280: recipe for target 'tools' failed
make: *** [tools] Error 2
换用手册提供的交叉编译器后结果一样。