diff options
author | Vladimir Murzin <vladimir.murzin@arm.com> | 2020-01-15 15:18:25 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-01-15 17:35:12 +0100 |
commit | 8bf9284d99dcb1c8fbdfabde1979350cf41fa5f5 (patch) | |
tree | 867e0732923abbfe304444f90b9bb9976e6ff83c /arch/arm64/Makefile | |
parent | arm64: Move the LSE gas support detection to Kconfig (diff) | |
download | linux-8bf9284d99dcb1c8fbdfabde1979350cf41fa5f5.tar.xz linux-8bf9284d99dcb1c8fbdfabde1979350cf41fa5f5.zip |
arm64: Turn "broken gas inst" into real config option
Use the new 'as-instr' Kconfig macro to define CONFIG_BROKEN_GAS_INST
directly, making it available everywhere.
Signed-off-by: Vladimir Murzin <vladimir.murzin@arm.com>
[will: Drop redundant 'y if' logic]
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'arch/arm64/Makefile')
-rw-r--r-- | arch/arm64/Makefile | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 6dd8ecacc428..dca1a97751ab 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -42,19 +42,15 @@ cc_has_k_constraint := $(call try-run,echo \ return 0; \ }' | $(CC) -S -x c -o "$$TMP" -,,-DCONFIG_CC_HAS_K_CONSTRAINT=1) -ifeq ($(CONFIG_ARM64), y) -brokengasinst := $(call as-instr,1:\n.inst 0\n.rept . - 1b\n\nnop\n.endr\n,,-DCONFIG_BROKEN_GAS_INST=1) - - ifneq ($(brokengasinst),) +ifeq ($(CONFIG_BROKEN_GAS_INST),y) $(warning Detected assembler with broken .inst; disassembly will be unreliable) - endif endif -KBUILD_CFLAGS += -mgeneral-regs-only $(brokengasinst) \ +KBUILD_CFLAGS += -mgeneral-regs-only \ $(compat_vdso) $(cc_has_k_constraint) KBUILD_CFLAGS += -fno-asynchronous-unwind-tables KBUILD_CFLAGS += $(call cc-disable-warning, psabi) -KBUILD_AFLAGS += $(brokengasinst) $(compat_vdso) +KBUILD_AFLAGS += $(compat_vdso) KBUILD_CFLAGS += $(call cc-option,-mabi=lp64) KBUILD_AFLAGS += $(call cc-option,-mabi=lp64) |