Linux MIPS Architecture development
 help / color / mirror / Atom feed
* [patch] Coalesce duplicated SiByte settings
@ 2003-02-20 17:41 Maciej W. Rozycki
  2003-02-20 17:48 ` Kip Walker
  2003-02-20 18:31 ` Ralf Baechle
  0 siblings, 2 replies; 3+ messages in thread
From: Maciej W. Rozycki @ 2003-02-20 17:41 UTC (permalink / raw)
  To: Ralf Baechle, linux-mips

Hello,

 There is quite a lot identical entries for SiByte board variations in the
top-level architecture Makefiles.  They look confusing and I don't think
they are necessary.  Following is a proposal to remove duplicated entries. 
OK? 

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

patch-mips-2.4.20-20030214-sibyte_board-0
diff -up --recursive --new-file linux-mips-2.4.20-20030214.macro/arch/mips/Makefile linux-mips-2.4.20-20030214/arch/mips/Makefile
--- linux-mips-2.4.20-20030214.macro/arch/mips/Makefile	2003-02-08 03:56:22.000000000 +0000
+++ linux-mips-2.4.20-20030214/arch/mips/Makefile	2003-02-15 10:51:13.000000000 +0000
@@ -464,9 +464,9 @@ LOADADDR	:= 0x88002000
 endif
 
 #
-# Sibyte SB1250 SOC
+# Sibyte SB1250 SOC and Broadcom (SiByte) BCM112x SOCs
 #
-ifdef CONFIG_SIBYTE_SB1250
+ifneq ($(CONFIG_SIBYTE_SB1250)$(CONFIG_SIBYTE_BCM112X),)
 # This is a LIB so that it links at the end, and initcalls are later
 # the sequence; but it is built as an object so that modules don't get
 # removed (as happens, even if they have __initcall/module_init)
@@ -476,67 +476,21 @@ LOADADDR	:= 0x80100000
 endif
 
 #
-# Sibyte SWARM board
+# Sibyte boards:
 #
-ifdef CONFIG_SIBYTE_SWARM
-LIBS		+= arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS		+= arch/mips/sibyte/swarm
-endif
-ifdef CONFIG_SIBYTE_SENTOSA
+# BCM91250A (SWARM),
+# BCM91250E (Sentosa),
+# BCM91120C (CRhine),
+# BCM91120x (Carmel),
+# BCM91125C (CRhone),
+# BCM91125E (Rhone).
+#
+ifdef CONFIG_SIBYTE_BOARD
 LIBS		+= arch/mips/sibyte/swarm/sbswarm.a
 SUBDIRS		+= arch/mips/sibyte/swarm
 endif
 
 #
-# Broadcom (SiByte) BCM112x SOCs
-# (In fact, this just uses the exact same support as the BCM1250.)
-#
-ifdef CONFIG_SIBYTE_BCM112X
-# This is a LIB so that it links at the end, and initcalls are later
-# the sequence; but it is built as an object so that modules don't get
-# removed (as happens, even if they have __initcall/module_init)
-LIBS		+= arch/mips/sibyte/sb1250/sb1250.o
-SUBDIRS		+= arch/mips/sibyte/sb1250
-LOADADDR	:= 0x80100000
-endif
-
-#
-# Sibyte BCM91120C (CRhine) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_CRHINE
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
-# Sibyte BCM91120x (Carmel) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_CARMEL
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
-# Sibyte BCM91125C (CRhone) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_CRHONE
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
-# Sibyte BCM91125E (Rhone) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_RHONE
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
 # Sibyte CFE firmware
 #
 ifdef CONFIG_SIBYTE_CFE
diff -up --recursive --new-file linux-mips-2.4.20-20030214.macro/arch/mips64/Makefile linux-mips-2.4.20-20030214/arch/mips64/Makefile
--- linux-mips-2.4.20-20030214.macro/arch/mips64/Makefile	2003-02-08 03:56:27.000000000 +0000
+++ linux-mips-2.4.20-20030214/arch/mips64/Makefile	2003-02-15 10:50:41.000000000 +0000
@@ -192,9 +192,9 @@ LOADADDR	:= 0x80002000
 endif
 
 #
-# Sibyte SB1250 SOC
+# Sibyte SB1250 SOC and Broadcom (SiByte) BCM112x SOCs
 #
