From 708d4f09647106d549c646dc459c7ccf2c237cc8 Mon Sep 17 00:00:00 2001 From: Sam Ravnborg Date: Sat, 29 Nov 2008 22:15:38 -0800 Subject: [PATCH] sparc: prepare prom/ for unification - rename files where sparc64 uses identical names to *_32.c - refactor Makefile (but keep linking order) Signed-off-by: Sam Ravnborg Signed-off-by: David S. Miller --- arch/sparc/prom/Makefile | 15 +++++++++++++-- arch/sparc/prom/{bootstr.c => bootstr_32.c} | 0 arch/sparc/prom/{console.c => console_32.c} | 0 arch/sparc/prom/{devops.c => devops_32.c} | 0 arch/sparc/prom/{init.c => init_32.c} | 0 arch/sparc/prom/{misc.c => misc_32.c} | 0 arch/sparc/prom/{printf.c => printf_32.c} | 0 arch/sparc/prom/{tree.c => tree_32.c} | 0 8 files changed, 13 insertions(+), 2 deletions(-) rename arch/sparc/prom/{bootstr.c => bootstr_32.c} (100%) rename arch/sparc/prom/{console.c => console_32.c} (100%) rename arch/sparc/prom/{devops.c => devops_32.c} (100%) rename arch/sparc/prom/{init.c => init_32.c} (100%) rename arch/sparc/prom/{misc.c => misc_32.c} (100%) rename arch/sparc/prom/{printf.c => printf_32.c} (100%) rename arch/sparc/prom/{tree.c => tree_32.c} (100%) diff --git a/arch/sparc/prom/Makefile b/arch/sparc/prom/Makefile index 8f7e18546c97..74ca9cceaeea 100644 --- a/arch/sparc/prom/Makefile +++ b/arch/sparc/prom/Makefile @@ -2,5 +2,16 @@ # Linux. # -lib-y := bootstr.o devmap.o devops.o init.o memory.o misc.o mp.o \ - palloc.o ranges.o segment.o console.o printf.o tree.o +lib-y := bootstr_$(BITS).o +lib-$(CONFIG_SPARC32) += devmap.o +lib-y += devops_$(BITS).o +lib-y += init_$(BITS).o +lib-$(CONFIG_SPARC32) += memory.o +lib-y += misc_$(BITS).o +lib-$(CONFIG_SPARC32) += mp.o +lib-$(CONFIG_SPARC32) += palloc.o +lib-$(CONFIG_SPARC32) += ranges.o +lib-$(CONFIG_SPARC32) += segment.o +lib-y += console_$(BITS).o +lib-y += printf_$(BITS).o +lib-y += tree_$(BITS).o diff --git a/arch/sparc/prom/bootstr.c b/arch/sparc/prom/bootstr_32.c similarity index 100% rename from arch/sparc/prom/bootstr.c rename to arch/sparc/prom/bootstr_32.c diff --git a/arch/sparc/prom/console.c b/arch/sparc/prom/console_32.c similarity index 100% rename from arch/sparc/prom/console.c rename to arch/sparc/prom/console_32.c diff --git a/arch/sparc/prom/devops.c b/arch/sparc/prom/devops_32.c similarity index 100% rename from arch/sparc/prom/devops.c rename to arch/sparc/prom/devops_32.c diff --git a/arch/sparc/prom/init.c b/arch/sparc/prom/init_32.c similarity index 100% rename from arch/sparc/prom/init.c rename to arch/sparc/prom/init_32.c diff --git a/arch/sparc/prom/misc.c b/arch/sparc/prom/misc_32.c similarity index 100% rename from arch/sparc/prom/misc.c rename to arch/sparc/prom/misc_32.c diff --git a/arch/sparc/prom/printf.c b/arch/sparc/prom/printf_32.c similarity index 100% rename from arch/sparc/prom/printf.c rename to arch/sparc/prom/printf_32.c diff --git a/arch/sparc/prom/tree.c b/arch/sparc/prom/tree_32.c similarity index 100% rename from arch/sparc/prom/tree.c rename to arch/sparc/prom/tree_32.c -- 2.39.5