[OHOS ERROR] scripts/Makefile.build:258: recipe for target 'scripts/mod/empty.o' failed
[OHOS ERROR] make[3]: *** [scripts/mod/empty.o] Error 1
[OHOS ERROR] make[3]: *** Waiting for unfinished jobs....
[OHOS ERROR] clang-10: error: unknown argument: '-mno-thumb-interwork'
[OHOS ERROR] scripts/Makefile.build:153: recipe for target 'scripts/mod/devicetable-offsets.s' failed
[OHOS ERROR] make[3]: *** [scripts/mod/devicetable-offsets.s] Error 1
[OHOS ERROR] Generating include/generated/mach-types.h
[OHOS ERROR] scripts/Makefile.build:403: recipe for target 'scripts/mod' failed
[OHOS ERROR] make[2]: *** [scripts/mod] Error 2
[OHOS ERROR] make[2]: *** Waiting for unfinished jobs....
[OHOS ERROR] CC kernel/bounds.s
[OHOS ERROR] clang-10: error: unknown argument: '-mno-thumb-interwork'
[OHOS ERROR] Kbuild:43: recipe for target 'kernel/bounds.s' failed
[OHOS ERROR] make[2]: *** [kernel/bounds.s] Error 1
[OHOS ERROR] Makefile:991: recipe for target 'prepare0' failed
[OHOS ERROR] make[1]: *** [prepare0] Error 2
[OHOS ERROR] make[1]: *** Waiting for unfinished jobs....
[OHOS ERROR] HOSTLD scripts/dtc/dtc
[OHOS ERROR] HOSTLD scripts/genksyms/genksyms
[OHOS ERROR] Makefile:555: recipe for target 'scripts' failed
[OHOS ERROR] make[1]: *** [scripts] Error 2
[OHOS ERROR] make[1]: Leaving directory '/home/openharmony/out/imx6ul_nand_linux/imx6ul_nand_openharmony/kernel/linux-4.1.15'
[OHOS ERROR] kernel.mk:74: recipe for target '/home/openharmony/out/imx6ul_nand_linux/imx6ul_nand_openharmony/kernel/linux-4.1.15/arch/arm/boot/uImage' failed
[OHOS ERROR] make: *** [/home/openharmony/out/imx6ul_nand_linux/imx6ul_nand_openharmony/kernel/linux-4.1.15/arch/arm/boot/uImage] Error 2
[OHOS ERROR] you can check build log in /home/openharmony/out/imx6ul_nand_linux/imx6ul_nand_openharmony/build.log
[OHOS ERROR] command: "/home/openharmony/prebuilts/build-tools/linux-x86/bin/ninja -w dupbuild=warn -C /home/openharmony/out/imx6ul_nand_linux/imx6ul_nand_openharmony" failed
[OHOS ERROR] return code: 1
[OHOS ERROR] execution path: /home/openharmony
通过搜索引擎发现需要更改
+++ b/arch/arm/Makefile
diff --git a/arch/arm/Makefile b/arch/arm/Makefile
index e83f5161fdd8..e9e3fde3c657 100644
--- a/arch/arm/Makefile
+++ b/arch/arm/Makefile
@@ -106,7 +106,7 @@ tune-$(CONFIG_CPU_V6K) =$(call cc-option,-mtune=arm1136j-s,-mtune=strongarm)
tune-y := $(tune-y)
ifeq ($(CONFIG_AEABI),y)
-CFLAGS_ABI :=-mabi=aapcs-linux -mno-thumb-interwork -mfpu=vfp
+CFLAGS_ABI :=-mabi=aapcs-linux -mfpu=vfp
else
CFLAGS_ABI :=$(call cc-option,-mapcs-32,-mabi=apcs-gnu) $(call cc-option,-mno-thumb-interwork,)
endif