Skip to contentSkip to conversation

sparc,sparc64: unify Makefile

PATCH New Sam Ravnborg 1 participant 1 message Nov 29, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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/Makefile
Makefile +4 -5
index 7b1f238..0043224 100644
@@ -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
index e162535..26ddeed 100644
@@ -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
similarity index 100%
rename from arch/sparc/defconfig
rename to arch/sparc/configs/sparc32_defconfig
arch/sparc/configs/sparc64_defconfig renamed from arch/sparc64/defconfig +0 -0
similarity index 100%
rename from arch/sparc64/defconfig
rename to arch/sparc/configs/sparc64_defconfig
arch/sparc64/Kconfig deleted +0 -1
deleted file mode 100644
index caa9421..0000000
@@ -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