Hello all, I want to build U-Boot and I followed step by step from Build U-Boot and Linux Kernel from Source Code | Toradex Developer Center and I got those errors from Compilation
The following is the procedure to compile the boot loader: make -j3 2>&1 | tee build.log
make -j3 2>&1 | tee build.log
scripts/kconfig/conf --syncconfig Kconfig
UPD include/config.h
CFG u-boot.cfg
GEN include/autoconf.mk.dep
GEN include/autoconf.mk
UPD include/generated/dt.h
UPD include/generated/timestamp_autogenerated.h
HOSTCC scripts/dtc/dtc.o
HOSTCC scripts/dtc/flattree.o
HOSTCC scripts/dtc/fstree.o
HOSTCC scripts/dtc/data.o
HOSTCC scripts/dtc/livetree.o
HOSTCC scripts/dtc/treesource.o
HOSTCC scripts/dtc/srcpos.o
HOSTCC scripts/dtc/checks.o
HOSTCC scripts/dtc/util.o
LEX scripts/dtc/dtc-lexer.lex.c
YACC scripts/dtc/dtc-parser.tab.c
YACC scripts/dtc/dtc-parser.tab.h
HOSTCC scripts/dtc/dtc-parser.tab.o
HOSTCC scripts/dtc/dtc-lexer.lex.o
HOSTLD scripts/dtc/dtc
UPD include/config/uboot.release
UPD include/generated/version_autogenerated.h
CC arch/arm/lib/asm-offsets.s
CC lib/asm-offsets.s
lib/asm-offsets.c:1:0: error: bad value (generic-armv7-a) for -mtune= switch
// SPDX-License-Identifier: GPL-2.0+
scripts/Makefile.build:155: recipe for target 'lib/asm-offsets.s' failed
make[1]: *** [lib/asm-offsets.s] Error 1
make[1]: *** Waiting for unfinished jobs....
arch/arm/lib/asm-offsets.c:1:0: error: bad value (generic-armv7-a) for -mtune= switch
// SPDX-License-Identifier: GPL-2.0+
scripts/Makefile.build:155: recipe for target 'arch/arm/lib/asm-offsets.s' failed
make[1]: *** [arch/arm/lib/asm-offsets.s] Error 1
Makefile:1839: recipe for target 'prepare0' failed
make: *** [prepare0] Error 2
Thanks a lot for your help.