the wrong message about '_depend'

linux system: redhat 9 cross compiler: arm-elf-gcc 2.95.3 bootloader: u-boot 1.1.6 when compliing,the wrong message is below:

[root@zheng u-boot-1.1.6]# make all for dir in tools examples post post/cpu ; do make -C $dir _depend ; done make[1]: Entering directory `/home/zheng/workstation/u-boot-1.1.6/tools' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/zheng/workstation/u-boot-1.1.6/tools' make[1]: Entering directory `/home/zheng/workstation/u-boot-1.1.6/examples' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/zheng/workstation/u-boot-1.1.6/examples' make[1]: Entering directory `/home/zheng/workstation/u-boot-1.1.6/post' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/zheng/workstation/u-boot-1.1.6/post' make[1]: Entering directory `/home/zheng/workstation/u-boot-1.1.6/post/cpu' make[1]: Nothing to be done for `_depend'. make[1]: Leaving directory `/home/zheng/workstation/u-boot-1.1.6/post/cpu' make -C tools all make[1]: Entering directory `/home/zheng/workstation/u-boot-1.1.6/tools' make[1]: *** No rule to make target `/home/zheng/workstation/u-boot-1.1.6/include/configs/mysbc405.h', needed by `envcrc.o'. Stop. make[1]: Leaving directory `/home/zheng/workstation/u-boot-1.1.6/tools' make: *** [tools] Error 2

Any help would be appreciated.

Reply to
jackle
Loading thread data ...

The error is probably not related to the '_depend' messages. Look at the last two lines. It seems like you're missing the mysbc405.h file.

Reply to
Arlet

I think you might be missing a header file. The _depend target is not the problem here: it seems that you didn't tell make how to build mysbc405.h, which it needs to make envcrc.o.

_Ico

--
:wq
^X^Cy^K^X^C^C^C^C
Reply to
Ico

depend' messages. Look at

=D2=FE=B2=D8=B1=BB=D2=FD=D3=C3=CE=C4=D7=D6 -- =CF=D4=CA=BE=D2=FD=D3=C3=B5= =C4=CE=C4=D7=D6 -

Reply to
jackle

You need to tell make not to try to make envcrc.o either --- it's trying to make envcrc.o (by compiling envcrc.c, probably) but it knows that it needs mysbc405.h to do that.

Somewhere in the makefiles there is probably a variable which lists objects that need to be built.

--
   Wim Lewis , Seattle, WA, USA. PGP keyID 27F772C1
Reply to
Wim Lewis

From /home/zheng/workstation/u-boot-1.1.6

do find . -type f | xargs grep envcrc

This should list all files that contain "envcrc"

Regards, Hans

Reply to
Hans Bus

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.