Skip to contentSkip to conversation

kbuild: set no-integrated-as before incl. arch Makefile

PATCH In review Stefan Agner 2 participants 2 messages Mar 19, 2018 – Mar 20, 2018 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kbuild: set no-integrated-as before incl. arch Makefile

In order to make sure compiler flag detection for ARM works correctly the no-integrated-as flags need to be set before including the arch specific Makefile.

Fixes cfe17c9bbe6a ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile")
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Makefile +2 -2
index 56f76a5cd006..0474803c65f7 100644
@@ -487,6 +487,8 @@ CLANG_GCC_TC	:= --gcc-toolchain=$(GCC_TOOLCHAIN)
 endif
 KBUILD_CFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
 KBUILD_AFLAGS += $(CLANG_TARGET) $(CLANG_GCC_TC)
+KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
+KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
 endif
 
 RETPOLINE_CFLAGS_GCC := -mindirect-branch=thunk-extern -mindirect-branch-register
@@ -744,8 +746,6 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
 # See modpost pattern 2
 KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
 KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
-KBUILD_CFLAGS += $(call cc-option, -no-integrated-as)
-KBUILD_AFLAGS += $(call cc-option, -no-integrated-as)
 else
 
 # These warnings generated too much noise in a regular build.
Signature · 1 line
2.16.2
#1 lore raw

2018-03-20 6:12 GMT+09:00 Stefan Agner <[email protected]>:

Quoted 7 lines

In order to make sure compiler flag detection for ARM works correctly the no-integrated-as flags need to be set before including the arch specific Makefile.

Fixes cfe17c9bbe6a ("kbuild: move cc-option and cc-disable-warning after incl. arch Makefile")

---

Applied to linux-kbuild. Thanks!

Signature · 2 lines
Best Regards
Masahiro Yamada