This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] BeagleBoard-X15:尝试配置 u-boot 和构建 u-boot 时出现致命错误

Guru**** 1791630 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1396886/beagleboard-x15-fatal-error-when-try-to-configure-the-u-boot-and-build-u-boot

器件型号:BeagleBoard-X15

工具与软件:

Abhishek@Abhishek-virtual-machine:~/BBB/381$ Uboot_Source_ make cross_compile=arm-linux-gnueabihf- v=1
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
RM -f .tmp_quiet 记录计数
make -f ./scripts/Makefile.build obj=scripts/kconfig syncconfig
scripts/kconfig.conf --syncconfig Kconfig
make -f ./scripts/Makefile.autoconf ||\
{ rm -f include/config/auto.conf; fals;}
如果[-d arch/arm/mach-/include/mach ];则\
dest=../../mach-/include/mach;\
否则\
dest=arch-armv7;\
FI;\
ln -fsn $dest arch/arm/include/asm/arch
set -e;mkdir -p include/;(echo "/*自动生成-不编辑*/;for i in $(echo ""| sed 's/、//g');do echo \#define CONFIG_$i | sed '/=/;q;};{s/$/ 1/;}';done;done; echo \#define CONFIG_BOARDDIR board/;echo \#include \ ; echo \#include \ ; echo \#include \ ; echo \#include \ ; echo \#include \ ;)< scripts/install/h.tmp > include/config.h.tmp;if [-r include/cmp config.h -s include/config.h.tmp config.h;然后 rm -f include/config.h.tmp;else:' upd include/config.h';mv -f include/Makefile.autoconf config.h.tmp include/config.h;fi.
arm-linux-gnueabihf-gcc -E -wstrict-aligned PIE sections -wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar pic /arch/arm/include /include/linux/kconfig.h /usr/lib/gcc-cross/arm-linux-gnueabihf/11/include /include/common.h u-boot.cfg.tmp u-boot.cfg.tmp
在包含于./include/common.h:16的文件中:
include/config.h:4:10:致命错误:configs/.h:没有这样的文件或目录
4 |#include
|^~~~~~
编译已终止。
make[1]:*[scripts/Makefile.autoconf:77: u-boot.cfg ]错误1.
make:*没有将目标设为"include/config/auto.conf"的规则、由"include/config/uboot.release"需要。停止。

在尝试编译 U-Boot 时、我们会遇到源自 include/config.h 文件的致命错误、该文件是自动生成的、我们无法编辑。 尝试解决该错误