Skip to content

Commit 987fdfe

Browse files
committed
arm64: move --fix-cortex-a53-843419 linker test to Kconfig
Since commit 805b2e1 ("kbuild: include Makefile.compiler only when compiler is needed"), "make ARCH=arm64 (modules_)install" shows a false positive warning. Move the ld-option test to Kconfig, so that the result can be stored in the .config file, avoiding multiple-time evaluations in the build and installation time. Reported-by: Nathan Chancellor <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Acked-by: Will Deacon <[email protected]> Tested-by: Nathan Chancellor <[email protected]> Reviewed-by: Nathan Chancellor <[email protected]>
1 parent 2e98815 commit 987fdfe

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

arch/arm64/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,9 @@ config ARM64_ERRATUM_843419
521521

522522
If unsure, say Y.
523523

524+
config ARM64_LD_HAS_FIX_ERRATUM_843419
525+
def_bool $(ld-option,--fix-cortex-a53-843419)
526+
524527
config ARM64_ERRATUM_1024718
525528
bool "Cortex-A55: 1024718: Update of DBM/AP bits without break before make might result in incorrect update"
526529
default y

arch/arm64/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ LDFLAGS_vmlinux += -shared -Bsymbolic -z notext \
2121
endif
2222

2323
ifeq ($(CONFIG_ARM64_ERRATUM_843419),y)
24-
ifeq ($(call ld-option, --fix-cortex-a53-843419),)
24+
ifneq ($(CONFIG_ARM64_LD_HAS_FIX_ERRATUM_843419),y)
2525
$(warning ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum)
2626
else
2727
LDFLAGS_vmlinux += --fix-cortex-a53-843419

0 commit comments

Comments
 (0)