U-boot compilation error

terry.
I try build root on nougat.

I modif

“EnableSelinux=permissive\0”\

Then I try this:

and my result:

davemf@ubuntu:~/project/khadas/nougat/uboot$ make distclean
CLEAN examples/standalone
CLEAN tools
CLEAN tools/lib tools/common
CLEAN u-boot u-boot.bin u-boot.hex u-boot.lds u-boot.map u-boot.srec System.map
CLEAN scripts/basic
CLEAN scripts/kconfig
CLEAN include/config include/generated
CLEAN .config .config.old include/autoconf.mk include/autoconf.mk.dep include/config.h

make completed successfully (6 seconds)

davemf@ubuntu:~/project/khadas/nougat/uboot$ make kvim_defconfig
HOSTCC scripts/basic/fixdep
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/zconf.lex.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf

configuration written to .config

make completed successfully (6 seconds)

davemf@ubuntu:~/project/khadas/nougat/uboot$
davemf@ubuntu:~/project/khadas/nougat/uboot$
davemf@ubuntu:~/project/khadas/nougat/uboot$ make -j8
GEN ./Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
CHK include/config.h
UPD include/config.h
GEN include/autoconf.mk
GEN include/autoconf.mk.dep
cc1: warning: unknown register name: x18 [enabled by default]
cc1: warning: unknown register name: x18 [enabled by default]
CHK include/config/uboot.release
CHK include/generated/timestamp_autogenerated.h
GEN ./Makefile
UPD include/generated/timestamp_autogenerated.h
UPD include/config/uboot.release
Using … as source for U-Boot
CHK include/generated/version_autogenerated.h
UPD include/generated/version_autogenerated.h
CC lib/asm-offsets.s
CC arch/arm/lib/asm-offsets.s
cc1: error: unknown register name: x18 [-Werror]
cc1: all warnings being treated as errors
cc1: error: unknown register name: x18 [-Werror]
make[2]: *** [lib/asm-offsets.s] Error 1
make[2]: *** Waiting for unfinished jobs…
cc1: all warnings being treated as errors
make[2]: *** [arch/arm/lib/asm-offsets.s] Error 1
make[1]: *** [prepare0] Error 2
make: *** [sub-make] Error 2

make failed to build some targets (5 seconds)

May be need ?

$ make CROSS_COMPILE=aarch64-linux-gnu- kvim_defconfig
$ make CROSS_COMPILE=aarch64-linux-gnu-

not

$ make kvim_defconfig
$ make -j8

1 Like