arm-buildroot-linux-gnueabihf-gcc -v 工具是没问题的 但是 内核编译的时候 一直报这个错
amlogic@amlogic-OptiPlex-7050:~/100ask_imx6ull-sdk/Linux-4.9.88$ make zImage -j8
./scripts/gcc-version.sh: line 25: arm-buildroot-linux-gnueabihf-exportgcc: command not found
./scripts/gcc-version.sh: line 26: arm-buildroot-linux-gnueabihf-exportgcc: command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
CHK include/config/kernel.release
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
CHK include/generated/uapi/linux/version.h
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
CHK include/generated/utsrelease.h
make: arm-buildroot-linux-gnueabihf-exportgcc: Command not found
HOSTCC scripts/asn1_compiler
CC scripts/mod/empty.o
/bin/sh: 1: arm-buildroot-linux-gnueabihf-exportgcc: not found
HOSTCC scripts/conmakehash
HOSTCC scripts/sortextable
scripts/Makefile.build:293: recipe for target ‘scripts/mod/empty.o’ failed
make[2]: *** [scripts/mod/empty.o] Error 127
make[2]: *** Waiting for unfinished jobs…
HOSTCC scripts/mod/mk_elfconfig
HOSTCC scripts/recordmcount
CC scripts/mod/devicetable-offsets.s
/bin/sh: 1: arm-buildroot-linux-gnueabihf-exportgcc: not found
scripts/Makefile.build:154: recipe for target ‘scripts/mod/devicetable-offsets.s’ failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 127
scripts/Makefile.build:544: recipe for target ‘scripts/mod’ failed
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs…
Makefile:557: recipe for target ‘scripts’ failed
make: *** [scripts] Error 2
你的环境变量 CROSS_COMPILE 设置错了
请重新设置一下:
export CROSS_COMPILE=arm-buildroot-linux-gnueabihf-
是的 我刚刚也发现了 感谢