@@ -104,14 +104,6 @@ prelink.o: $(ALL_OBJS) $(ALL_LIBS) FORCE
$(call if_changed,ld)
endif
-ifeq ($(CONFIG_ARM64_ERRATUM_843419),y)
- ifeq ($(call ld-option, --fix-cortex-a53-843419),n)
- $(warning ld does not support --fix-cortex-a53-843419; xen may be susceptible to erratum)
- else
- XEN_LDFLAGS += --fix-cortex-a53-843419
- endif
-endif
-
targets += prelink.o
$(TARGET)-syms: prelink.o xen.lds
@@ -17,3 +17,11 @@ $(call cc-option-add,CFLAGS-$(CONFIG_ARM_64),CC,-mno-outline-atomics)
ifneq ($(filter command line environment,$(origin CONFIG_EARLY_PRINTK)),)
$(error You must use 'make menuconfig' to enable/disable early printk now)
endif
+
+ifeq ($(CONFIG_ARM64_ERRATUM_843419),y)
+ ifeq ($(call ld-option, --fix-cortex-a53-843419),n)
+ $(warning ld does not support --fix-cortex-a53-843419; xen may be susceptible to erratum)
+ else
+ LDFLAGS += --fix-cortex-a53-843419
+ endif
+endif
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com> --- xen/arch/arm/Makefile | 8 -------- xen/arch/arm/arch.mk | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-)