工具与软件:
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 文件的致命错误、该文件是自动生成的、我们无法编辑。 尝试解决该错误