Received: from mail.onstor.com (66.201.51.107) by exch1.onstor.net
 (10.0.0.225) with Microsoft SMTP Server id 8.1.311.2; Thu, 23 Apr 2009
 22:42:41 -0700
Received: from psmtp.com ([64.18.0.113]) by mail.onstor.com with Microsoft
 SMTPSVC(6.0.3790.3959);	 Thu, 23 Apr 2009 22:42:23 -0700
Received: from source ([213.58.128.207]) by exprod5mx289.postini.com
 ([64.18.4.10]) with SMTP;	Thu, 23 Apr 2009 22:42:23 PDT
Received: from localhost.localdomain ([127.0.0.1]:33474 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP	id S20023421AbZDXFl7
 (ORCPT <rfc822;andy.sharp@onstor.com>);	Fri, 24 Apr 2009 06:41:59 +0100
Received: with ECARTIS (v1.0.0; list linux-mips); Fri, 24 Apr 2009 06:41:42
 +0100 (BST)
Received: from fnoeppeil48.netpark.at ([217.175.205.176]:8636 "EHLO
	roarinelk.homelinux.net") by ftp.linux-mips.org with ESMTP	id
 S20023422AbZDXFl3 (ORCPT <rfc822;linux-mips@linux-mips.org>);	Fri, 24 Apr
 2009 06:41:29 +0100
Received: (qmail 7141 invoked by uid 1000); 24 Apr 2009 07:41:28 +0200
From: Manuel Lauss <mano@roarinelk.homelinux.net>
To: Linux-MIPS <linux-mips@linux-mips.org>
CC: Ralf Baechle <ralf@linux-mips.org>
Sender: "linux-mips-bounce@linux-mips.org" <linux-mips-bounce@linux-mips.org>
Date: Thu, 23 Apr 2009 22:41:28 -0700
Subject: [RFC PATCH] MIPS: move out Alchemy stuff to separate Makefile
Thread-Topic: [RFC PATCH] MIPS: move out Alchemy stuff to separate Makefile
Thread-Index: AcnEn3vVqetRfjIvSzGLPM3XXJTzPA==
Message-ID: <20090424054128.GA7093@roarinelk.homelinux.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Exchange-Organization-AuthAs: Internal
X-MS-Exchange-Organization-AuthMechanism: 0b
X-MS-Exchange-Organization-AuthSource: exch1.onstor.net
X-MS-Has-Attach:
X-Auto-Response-Suppress: All
X-MS-TNEF-Correlator:
x-originalarrivaltime: 24 Apr 2009 05:42:23.0275 (UTC)
 FILETIME=[7113FFB0:01C9C49F]
user-agent: Mutt/1.5.16 (2007-06-09)
errors-to: linux-mips-bounce@linux-mips.org
x-pstn-levels: (S:54.97953/99.90000 CV: 7.8966 FC:95.5390 LC:95.5390
 R:95.9108 P:95.9108 M:97.0282 C:98.6951 )
x-pstn-neptune: 1/1/1.00/93
x-ems-proccessed: 2K3Xl1OQTInXD6xxuA8z3Q==
x-ems-stamp: mNSrze2VK5F8sQdUI5rUJA==
x-list: linux-mips
x-archive-position: 22458
x-ecartis-version: Ecartis v1.0.0
x-original-sender: mano@roarinelk.homelinux.net
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0

Move Makefile information on all Alchemy boards to a separate file
in the arch subdir.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
---
Applies on top of my Alchemy-gpio patches;  builds and runs fine on a few
different alchemy systems.  It seems nicer to not have to modify the main
mips makefile when adding new alchemy boards. What do you all think?

 arch/mips/Makefile         |  104 +---------------------------------------=
---
 arch/mips/alchemy/Makefile |  106 ++++++++++++++++++++++++++++++++++++++++=
++++
 2 files changed, 108 insertions(+), 102 deletions(-)
 create mode 100644 arch/mips/alchemy/Makefile

diff --git a/arch/mips/Makefile b/arch/mips/Makefile
index 676f8d4..91740f2 100644
--- a/arch/mips/Makefile
+++ b/arch/mips/Makefile
@@ -180,109 +180,9 @@ cflags-$(CONFIG_MACH_JAZZ)	+=3D -I$(srctree)/arch/mip=
s/include/asm/mach-jazz
 load-$(CONFIG_MACH_JAZZ)	+=3D 0xffffffff80080000
=20
 #
-# Common Alchemy Au1x00 stuff
+# Alchemy-based systems
 #
-core-$(CONFIG_SOC_AU1X00)	+=3D arch/mips/alchemy/common/
-
-#
-# AMD Alchemy Pb1000 eval board
-#
-core-$(CONFIG_MIPS_PB1000)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_PB1000)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
-load-$(CONFIG_MIPS_PB1000)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Pb1100 eval board
-#
-core-$(CONFIG_MIPS_PB1100)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_PB1100)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
-load-$(CONFIG_MIPS_PB1100)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Pb1500 eval board
-#
-core-$(CONFIG_MIPS_PB1500)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_PB1500)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
-load-$(CONFIG_MIPS_PB1500)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Pb1550 eval board
-#
-core-$(CONFIG_MIPS_PB1550)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_PB1550)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
-load-$(CONFIG_MIPS_PB1550)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Pb1200 eval board
-#
-core-$(CONFIG_MIPS_PB1200)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_PB1200)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
-load-$(CONFIG_MIPS_PB1200)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Db1000 eval board
-#
-core-$(CONFIG_MIPS_DB1000)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_DB1000)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
-load-$(CONFIG_MIPS_DB1000)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Db1100 eval board
-#
-core-$(CONFIG_MIPS_DB1100)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_DB1100)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
-load-$(CONFIG_MIPS_DB1100)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Db1500 eval board
-#
-core-$(CONFIG_MIPS_DB1500)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_DB1500)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
-load-$(CONFIG_MIPS_DB1500)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Db1550 eval board
-#
-core-$(CONFIG_MIPS_DB1550)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_DB1550)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
-load-$(CONFIG_MIPS_DB1550)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Db1200 eval board
-#
-core-$(CONFIG_MIPS_DB1200)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_DB1200)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
-load-$(CONFIG_MIPS_DB1200)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Bosporus eval board
-#
-core-$(CONFIG_MIPS_BOSPORUS)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_BOSPORUS)	+=3D -I$(srctree)/arch/mips/include/asm/mac=
h-db1x00
-load-$(CONFIG_MIPS_BOSPORUS)	+=3D 0xffffffff80100000
-
-#
-# AMD Alchemy Mirage eval board
-#
-core-$(CONFIG_MIPS_MIRAGE)	+=3D arch/mips/alchemy/devboards/
-cflags-$(CONFIG_MIPS_MIRAGE)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
-load-$(CONFIG_MIPS_MIRAGE)	+=3D 0xffffffff80100000
-
-#
-# 4G-Systems eval board
-#
-libs-$(CONFIG_MIPS_MTX1)	+=3D arch/mips/alchemy/mtx-1/
-load-$(CONFIG_MIPS_MTX1)	+=3D 0xffffffff80100000
-
-#
-# MyCable eval board
-#
-libs-$(CONFIG_MIPS_XXS1500)	+=3D arch/mips/alchemy/xxs1500/
-load-$(CONFIG_MIPS_XXS1500)	+=3D 0xffffffff80100000
-
-# must be last for Alchemy systems for GPIO to work properly
-cflags-$(CONFIG_SOC_AU1X00)	+=3D -I$(srctree)/arch/mips/include/asm/mach-a=
u1x00
-
+include $(srctree)/arch/mips/alchemy/Makefile
=20
 #
 # Cobalt Server