-ifdef CONFIG_SIBYTE_SB1250
+ifneq ($(CONFIG_SIBYTE_SB1250)$(CONFIG_SIBYTE_BCM112X),)
 # This is a LIB so that it links at the end, and initcalls are later
 # the sequence; but it is built as an object so that modules don't get
 # removed (as happens, even if they have __initcall/module_init)
@@ -208,71 +208,21 @@ endif
 endif
 
 #
-# Sibyte SWARM board
+# Sibyte boards:
 #
-ifdef CONFIG_SIBYTE_SWARM
-LIBS		+= arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS		+= arch/mips/sibyte/swarm
-endif
-ifdef CONFIG_SIBYTE_SENTOSA
+# BCM91250A (SWARM),
+# BCM91250E (Sentosa),
+# BCM91120C (CRhine),
+# BCM91120x (Carmel),
+# BCM91125C (CRhone),
+# BCM91125E (Rhone).
+#
+ifdef CONFIG_SIBYTE_BOARD
 LIBS		+= arch/mips/sibyte/swarm/sbswarm.a
 SUBDIRS		+= arch/mips/sibyte/swarm
 endif
 
 #
-# Broadcom (SiByte) BCM112x SOCs
-# (In fact, this just uses the exact same support as the BCM1250.)
-#
-ifdef CONFIG_SIBYTE_BCM112X
-# This is a LIB so that it links at the end, and initcalls are later
-# the sequence; but it is built as an object so that modules don't get
-# removed (as happens, even if they have __initcall/module_init)
-LIBS		+= arch/mips/sibyte/sb1250/sb1250.o
-SUBDIRS		+= arch/mips/sibyte/sb1250
-ifdef CONFIG_MIPS_UNCACHED
-LOADADDR	:= 0xa0100000
-else
-LOADADDR	:= 0x80100000
-endif
-endif
-
-#
-# Sibyte BCM91120C (CRhine) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_CRHINE
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
-# Sibyte BCM91120x (Carmel) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_CARMEL
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
-# Sibyte BCM91125C (CRhone) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_CRHONE
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
-# Sibyte BCM91125E (Rhone) board
-# (In fact, this just uses the exact same support as the BCM912500A (SWARM).)
-#
-ifdef CONFIG_SIBYTE_RHONE
-LIBS          += arch/mips/sibyte/swarm/sbswarm.a
-SUBDIRS       += arch/mips/sibyte/swarm
-endif
-
-#
 # Sibyte CFE firmware
 #
 ifdef CONFIG_SIBYTE_CFE

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] Coalesce duplicated SiByte settings
  2003-02-20 17:41 [patch] Coalesce duplicated SiByte settings Maciej W. Rozycki
@ 2003-02-20 17:48 ` Kip Walker
  2003-02-20 18:31 ` Ralf Baechle
  1 sibling, 0 replies; 3+ messages in thread
From: Kip Walker @ 2003-02-20 17:48 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: linux-mips, Ralf Baechle

"Maciej W. Rozycki" wrote:
> 
> Hello,
> 
>  There is quite a lot identical entries for SiByte board variations in the
> top-level architecture Makefiles.  They look confusing and I don't think
> they are necessary.  Following is a proposal to remove duplicated entries.
> OK?

Mmm, cool.  No objection here.  I think they'll continue to share the
subdirectories/code that they do now.

Kip

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [patch] Coalesce duplicated SiByte settings
  2003-02-20 17:41 [patch] Coalesce duplicated SiByte settings Maciej W. Rozycki
  2003-02-20 17:48 ` Kip Walker
@ 2003-02-20 18:31 ` Ralf Baechle
  1 sibling, 0 replies; 3+ messages in thread
From: Ralf Baechle @ 2003-02-20 18:31 UTC (permalink / raw)
  To: Maciej W. Rozycki; +Cc: linux-mips

On Thu, Feb 20, 2003 at 06:41:52PM +0100, Maciej W. Rozycki wrote:

>  There is quite a lot identical entries for SiByte board variations in the
> top-level architecture Makefiles.  They look confusing and I don't think
> they are necessary.  Following is a proposal to remove duplicated entries. 
> OK? 

Yep, I like this.

  Ralf

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-02-20 18:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-20 17:41 [patch] Coalesce duplicated SiByte settings Maciej W. Rozycki
2003-02-20 17:48 ` Kip Walker
2003-02-20 18:31 ` Ralf Baechle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox