diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /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/Makefile | 15 | ||||
-rw-r--r-- | arch/sh/tools/gen-mach-types | 49 | ||||
-rw-r--r-- | arch/sh/tools/mach-types | 31 |
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 | |||
13 | include/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 | # | ||
6 | BEGIN { nr = 0 } | ||
7 | /^#/ { next } | ||
8 | /^[ ]*$/ { next } | ||
9 | |||
10 | NF == 2 { | ||
11 | mach[nr] = $1; | ||
12 | config[nr] = "CONFIG_"$2; | ||
13 | nr++; | ||
14 | } | ||
15 | |||
16 | END { | ||
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 | # | ||
8 | SE SH_SOLUTION_ENGINE | ||
9 | 7751SE SH_7751_SOLUTION_ENGINE | ||
10 | 7300SE SH_7300_SOLUTION_ENGINE | ||
11 | 73180SE SH_73180_SOLUTION_ENGINE | ||
12 | 7751SYSTEMH SH_7751_SYSTEMH | ||
13 | HP600 SH_HP600 | ||
14 | HP620 SH_HP620 | ||
15 | HP680 SH_HP680 | ||
16 | HP690 SH_HP690 | ||
17 | HD64461 HD64461 | ||
18 | HD64465 HD64465 | ||
19 | SH2000 SH_SH2000 | ||
20 | SATURN SH_SATURN | ||
21 | DREAMCAST SH_DREAMCAST | ||
22 | BIGSUR SH_BIGSUR | ||
23 | ADX SH_ADX | ||
24 | MPC1211 SH_MPC1211 | ||
25 | SNAPGEAR SH_SECUREEDGE5410 | ||
26 | HS7751RVOIP SH_HS7751RVOIP | ||
27 | RTS7751R2D SH_RTS7751R2D | ||
28 | EDOSK7705 SH_EDOSK7705 | ||
29 | SH4202_MICRODEV SH_SH4202_MICRODEV | ||
30 | SH03 SH_SH03 | ||
31 | |||