sparc,sparc64: unify Makefile
Subsystems (2)
PATCH 8/10 sparc,sparc64: unify Makefile
To unify Makefile for sparc and sparc64 a few other steps was needed:
1) separate defconfig files for sparc and sparc64 is required, so locate these in arch/sparc/configs
2) removoval of hack in toplevel Makefile to deal with that headers was in a separate directory compared to the rest
The unification of the Makefile required usage of several
foo-$(CONFIG_SPARCnn) +
due to a few directories pending unification.
This will be cleaned up when we unify the remaining directories.
Included in this patch are the deletion of a few files in sparc64 as they are no longer needed: Makefile + Kconfig. arach/sparc64/ will after this patch is applied only have four directories (prom, lib, kernel, boot)
---
Makefile | 9 +-
arch/sparc/Kconfig | 7 ++
arch/sparc/Makefile | 82 ++++++++++++++++---
.../sparc/{defconfig => configs/sparc32_defconfig} | 0
.../defconfig => sparc/configs/sparc64_defconfig} | 0
arch/sparc64/Kconfig | 1 -
arch/sparc64/Makefile | 48 ------------
7 files changed, 80 insertions(+), 67 deletions(-)
rename arch/sparc/{defconfig => configs/sparc32_defconfig} (100%)
rename arch/{sparc64/defconfig => sparc/configs/sparc64_defconfig} (100%)
delete mode 100644 arch/sparc64/Kconfig
delete mode 100644 arch/sparc64/MakefileMakefile +4 -5
@@ -205,12 +205,11 @@ ifeq ($(ARCH),x86_64) SRCARCH := x86 endif +# Additional ARCH settings for sparc + SRCARCH := sparc + # Where to locate arch specific headers -ifeq ($(ARCH),sparc64) - hdr-arch := sparc -else - hdr-arch := $(SRCARCH) -endif +hdr-arch := $(SRCARCH) KCONFIG_CONFIG ?= .config
arch/sparc/Kconfig +7 -0
@@ -41,6 +41,13 @@ config SPARC64 select RTC_DRV_SUN4V select RTC_DRV_STARFIRE +config ARCH_DEFCONFIG + string + default "arch/sparc/configs/sparc32_defconfig" if SPARC32 + default "arch/sparc/configs/sparc64_defconfig" if SPARC64 + + + config 64BIT def_bool y if SPARC64
arch/sparc/Makefile +69 -13
111 lines not on this page · raw message
arch/sparc/configs/sparc32_defconfig renamed from arch/sparc/defconfig +0 -0
arch/sparc/configs/sparc64_defconfig renamed from arch/sparc64/defconfig +0 -0
arch/sparc64/Kconfig deleted +0 -1
@@ -1 +0,0 @@ -source arch/sparc/Kconfig
arch/sparc64/Makefile deleted +0 -48
48 lines not on this page · raw message
Signature · 1 line
1.5.6.GIT