scripts/Makefile.build:258: recipe for target ‘scripts/mod/empty.o‘ failed

[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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值