Skip to contentSkip to conversation

MIPS: Alchemy: move boards over to obj-y

PATCH In review Manuel Lauss 2 participants 4 messages Jun 1, 2010 – Jun 2, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 MIPS: Alchemy: move boards over to obj-y

Preparatory step for moving Alchemy over to new MIPS Platform build system support.

---
The other boards no longer use libs, without any ill effects. In the past the lib-y code would sometimes not be picked up and cause link failures, so this also improves build reliability.

 arch/mips/Makefile                 |    4 ++--
 arch/mips/alchemy/mtx-1/Makefile   |    3 +--
 arch/mips/alchemy/xxs1500/Makefile |    2 +-
 3 files changed, 4 insertions(+), 5 deletions(-)
arch/mips/Makefile +2 -2
index 14b755d..8282152 100644
@@ -290,13 +290,13 @@ load-$(CONFIG_MIPS_MIRAGE)	+= 0xffffffff80100000
 #
 # 4G-Systems eval board
 #
-libs-$(CONFIG_MIPS_MTX1)	+= arch/mips/alchemy/mtx-1/
+core-$(CONFIG_MIPS_MTX1)	+= arch/mips/alchemy/mtx-1/
 load-$(CONFIG_MIPS_MTX1)	+= 0xffffffff80100000
 
 #
 # MyCable eval board
 #
-libs-$(CONFIG_MIPS_XXS1500)	+= arch/mips/alchemy/xxs1500/
+core-$(CONFIG_MIPS_XXS1500)	+= arch/mips/alchemy/xxs1500/
 load-$(CONFIG_MIPS_XXS1500)	+= 0xffffffff80100000
 
 # must be last for Alchemy systems for GPIO to work properly
arch/mips/alchemy/mtx-1/Makefile +1 -2
index 4a53815..f912022 100644
@@ -6,7 +6,6 @@
 # Makefile for 4G Systems MTX-1 board.
 #
 
-lib-y := init.o board_setup.o
-obj-y := platform.o
+obj-y += init.o board_setup.o platform.o
 
 EXTRA_CFLAGS += -Werror
arch/mips/alchemy/xxs1500/Makefile +1 -1
index 4dc81d7..81c516e 100644
@@ -5,6 +5,6 @@
 # Makefile for MyCable XXS1500 board.
 #
 
-lib-y := init.o board_setup.o platform.o
+obj-y += init.o board_setup.o platform.o
 
 EXTRA_CFLAGS += -Werror
Signature · 1 line
1.7.1
#1 lore raw

PATCH v3 2/2 MIPS: Move Alchemy Makefile parts to their own Platform file.

From: Manuel Lauss <[email protected]>

---
On top of mips-queue, build tested.

 arch/mips/Kbuild.platforms           |    1 +
 arch/mips/Makefile                   |  105 --------------------------------
 arch/mips/alchemy/Platform           |  109 ++++++++++++++++++++++++++++++++++
 arch/mips/alchemy/common/Makefile    |    2 -
 arch/mips/alchemy/devboards/Makefile |    2 -
 arch/mips/alchemy/mtx-1/Makefile     |    2 -
 arch/mips/alchemy/xxs1500/Makefile   |    2 -
 7 files changed, 110 insertions(+), 113 deletions(-)
 create mode 100644 arch/mips/alchemy/Platform
arch/mips/Kbuild.platforms +1 -0
index 9784c49..dc2bac5 100644
@@ -1,5 +1,6 @@
 # All platforms listed in alphabetic order
 
+platforms += alchemy
 platforms += ar7
 platforms += loongson
 
arch/mips/Makefile +0 -105

111 lines not on this page · raw message

arch/mips/alchemy/Platform new file +109 -0

109 lines not on this page · raw message

arch/mips/alchemy/common/Makefile +0 -2
index 06c0e65..27811fe 100644
@@ -18,5 +18,3 @@ ifeq ($(CONFIG_ALCHEMY_GPIO_INDIRECT),)
 endif
 
 obj-$(CONFIG_PCI)		+= pci.o
-
-EXTRA_CFLAGS += -Werror
arch/mips/alchemy/devboards/Makefile +0 -2
index ecbd37f..826449c 100644
@@ -16,5 +16,3 @@ obj-$(CONFIG_MIPS_DB1500)	+= db1x00/
 obj-$(CONFIG_MIPS_DB1550)	+= db1x00/
 obj-$(CONFIG_MIPS_BOSPORUS)	+= db1x00/
 obj-$(CONFIG_MIPS_MIRAGE)	+= db1x00/
-
-EXTRA_CFLAGS += -Werror
arch/mips/alchemy/mtx-1/Makefile +0 -2
index f912022..81b540c 100644
@@ -7,5 +7,3 @@
 #
 
 obj-y += init.o board_setup.o platform.o
-
-EXTRA_CFLAGS += -Werror
arch/mips/alchemy/xxs1500/Makefile +0 -2
index 81c516e..91defcf 100644
@@ -6,5 +6,3 @@
 #
 
 obj-y += init.o board_setup.o platform.o
-
-EXTRA_CFLAGS += -Werror
Signature · 1 line
1.7.1
#2 lore raw

Re: [PATCH -queue v3 2/2] MIPS: Move Alchemy Makefile parts to their own Platform file.

Thanks Manuel, queued for 2.6.36.

Ral