diff options
author | Greg Ungerer <gerg@uclinux.org> | 2011-03-21 23:39:27 -0400 |
---|---|---|
committer | Greg Ungerer <gerg@uclinux.org> | 2011-03-25 00:05:13 -0400 |
commit | 66d857b08b8c3ed5c72c361f863cce77d2a978d7 (patch) | |
tree | 47222d86f4d78dc0da31baf64188bd2e4b38ac1e /arch/m68k/Makefile_no | |
parent | d39dd11c3e6a7af5c20bfac40594db36cf270f42 (diff) |
m68k: merge m68k and m68knommu arch directories
There is a lot of common code that could be shared between the m68k
and m68knommu arch branches. It makes sense to merge the two branches
into a single directory structure so that we can more easily share
that common code.
This is a brute force merge, based on a script from Stephen King
<sfking@fdwdc.com>, which was originally written by Arnd Bergmann
<arnd@arndb.de>.
> The script was inspired by the script Sam Ravnborg used to merge the
> includes from m68knommu. For those files common to both arches but
> differing in content, the m68k version of the file is renamed to
> <file>_mm.<ext> and the m68knommu version of the file is moved into the
> corresponding m68k directory and renamed <file>_no.<ext> and a small
> wrapper file <file>.<ext> is used to select between the two version. Files
> that are common to both but don't differ are removed from the m68knommu
> tree and files and directories that are unique to the m68knommu tree are
> moved to the m68k tree. Finally, the arch/m68knommu tree is removed.
>
> To select between the the versions of the files, the wrapper uses
>
> #ifdef CONFIG_MMU
> #include <file>_mm.<ext>
> #else
> #include <file>_no.<ext>
> #endif
On top of this file merge I have done a simplistic merge of m68k and
m68knommu Kconfig, which primarily attempts to keep existing options and
menus in place. Other than a handful of options being moved it produces
identical .config outputs on m68k and m68knommu targets I tested it on.
With this in place there is now quite a bit of scope for merge cleanups
in future patches.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Diffstat (limited to 'arch/m68k/Makefile_no')
-rw-r--r-- | arch/m68k/Makefile_no | 124 |
1 files changed, 124 insertions, 0 deletions
diff --git a/arch/m68k/Makefile_no b/arch/m68k/Makefile_no new file mode 100644 index 000000000000..81652ab893e1 --- /dev/null +++ b/arch/m68k/Makefile_no | |||
@@ -0,0 +1,124 @@ | |||
1 | # | ||
2 | # arch/m68k/Makefile | ||
3 | # | ||
4 | # This file is subject to the terms and conditions of the GNU General Public | ||
5 | # License. See the file "COPYING" in the main directory of this archive | ||
6 | # for more details. | ||
7 | # | ||
8 | # (C) Copyright 2002, Greg Ungerer <gerg@snapgear.com> | ||
9 | # | ||
10 | |||
11 | platform-$(CONFIG_M68328) := 68328 | ||
12 | platform-$(CONFIG_M68EZ328) := 68EZ328 | ||
13 | platform-$(CONFIG_M68VZ328) := 68VZ328 | ||
14 | platform-$(CONFIG_M68360) := 68360 | ||
15 | platform-$(CONFIG_M5206) := 5206 | ||
16 | platform-$(CONFIG_M5206e) := 5206e | ||
17 | platform-$(CONFIG_M520x) := 520x | ||
18 | platform-$(CONFIG_M523x) := 523x | ||
19 | platform-$(CONFIG_M5249) := 5249 | ||
20 | platform-$(CONFIG_M527x) := 527x | ||
21 | platform-$(CONFIG_M5272) := 5272 | ||
22 | platform-$(CONFIG_M528x) := 528x | ||
23 | platform-$(CONFIG_M5307) := 5307 | ||
24 | platform-$(CONFIG_M532x) := 532x | ||
25 | platform-$(CONFIG_M5407) := 5407 | ||
26 | platform-$(CONFIG_M54xx) := 54xx | ||
27 | PLATFORM := $(platform-y) | ||
28 | |||
29 | board-$(CONFIG_PILOT) := pilot | ||
30 | board-$(CONFIG_UC5272) := UC5272 | ||
31 | board-$(CONFIG_UC5282) := UC5282 | ||
32 | board-$(CONFIG_UCSIMM) := ucsimm | ||
33 | board-$(CONFIG_UCDIMM) := ucdimm | ||
34 | board-$(CONFIG_UCQUICC) := uCquicc | ||
35 | board-$(CONFIG_DRAGEN2) := de2 | ||
36 | board-$(CONFIG_ARNEWSH) := ARNEWSH | ||
37 | board-$(CONFIG_FREESCALE) := FREESCALE | ||
38 | board-$(CONFIG_M5235EVB) := M5235EVB | ||
39 | board-$(CONFIG_M5271EVB) := M5271EVB | ||
40 | board-$(CONFIG_M5275EVB) := M5275EVB | ||
41 | board-$(CONFIG_M5282EVB) := M5282EVB | ||
42 | board-$(CONFIG_ELITE) := eLITE | ||
43 | board-$(CONFIG_NETtel) := NETtel | ||
44 | board-$(CONFIG_SECUREEDGEMP3) := MP3 | ||
45 | board-$(CONFIG_CLEOPATRA) := CLEOPATRA | ||
46 | board-$(CONFIG_senTec) := senTec | ||
47 | board-$(CONFIG_SNEHA) := SNEHA | ||
48 | board-$(CONFIG_M5208EVB) := M5208EVB | ||
49 | board-$(CONFIG_MOD5272) := MOD5272 | ||
50 | board-$(CONFIG_AVNET) := AVNET | ||
51 | board-$(CONFIG_SAVANT) := SAVANT | ||
52 | BOARD := $(board-y) | ||
53 | |||
54 | model-$(CONFIG_RAMKERNEL) := ram | ||
55 | model-$(CONFIG_ROMKERNEL) := rom | ||
56 | MODEL := $(model-y) | ||
57 | |||
58 | # | ||
59 | # Some code support is grouped together for a common cpu-subclass (for | ||
60 | # example all ColdFire cpu's are very similar). Determine the sub-class | ||
61 | # for the selected cpu. ONLY need to define this for the non-base member | ||
62 | # of the family. | ||
63 | # | ||
64 | cpuclass-$(CONFIG_M5206) := coldfire | ||
65 | cpuclass-$(CONFIG_M5206e) := coldfire | ||
66 | cpuclass-$(CONFIG_M520x) := coldfire | ||
67 | cpuclass-$(CONFIG_M523x) := coldfire | ||
68 | cpuclass-$(CONFIG_M5249) := coldfire | ||
69 | cpuclass-$(CONFIG_M527x) := coldfire | ||
70 | cpuclass-$(CONFIG_M5272) := coldfire | ||
71 | cpuclass-$(CONFIG_M528x) := coldfire | ||
72 | cpuclass-$(CONFIG_M5307) := coldfire | ||
73 | cpuclass-$(CONFIG_M532x) := coldfire | ||
74 | cpuclass-$(CONFIG_M5407) := coldfire | ||
75 | cpuclass-$(CONFIG_M54xx) := coldfire | ||
76 | cpuclass-$(CONFIG_M68328) := 68328 | ||
77 | cpuclass-$(CONFIG_M68EZ328) := 68328 | ||
78 | cpuclass-$(CONFIG_M68VZ328) := 68328 | ||
79 | cpuclass-$(CONFIG_M68360) := 68360 | ||
80 | CPUCLASS := $(cpuclass-y) | ||
81 | |||
82 | ifneq ($(CPUCLASS),$(PLATFORM)) | ||
83 | CLASSDIR := arch/m68k/platform/$(cpuclass-y)/ | ||
84 | endif | ||
85 | |||
86 | export PLATFORM BOARD MODEL CPUCLASS | ||
87 | |||
88 | # | ||
89 | # Some CFLAG additions based on specific CPU type. | ||
90 | # | ||
91 | cflags-$(CONFIG_M5206) := $(call cc-option,-mcpu=5206,-m5200) | ||
92 | cflags-$(CONFIG_M5206e) := $(call cc-option,-mcpu=5206e,-m5200) | ||
93 | cflags-$(CONFIG_M520x) := $(call cc-option,-mcpu=5208,-m5200) | ||
94 | cflags-$(CONFIG_M523x) := $(call cc-option,-mcpu=523x,-m5307) | ||
95 | cflags-$(CONFIG_M5249) := $(call cc-option,-mcpu=5249,-m5200) | ||
96 | cflags-$(CONFIG_M5271) := $(call cc-option,-mcpu=5271,-m5307) | ||
97 | cflags-$(CONFIG_M5272) := $(call cc-option,-mcpu=5272,-m5307) | ||
98 | cflags-$(CONFIG_M5275) := $(call cc-option,-mcpu=5275,-m5307) | ||
99 | cflags-$(CONFIG_M528x) := $(call cc-option,-mcpu=528x,-m5307) | ||
100 | cflags-$(CONFIG_M5307) := $(call cc-option,-mcpu=5307,-m5200) | ||
101 | cflags-$(CONFIG_M532x) := $(call cc-option,-mcpu=532x,-m5307) | ||
102 | cflags-$(CONFIG_M5407) := $(call cc-option,-mcpu=5407,-m5200) | ||
103 | cflags-$(CONFIG_M54xx) := $(call cc-option,-mcpu=5475,-m5200) | ||
104 | cflags-$(CONFIG_M68328) := -m68000 | ||
105 | cflags-$(CONFIG_M68EZ328) := -m68000 | ||
106 | cflags-$(CONFIG_M68VZ328) := -m68000 | ||
107 | cflags-$(CONFIG_M68360) := -m68332 | ||
108 | |||
109 | KBUILD_AFLAGS += $(cflags-y) | ||
110 | |||
111 | KBUILD_CFLAGS += $(cflags-y) | ||
112 | KBUILD_CFLAGS += -D__linux__ | ||
113 | KBUILD_CFLAGS += -DUTS_SYSNAME=\"uClinux\" | ||
114 | |||
115 | head-y := arch/m68k/platform/$(cpuclass-y)/head.o | ||
116 | |||
117 | core-y += arch/m68k/kernel/ \ | ||
118 | arch/m68k/mm/ \ | ||
119 | $(CLASSDIR) \ | ||
120 | arch/m68k/platform/$(PLATFORM)/ | ||
121 | libs-y += arch/m68k/lib/ | ||
122 | |||
123 | archclean: | ||
124 | |||