From 5cf08b4d2af53dbfa5db38951233ccaa4a888795 Mon Sep 17 00:00:00 2001 From: Oskar Viljasaar <oskar.viljasaar@iopsys.eu> Date: Tue, 19 Jan 2021 10:47:06 +0100 Subject: [PATCH] Import openwrt hack patch 321-powerpc_crtsavres_prereq.patch --- arch/powerpc/Makefile | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/arch/powerpc/Makefile b/arch/powerpc/Makefile index 8954108df4..d7d0f62190 100644 --- a/arch/powerpc/Makefile +++ b/arch/powerpc/Makefile @@ -60,20 +60,6 @@ machine-$(CONFIG_PPC64) += 64 machine-$(CONFIG_CPU_LITTLE_ENDIAN) += le UTS_MACHINE := $(subst $(space),,$(machine-y)) -# XXX This needs to be before we override LD below -ifdef CONFIG_PPC32 -KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o -else -KBUILD_LDFLAGS_MODULE += -T $(srctree)/arch/powerpc/kernel/module.lds -ifeq ($(call ld-ifversion, -ge, 225000000, y),y) -# Have the linker provide sfpr if possible. -# There is a corresponding test in arch/powerpc/lib/Makefile -KBUILD_LDFLAGS_MODULE += --save-restore-funcs -else -KBUILD_LDFLAGS_MODULE += arch/powerpc/lib/crtsavres.o -endif -endif - ifdef CONFIG_CPU_LITTLE_ENDIAN KBUILD_CFLAGS += -mlittle-endian KBUILD_LDFLAGS += -EL -- GitLab