aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/tools
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /arch/sh/tools
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'arch/sh/tools')
-rw-r--r--arch/sh/tools/Makefile15
-rw-r--r--arch/sh/tools/gen-mach-types49
-rw-r--r--arch/sh/tools/mach-types31
3 files changed, 95 insertions, 0 deletions
diff --git a/arch/sh/tools/Makefile b/arch/sh/tools/Makefile
new file mode 100644
index 000000000000..3c370a113291
--- /dev/null
+++ b/arch/sh/tools/Makefile
@@ -0,0 +1,15 @@
1#
2# arch/sh/tools/Makefile
3#
4# Copyright (C) 2003 Paul Mundt
5#
6# This file is subject to the terms and conditions of the GNU General Public
7# License. See the file "COPYING" in the main directory of this archive
8# for more details.
9#
10# Shamelessly cloned from ARM.
11#
12
13include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
14 @echo ' Generating $@'
15 $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }
diff --git a/arch/sh/tools/gen-mach-types b/arch/sh/tools/gen-mach-types
new file mode 100644
index 000000000000..bb2b82234e83
--- /dev/null
+++ b/arch/sh/tools/gen-mach-types
@@ -0,0 +1,49 @@
1#!/bin/awk
2#
3# Awk script to generate include/asm-sh/machtypes.h
4# Heavily based on arch/arm/tools/gen-mach-types
5#
6BEGIN { nr = 0 }
7/^#/ { next }
8/^[ ]*$/ { next }
9
10NF == 2 {
11 mach[nr] = $1;
12 config[nr] = "CONFIG_"$2;
13 nr++;
14 }
15
16END {
17 printf("/*\n");
18 printf(" * Automagically generated, don't touch.\n");
19 printf(" */\n");
20 printf("#ifndef __ASM_SH_MACHTYPES_H\n");
21 printf("#define __ASM_SH_MACHTYPES_H\n");
22 printf("\n");
23 printf("#include <linux/config.h>\n");
24 printf("\n");
25 printf("/*\n");
26 printf(" * We'll use the following MACH_xxx defs for placeholders for the time\n");
27 printf(" * being .. these will all go away once sh_machtype is assigned per-board.\n");
28 printf(" *\n");
29 printf(" * For now we leave things the way they are for backwards compatibility.\n");
30 printf(" */\n");
31 printf("\n");
32 printf("/* Mach types */\n");
33
34 for (i = 0; i < nr; i++) {
35 printf("#ifdef %s\n", config[i]);
36 printf(" #define MACH_%s\t\t1\n", mach[i]);
37 printf("#else\n");
38 printf(" #define MACH_%s\t\t0\n", mach[i]);
39 printf("#endif\n");
40 }
41
42 printf("\n");
43 printf("/* Machtype checks */\n");
44 for (i = 0; i < nr; i++)
45 printf("#define mach_is_%s()\t\t\t(MACH_%s)\n",
46 tolower(mach[i]), mach[i]);
47 printf("\n");
48 printf("#endif /* __ASM_SH_MACHTYPES_H */\n");
49 }
diff --git a/arch/sh/tools/mach-types b/arch/sh/tools/mach-types
new file mode 100644
index 000000000000..0693fbd1f956
--- /dev/null
+++ b/arch/sh/tools/mach-types
@@ -0,0 +1,31 @@
1#
2# List of boards.
3#
4
5#
6# MACH_<xxx> CONFIG_<xxx>
7#
8SE SH_SOLUTION_ENGINE
97751SE SH_7751_SOLUTION_ENGINE
107300SE SH_7300_SOLUTION_ENGINE
1173180SE SH_73180_SOLUTION_ENGINE
127751SYSTEMH SH_7751_SYSTEMH
13HP600 SH_HP600
14HP620 SH_HP620
15HP680 SH_HP680
16HP690 SH_HP690
17HD64461 HD64461
18HD64465 HD64465
19SH2000 SH_SH2000
20SATURN SH_SATURN
21DREAMCAST SH_DREAMCAST
22BIGSUR SH_BIGSUR
23ADX SH_ADX
24MPC1211 SH_MPC1211
25SNAPGEAR SH_SECUREEDGE5410
26HS7751RVOIP SH_HS7751RVOIP
27RTS7751R2D SH_RTS7751R2D
28EDOSK7705 SH_EDOSK7705
29SH4202_MICRODEV SH_SH4202_MICRODEV
30SH03 SH_SH03
31