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: fatal error when try to configure the u-boot and build u-boot

Part Number: BEAGLEBOARD-X15

Tool/software:

abhishek@abhishek-virtual-machine:~/BBB/Uboot_Source_SDK$ make CROSS_COMPILE=arm-linux-gnueabihf- V=1
make -f ./Makefile syncconfig
make -f ./scripts/Makefile.build obj=scripts/basic
rm -f .tmp_quiet_recordmcount
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; false; }
if [ -d arch/arm/mach-/include/mach ]; then \
dest=../../mach-/include/mach; \
else \
dest=arch-armv7; \
fi; \
ln -fsn $dest arch/arm/include/asm/arch
set -e; mkdir -p include/; (echo "/* Automatically generated - do not edit */"; for i in $(echo "" | sed 's/,/ /g'); do echo \#define CONFIG_$i | sed '/=/ {s/=/ /;q; } ; { s/$/ 1/; }'; done; echo \#define CONFIG_BOARDDIR board/; echo \#include \<config_uncmd_spl.h\>; echo \#include \<configs/.h\>; echo \#include \<asm/config.h\>; echo \#include \<linux/kconfig.h\>; echo \#include \<config_fallbacks.h\>;) < scripts/Makefile.autoconf > include/config.h.tmp; if [ -r include/config.h ] && cmp -s include/config.h include/config.h.tmp; then rm -f include/config.h.tmp; else : ' UPD include/config.h'; mv -f include/config.h.tmp include/config.h; fi
arm-linux-gnueabihf-gcc -E -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -std=gnu11 -fshort-wchar -fno-strict-aliasing -fno-PIE -O2 -fno-stack-protector -fno-delete-null-pointer-checks -Wno-stringop-truncation -Wno-maybe-uninitialized -fmacro-prefix-map=./= -g -fstack-usage -Wno-format-nonliteral -Wno-address-of-packed-member -Wno-unused-but-set-variable -Werror=date-time -D_KERNEL_ -D_UBOOT_ -D_ARM_ -Wa,-mimplicit-it=always -mthumb -mthumb-interwork -mabi=aapcs-linux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -Iinclude -I./arch/arm/include -include ./include/linux/kconfig.h -nostdinc -isystem /usr/lib/gcc-cross/arm-linux-gnueabihf/11/include -DDO_DEPS_ONLY -dM ./include/common.h > u-boot.cfg.tmp && { grep 'define CONFIG_' u-boot.cfg.tmp > u-boot.cfg; rm u-boot.cfg.tmp; } || { rm u-boot.cfg.tmp; false; }
In file included from ./include/common.h:16:
include/config.h:4:10: fatal error: configs/.h: No such file or directory
4 | #include <configs/.h>
| ^~~~~~
compilation terminated.
make[1]: * [scripts/Makefile.autoconf:77: u-boot.cfg] Error 1
make: * No rule to make target 'include/config/auto.conf', needed by 'include/config/uboot.release'. Stop.

When trying to build U-Boot, we encounter a fatal error originating from the include/config.h file, which is an auto-generated file that we cannot edit. try to solve this Error