diff options
author | Greg Ungerer <gerg@snapgear.com> | 2008-02-01 02:37:56 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-02-01 04:58:10 -0500 |
commit | 6d3867987b8eefd880246f7dab085fcbe348c4dd (patch) | |
tree | 4606e276d47e3b1c1860cc97686f364b1364d3a5 | |
parent | 591091a15e22dc4ec30aa6fd5998be4e024b5c4c (diff) |
m68knommu: modify Makefiles to support common coldfire directory
Modify Makefiles to support separate coldfire platform directory.
Currently the common ColdFire CPU family code sits in the
arch/m68knommu/platform/5307 directory. This is confusing, the files
containing this common code are in no way specific to the 5307 ColdFire.
Create an arch/m68knommu/platform/coldfire directory to contain this
common code. Other m68knommu CPU varients do not need use this code
though, so it doesn't make sense to move it to arch/m68knommu/kernel.
Signed-off-by: Greg Ungerer <gerg@uclinux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | arch/m68knommu/Makefile | 22 | ||||
-rw-r--r-- | arch/m68knommu/platform/5307/Makefile | 14 | ||||
-rw-r--r-- | arch/m68knommu/platform/coldfire/Makefile | 32 |
3 files changed, 44 insertions, 24 deletions
diff --git a/arch/m68knommu/Makefile b/arch/m68knommu/Makefile index 30aa2553693d..e0b5f62e395c 100644 --- a/arch/m68knommu/Makefile +++ b/arch/m68knommu/Makefile | |||
@@ -61,17 +61,17 @@ MODEL := $(model-y) | |||
61 | # for the selected cpu. ONLY need to define this for the non-base member | 61 | # for the selected cpu. ONLY need to define this for the non-base member |
62 | # of the family. | 62 | # of the family. |
63 | # | 63 | # |
64 | cpuclass-$(CONFIG_M5206) := 5307 | 64 | cpuclass-$(CONFIG_M5206) := coldfire |
65 | cpuclass-$(CONFIG_M5206e) := 5307 | 65 | cpuclass-$(CONFIG_M5206e) := coldfire |
66 | cpuclass-$(CONFIG_M520x) := 5307 | 66 | cpuclass-$(CONFIG_M520x) := coldfire |
67 | cpuclass-$(CONFIG_M523x) := 5307 | 67 | cpuclass-$(CONFIG_M523x) := coldfire |
68 | cpuclass-$(CONFIG_M5249) := 5307 | 68 | cpuclass-$(CONFIG_M5249) := coldfire |
69 | cpuclass-$(CONFIG_M527x) := 5307 | 69 | cpuclass-$(CONFIG_M527x) := coldfire |
70 | cpuclass-$(CONFIG_M5272) := 5307 | 70 | cpuclass-$(CONFIG_M5272) := coldfire |
71 | cpuclass-$(CONFIG_M528x) := 5307 | 71 | cpuclass-$(CONFIG_M528x) := coldfire |
72 | cpuclass-$(CONFIG_M5307) := 5307 | 72 | cpuclass-$(CONFIG_M5307) := coldfire |
73 | cpuclass-$(CONFIG_M532x) := 5307 | 73 | cpuclass-$(CONFIG_M532x) := coldfire |
74 | cpuclass-$(CONFIG_M5407) := 5307 | 74 | cpuclass-$(CONFIG_M5407) := coldfire |
75 | cpuclass-$(CONFIG_M68328) := 68328 | 75 | cpuclass-$(CONFIG_M68328) := 68328 |
76 | cpuclass-$(CONFIG_M68EZ328) := 68328 | 76 | cpuclass-$(CONFIG_M68EZ328) := 68328 |
77 | cpuclass-$(CONFIG_M68VZ328) := 68328 | 77 | cpuclass-$(CONFIG_M68VZ328) := 68328 |
diff --git a/arch/m68knommu/platform/5307/Makefile b/arch/m68knommu/platform/5307/Makefile index 5b600530c8d2..580fd6658d7c 100644 --- a/arch/m68knommu/platform/5307/Makefile +++ b/arch/m68knommu/platform/5307/Makefile | |||
@@ -16,17 +16,5 @@ ifdef CONFIG_FULLDEBUG | |||
16 | EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1 | 16 | EXTRA_AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1 |
17 | endif | 17 | endif |
18 | 18 | ||
19 | obj-$(CONFIG_COLDFIRE) += entry.o vectors.o | 19 | obj-y += config.o |
20 | obj-$(CONFIG_M5206) += timers.o | ||
21 | obj-$(CONFIG_M5206e) += timers.o | ||
22 | obj-$(CONFIG_M520x) += pit.o | ||
23 | obj-$(CONFIG_M523x) += pit.o | ||
24 | obj-$(CONFIG_M5249) += timers.o | ||
25 | obj-$(CONFIG_M527x) += pit.o | ||
26 | obj-$(CONFIG_M5272) += timers.o | ||
27 | obj-$(CONFIG_M5307) += config.o timers.o | ||
28 | obj-$(CONFIG_M532x) += timers.o | ||
29 | obj-$(CONFIG_M528x) += pit.o | ||
30 | obj-$(CONFIG_M5407) += timers.o | ||
31 | 20 | ||
32 | extra-y := head.o | ||
diff --git a/arch/m68knommu/platform/coldfire/Makefile b/arch/m68knommu/platform/coldfire/Makefile new file mode 100644 index 000000000000..e5fff297ae01 --- /dev/null +++ b/arch/m68knommu/platform/coldfire/Makefile | |||
@@ -0,0 +1,32 @@ | |||
1 | # | ||
2 | # Makefile for the m68knommu kernel. | ||
3 | # | ||
4 | |||
5 | # | ||
6 | # If you want to play with the HW breakpoints then you will | ||
7 | # need to add define this, which will give you a stack backtrace | ||
8 | # on the console port whenever a DBG interrupt occurs. You have to | ||
9 | # set up you HW breakpoints to trigger a DBG interrupt: | ||
10 | # | ||
11 | # EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT | ||
12 | # EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT | ||
13 | # | ||
14 | |||
15 | ifdef CONFIG_FULLDEBUG | ||
16 | AFLAGS += -DDEBUGGER_COMPATIBLE_CACHE=1 | ||
17 | endif | ||
18 | |||
19 | obj-$(CONFIG_COLDFIRE) += dma.o entry.o vectors.o | ||
20 | obj-$(CONFIG_M5206) += timers.o | ||
21 | obj-$(CONFIG_M5206e) += timers.o | ||
22 | obj-$(CONFIG_M520x) += pit.o | ||
23 | obj-$(CONFIG_M523x) += pit.o | ||
24 | obj-$(CONFIG_M5249) += timers.o | ||
25 | obj-$(CONFIG_M527x) += pit.o | ||
26 | obj-$(CONFIG_M5272) += timers.o | ||
27 | obj-$(CONFIG_M528x) += pit.o | ||
28 | obj-$(CONFIG_M5307) += timers.o | ||
29 | obj-$(CONFIG_M532x) += timers.o | ||
30 | obj-$(CONFIG_M5407) += timers.o | ||
31 | |||
32 | extra-y := head.o | ||