diff --git a/arch/mips/alchemy/Makefile b/arch/mips/alchemy/Makefile
new file mode 100644
index 0000000..19c79fa
--- /dev/null
+++ b/arch/mips/alchemy/Makefile
@@ -0,0 +1,106 @@
+#
+# Common Alchemy Au1x00 stuff
+#
+# NOTE: this file is included by the MIPS Makefile!
+#
+
+core-$(CONFIG_SOC_AU1X00)	+=3D arch/mips/alchemy/common/
+
+#
+# AMD Alchemy Pb1000 eval board
+#
+core-$(CONFIG_MIPS_PB1000)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_PB1000)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
+load-$(CONFIG_MIPS_PB1000)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Pb1100 eval board
+#
+core-$(CONFIG_MIPS_PB1100)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_PB1100)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
+load-$(CONFIG_MIPS_PB1100)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Pb1500 eval board
+#
+core-$(CONFIG_MIPS_PB1500)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_PB1500)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
+load-$(CONFIG_MIPS_PB1500)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Pb1550 eval board
+#
+core-$(CONFIG_MIPS_PB1550)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_PB1550)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
+load-$(CONFIG_MIPS_PB1550)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Pb1200 eval board
+#
+core-$(CONFIG_MIPS_PB1200)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_PB1200)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
pb1x00
+load-$(CONFIG_MIPS_PB1200)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Db1000 eval board
+#
+core-$(CONFIG_MIPS_DB1000)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_DB1000)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
+load-$(CONFIG_MIPS_DB1000)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Db1100 eval board
+#
+core-$(CONFIG_MIPS_DB1100)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_DB1100)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
+load-$(CONFIG_MIPS_DB1100)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Db1500 eval board
+#
+core-$(CONFIG_MIPS_DB1500)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_DB1500)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
+load-$(CONFIG_MIPS_DB1500)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Db1550 eval board
+#
+core-$(CONFIG_MIPS_DB1550)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_DB1550)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
+load-$(CONFIG_MIPS_DB1550)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Db1200 eval board
+#
+core-$(CONFIG_MIPS_DB1200)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_DB1200)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
+load-$(CONFIG_MIPS_DB1200)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Bosporus eval board
+#
+core-$(CONFIG_MIPS_BOSPORUS)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_BOSPORUS)	+=3D -I$(srctree)/arch/mips/include/asm/mac=
h-db1x00
+load-$(CONFIG_MIPS_BOSPORUS)	+=3D 0xffffffff80100000
+
+#
+# AMD Alchemy Mirage eval board
+#
+core-$(CONFIG_MIPS_MIRAGE)	+=3D arch/mips/alchemy/devboards/
+cflags-$(CONFIG_MIPS_MIRAGE)	+=3D -I$(srctree)/arch/mips/include/asm/mach-=
db1x00
+load-$(CONFIG_MIPS_MIRAGE)	+=3D 0xffffffff80100000
+
+#
+# 4G-Systems eval board
+#
+core-$(CONFIG_MIPS_MTX1)	+=3D arch/mips/alchemy/mtx-1/
+load-$(CONFIG_MIPS_MTX1)	+=3D 0xffffffff80100000
+
+#
+# MyCable eval board
+#
+core-$(CONFIG_MIPS_XXS1500)	+=3D arch/mips/alchemy/xxs1500/
+load-$(CONFIG_MIPS_XXS1500)	+=3D 0xffffffff80100000
+
+# must be last in case board has provided alternative gpio.h header
+cflags-$(CONFIG_SOC_AU1X00)	+=3D -I$(srctree)/arch/mips/include/asm/mach-a=
u1x00
--=20
1.6.2.3


