当前位置:网站首页>Black cats take you learn Makefile article 13: a Makefile collection compile problem

Black cats take you learn Makefile article 13: a Makefile collection compile problem

2022-08-10 22:01:00 Senior black cat

This article is compiled/written based on personal work/study experience and network information. Paid content is prohibited from being reproduced.
The column where this article is located "Black cat takes you to learn Makefile"

1 ***No rule to make target ‘ ‘, needed by…

As shown in the figure:
Insert image description here
View the above make generationWhere the .depend is suddenly not generated.
The reason may be that the Makefile generates dependencies, but the .c file does not exist in the actual code.

2 make uboot generate autoconf.mk problem

Reference link: https://blog.csdn.net/tuwenqi2013/article/details/54293229
https://blog.csdn.net/groundhappy/article/details/52709959

3 uboot configuration#make xxx Error: rm: cannot remove `asm/arch’: Is a directory

I guess this Uboot is not the source code you downloaded, but it is compiled by someone else and you want to recompile,

There is a mkconfig file at the top level of Uboot, after you open it, add -r after all rms in it

For example, the source code is rm -d asm-arm/arch and can be changed to rm -rd asm-arm/arch, which means forced deletion

原网站

版权声明
本文为[Senior black cat]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/222/202208102109577143.html