m68knommu: remove ColdFire sub-architecture directories
cover m68knommu: remove ColdFire sub-architecture directories
Currently the different ColdFire sub-archiectures are split up with a directory for each family type. Most though only contain a small amount of code, it just doesn't seem to make any sense to keep them separate.
Move all the ColdFire sub-architecture code into the platform/coldfire directory, and remove the sub-architecture directories. We already build the common ColdFire components based on sub-architecture type anyway, so there is very little Makefile change required.
Overall we remove about 200 lines of duplicated Makefile code, and end up with all the ColdFire specific code in a single directory.
---
arch/m68k/Makefile | 10 ---------- arch/m68k/platform/5206/Makefile | 18 ------------------ arch/m68k/platform/520x/Makefile | 17 ----------------- arch/m68k/platform/523x/Makefile | 17 ----------------- arch/m68k/platform/5249/Makefile | 18 ------------------ arch/m68k/platform/5272/Makefile | 18 ------------------ arch/m68k/platform/527x/Makefile | 18 ------------------ arch/m68k/platform/528x/Makefile | 18 ------------------ arch/m68k/platform/5307/Makefile | 20 -------------------- arch/m68k/platform/532x/Makefile | 18 ------------------ arch/m68k/platform/5407/Makefile | 18 ------------------ arch/m68k/platform/54xx/Makefile | 19 ------------------- arch/m68k/platform/coldfire/Makefile | 24 ++++++++++++++---------- b/arch/m68k/Makefile | 2 -- b/arch/m68k/platform/coldfire/Makefile | 4 ++-- b/arch/m68k/platform/coldfire/m5206.c | 1 - b/arch/m68k/platform/coldfire/m520x.c | 1 - b/arch/m68k/platform/coldfire/m523x.c | 1 - b/arch/m68k/platform/coldfire/m5249.c | 1 - b/arch/m68k/platform/coldfire/m5272.c | 1 - b/arch/m68k/platform/coldfire/m527x.c | 1 - b/arch/m68k/platform/coldfire/m528x.c | 1 - b/arch/m68k/platform/coldfire/m532x.c | 1 - b/arch/m68k/platform/coldfire/m5407.c | 1 - b/arch/m68k/platform/coldfire/m54xx.c | 1 - b/arch/m68k/platform/coldfire/nettel.c | 1 - 26 files changed, 16 insertions(+), 234 deletions(-)
PATCH 1/11 m68knommu: move the 5206 platform code into the common ColdFire code directory
From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 2 --
arch/m68k/platform/5206/Makefile | 18 ------------------
arch/m68k/platform/coldfire/Makefile | 4 ++--
.../platform/{5206/config.c => coldfire/m5206.c} | 0
4 files changed, 2 insertions(+), 22 deletions(-)
delete mode 100644 arch/m68k/platform/5206/Makefile
rename arch/m68k/platform/{5206/config.c => coldfire/m5206.c} (100%)arch/m68k/Makefile +0 -2
@@ -115,8 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M5206) += arch/m68k/platform/5206/ -core-$(CONFIG_M5206e) += arch/m68k/platform/5206/ core-$(CONFIG_M520x) += arch/m68k/platform/520x/ core-$(CONFIG_M523x) += arch/m68k/platform/523x/ core-$(CONFIG_M5249) += arch/m68k/platform/5249/
arch/m68k/platform/5206/Makefile deleted +0 -18
@@ -1,18 +0,0 @@ -# -# Makefile for the m68knommu linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o -
arch/m68k/platform/coldfire/Makefile +2 -2
@@ -15,8 +15,8 @@ asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 obj-$(CONFIG_COLDFIRE) += cache.o clk.o device.o dma.o entry.o vectors.o -obj-$(CONFIG_M5206) += timers.o intc.o reset.o -obj-$(CONFIG_M5206e) += timers.o intc.o reset.o +obj-$(CONFIG_M5206) += m5206.o timers.o intc.o reset.o +obj-$(CONFIG_M5206e) += m5206.o timers.o intc.o reset.o obj-$(CONFIG_M520x) += pit.o intc-simr.o reset.o obj-$(CONFIG_M523x) += pit.o dma_timer.o intc-2.o reset.o obj-$(CONFIG_M5249) += timers.o intc.o reset.o
arch/m68k/platform/coldfire/m5206.c renamed from arch/m68k/platform/5206/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 2/11 m68knommu: move the 520x platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/520x/Makefile | 17 -----------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../platform/{520x/config.c => coldfire/m520x.c} | 0
4 files changed, 1 insertions(+), 19 deletions(-)
delete mode 100644 arch/m68k/platform/520x/Makefile
rename arch/m68k/platform/{520x/config.c => coldfire/m520x.c} (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M520x) += arch/m68k/platform/520x/ core-$(CONFIG_M523x) += arch/m68k/platform/523x/ core-$(CONFIG_M5249) += arch/m68k/platform/5249/ core-$(CONFIG_M527x) += arch/m68k/platform/527x/
arch/m68k/platform/520x/Makefile deleted +0 -17
@@ -1,17 +0,0 @@ -# -# Makefile for the M5208 specific file. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -17,7 +17,7 @@ asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 obj-$(CONFIG_COLDFIRE) += cache.o clk.o device.o dma.o entry.o vectors.o obj-$(CONFIG_M5206) += m5206.o timers.o intc.o reset.o obj-$(CONFIG_M5206e) += m5206.o timers.o intc.o reset.o -obj-$(CONFIG_M520x) += pit.o intc-simr.o reset.o +obj-$(CONFIG_M520x) += m520x.o pit.o intc-simr.o reset.o obj-$(CONFIG_M523x) += pit.o dma_timer.o intc-2.o reset.o obj-$(CONFIG_M5249) += timers.o intc.o reset.o obj-$(CONFIG_M527x) += pit.o intc-2.o reset.o
arch/m68k/platform/coldfire/m520x.c renamed from arch/m68k/platform/520x/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 3/11 m68knommu: move the 523x platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/523x/Makefile | 17 -----------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../platform/{523x/config.c => coldfire/m523x.c} | 0
4 files changed, 1 insertions(+), 19 deletions(-)
delete mode 100644 arch/m68k/platform/523x/Makefile
rename arch/m68k/platform/{523x/config.c => coldfire/m523x.c} (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M523x) += arch/m68k/platform/523x/ core-$(CONFIG_M5249) += arch/m68k/platform/5249/ core-$(CONFIG_M527x) += arch/m68k/platform/527x/ core-$(CONFIG_M5272) += arch/m68k/platform/5272/
arch/m68k/platform/523x/Makefile deleted +0 -17
@@ -1,17 +0,0 @@ -# -# Makefile for the m68knommu linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -18,7 +18,7 @@ obj-$(CONFIG_COLDFIRE) += cache.o clk.o device.o dma.o entry.o vectors.o obj-$(CONFIG_M5206) += m5206.o timers.o intc.o reset.o obj-$(CONFIG_M5206e) += m5206.o timers.o intc.o reset.o obj-$(CONFIG_M520x) += m520x.o pit.o intc-simr.o reset.o -obj-$(CONFIG_M523x) += pit.o dma_timer.o intc-2.o reset.o +obj-$(CONFIG_M523x) += m523x.o pit.o dma_timer.o intc-2.o reset.o obj-$(CONFIG_M5249) += timers.o intc.o reset.o obj-$(CONFIG_M527x) += pit.o intc-2.o reset.o obj-$(CONFIG_M5272) += timers.o
arch/m68k/platform/coldfire/m523x.c renamed from arch/m68k/platform/523x/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 4/11 m68knommu: move the 5249 platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/5249/Makefile | 18 ------------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../{5249/intc2.c => coldfire/intc-5249.c} | 0
.../platform/{5249/config.c => coldfire/m5249.c} | 0
5 files changed, 1 insertions(+), 20 deletions(-)
delete mode 100644 arch/m68k/platform/5249/Makefile
rename arch/m68k/platform/{5249/intc2.c => coldfire/intc-5249.c} (100%)
rename arch/m68k/platform/{5249/config.c => coldfire/m5249.c} (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M5249) += arch/m68k/platform/5249/ core-$(CONFIG_M527x) += arch/m68k/platform/527x/ core-$(CONFIG_M5272) += arch/m68k/platform/5272/ core-$(CONFIG_M528x) += arch/m68k/platform/528x/
arch/m68k/platform/5249/Makefile deleted +0 -18
@@ -1,18 +0,0 @@ -# -# Makefile for the m68knommu linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o intc2.o -
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -19,7 +19,7 @@ obj-$(CONFIG_M5206) += m5206.o timers.o intc.o reset.o obj-$(CONFIG_M5206e) += m5206.o timers.o intc.o reset.o obj-$(CONFIG_M520x) += m520x.o pit.o intc-simr.o reset.o obj-$(CONFIG_M523x) += m523x.o pit.o dma_timer.o intc-2.o reset.o -obj-$(CONFIG_M5249) += timers.o intc.o reset.o +obj-$(CONFIG_M5249) += m5249.o timers.o intc.o intc-5249.o reset.o obj-$(CONFIG_M527x) += pit.o intc-2.o reset.o obj-$(CONFIG_M5272) += timers.o obj-$(CONFIG_M528x) += pit.o intc-2.o reset.o
arch/m68k/platform/coldfire/intc-5249.c renamed from arch/m68k/platform/5249/intc2.c +0 -0
arch/m68k/platform/coldfire/m5249.c renamed from arch/m68k/platform/5249/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 5/11 m68knommu: move the 5272 platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/5272/Makefile | 18 ------------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../platform/{5272/intc.c => coldfire/intc-5272.c} | 0
.../platform/{5272/config.c => coldfire/m5272.c} | 0
5 files changed, 1 insertions(+), 20 deletions(-)
delete mode 100644 arch/m68k/platform/5272/Makefile
rename arch/m68k/platform/{5272/intc.c => coldfire/intc-5272.c} (100%)
rename arch/m68k/platform/{5272/config.c => coldfire/m5272.c} (100%)arch/m68k/Makefile +0 -1
@@ -116,7 +116,6 @@ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ core-$(CONFIG_M527x) += arch/m68k/platform/527x/ -core-$(CONFIG_M5272) += arch/m68k/platform/5272/ core-$(CONFIG_M528x) += arch/m68k/platform/528x/ core-$(CONFIG_M5307) += arch/m68k/platform/5307/ core-$(CONFIG_M532x) += arch/m68k/platform/532x/
arch/m68k/platform/5272/Makefile deleted +0 -18
@@ -1,18 +0,0 @@ -# -# Makefile for the linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o intc.o -
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -21,7 +21,7 @@ obj-$(CONFIG_M520x) += m520x.o pit.o intc-simr.o reset.o obj-$(CONFIG_M523x) += m523x.o pit.o dma_timer.o intc-2.o reset.o obj-$(CONFIG_M5249) += m5249.o timers.o intc.o intc-5249.o reset.o obj-$(CONFIG_M527x) += pit.o intc-2.o reset.o -obj-$(CONFIG_M5272) += timers.o +obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o obj-$(CONFIG_M528x) += pit.o intc-2.o reset.o obj-$(CONFIG_M5307) += timers.o intc.o reset.o obj-$(CONFIG_M532x) += timers.o intc-simr.o reset.o
arch/m68k/platform/coldfire/intc-5272.c renamed from arch/m68k/platform/5272/intc.c +0 -0
arch/m68k/platform/coldfire/m5272.c renamed from arch/m68k/platform/5272/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 6/11 m68knommu: move the 527x platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/527x/Makefile | 18 ------------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../platform/{527x/config.c => coldfire/m527x.c} | 0
4 files changed, 1 insertions(+), 20 deletions(-)
delete mode 100644 arch/m68k/platform/527x/Makefile
rename arch/m68k/platform/{527x/config.c => coldfire/m527x.c} (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M527x) += arch/m68k/platform/527x/ core-$(CONFIG_M528x) += arch/m68k/platform/528x/ core-$(CONFIG_M5307) += arch/m68k/platform/5307/ core-$(CONFIG_M532x) += arch/m68k/platform/532x/
arch/m68k/platform/527x/Makefile deleted +0 -18
@@ -1,18 +0,0 @@ -# -# Makefile for the linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o -
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -20,7 +20,7 @@ obj-$(CONFIG_M5206e) += m5206.o timers.o intc.o reset.o obj-$(CONFIG_M520x) += m520x.o pit.o intc-simr.o reset.o obj-$(CONFIG_M523x) += m523x.o pit.o dma_timer.o intc-2.o reset.o obj-$(CONFIG_M5249) += m5249.o timers.o intc.o intc-5249.o reset.o -obj-$(CONFIG_M527x) += pit.o intc-2.o reset.o +obj-$(CONFIG_M527x) += m527x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o obj-$(CONFIG_M528x) += pit.o intc-2.o reset.o obj-$(CONFIG_M5307) += timers.o intc.o reset.o
arch/m68k/platform/coldfire/m527x.c renamed from arch/m68k/platform/527x/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 7/11 m68knommu: move the 528x platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/528x/Makefile | 18 ------------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../platform/{528x/config.c => coldfire/m528x.c} | 0
4 files changed, 1 insertions(+), 20 deletions(-)
delete mode 100644 arch/m68k/platform/528x/Makefile
rename arch/m68k/platform/{528x/config.c => coldfire/m528x.c} (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M528x) += arch/m68k/platform/528x/ core-$(CONFIG_M5307) += arch/m68k/platform/5307/ core-$(CONFIG_M532x) += arch/m68k/platform/532x/ core-$(CONFIG_M5407) += arch/m68k/platform/5407/
arch/m68k/platform/528x/Makefile deleted +0 -18
@@ -1,18 +0,0 @@ -# -# Makefile for the linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o -
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -22,7 +22,7 @@ obj-$(CONFIG_M523x) += m523x.o pit.o dma_timer.o intc-2.o reset.o obj-$(CONFIG_M5249) += m5249.o timers.o intc.o intc-5249.o reset.o obj-$(CONFIG_M527x) += m527x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o -obj-$(CONFIG_M528x) += pit.o intc-2.o reset.o +obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5307) += timers.o intc.o reset.o obj-$(CONFIG_M532x) += timers.o intc-simr.o reset.o obj-$(CONFIG_M5407) += timers.o intc.o reset.o
arch/m68k/platform/coldfire/m528x.c renamed from arch/m68k/platform/528x/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 8/11 m68knommu: move the 5307 platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/5307/Makefile | 20 --------------------
arch/m68k/platform/coldfire/Makefile | 5 ++++-
.../platform/{5307/config.c => coldfire/m5307.c} | 0
arch/m68k/platform/{5307 => coldfire}/nettel.c | 0
5 files changed, 4 insertions(+), 22 deletions(-)
delete mode 100644 arch/m68k/platform/5307/Makefile
rename arch/m68k/platform/{5307/config.c => coldfire/m5307.c} (100%)
rename arch/m68k/platform/{5307 => coldfire}/nettel.c (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M5307) += arch/m68k/platform/5307/ core-$(CONFIG_M532x) += arch/m68k/platform/532x/ core-$(CONFIG_M5407) += arch/m68k/platform/5407/ core-$(CONFIG_M54xx) += arch/m68k/platform/54xx/
arch/m68k/platform/5307/Makefile deleted +0 -20
@@ -1,20 +0,0 @@ -# -# Makefile for the m68knommu kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y += config.o -obj-$(CONFIG_NETtel) += nettel.o -obj-$(CONFIG_CLEOPATRA) += nettel.o -
arch/m68k/platform/coldfire/Makefile +4 -1
@@ -23,10 +23,13 @@ obj-$(CONFIG_M5249) += m5249.o timers.o intc.o intc-5249.o reset.o obj-$(CONFIG_M527x) += m527x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o -obj-$(CONFIG_M5307) += timers.o intc.o reset.o +obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o obj-$(CONFIG_M532x) += timers.o intc-simr.o reset.o obj-$(CONFIG_M5407) += timers.o intc.o reset.o obj-$(CONFIG_M54xx) += sltimers.o intc-2.o +obj-$(CONFIG_NETtel) += nettel.o +obj-$(CONFIG_CLEOPATRA) += nettel.o + obj-y += pinmux.o gpio.o extra-y := head.o
arch/m68k/platform/coldfire/m5307.c renamed from arch/m68k/platform/5307/config.c +0 -0
arch/m68k/platform/coldfire/nettel.c renamed from arch/m68k/platform/5307/nettel.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 9/11 m68knommu: move the 5407 platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/5407/Makefile | 18 ------------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../platform/{5407/config.c => coldfire/m5407.c} | 0
4 files changed, 1 insertions(+), 20 deletions(-)
delete mode 100644 arch/m68k/platform/5407/Makefile
rename arch/m68k/platform/{5407/config.c => coldfire/m5407.c} (100%)arch/m68k/Makefile +0 -1
@@ -116,7 +116,6 @@ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ core-$(CONFIG_M532x) += arch/m68k/platform/532x/ -core-$(CONFIG_M5407) += arch/m68k/platform/5407/ core-$(CONFIG_M54xx) += arch/m68k/platform/54xx/
arch/m68k/platform/5407/Makefile deleted +0 -18
@@ -1,18 +0,0 @@ -# -# Makefile for the m68knommu linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o -
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -25,7 +25,7 @@ obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o obj-$(CONFIG_M532x) += timers.o intc-simr.o reset.o -obj-$(CONFIG_M5407) += timers.o intc.o reset.o +obj-$(CONFIG_M5407) += m5407.o timers.o intc.o reset.o obj-$(CONFIG_M54xx) += sltimers.o intc-2.o obj-$(CONFIG_NETtel) += nettel.o
arch/m68k/platform/coldfire/m5407.c renamed from arch/m68k/platform/5407/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 10/11 m68knommu: move the 532x platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/532x/Makefile | 18 ------------------
arch/m68k/platform/coldfire/Makefile | 2 +-
.../platform/{532x/config.c => coldfire/m532x.c} | 0
4 files changed, 1 insertions(+), 20 deletions(-)
delete mode 100644 arch/m68k/platform/532x/Makefile
rename arch/m68k/platform/{532x/config.c => coldfire/m532x.c} (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M532x) += arch/m68k/platform/532x/ core-$(CONFIG_M54xx) += arch/m68k/platform/54xx/
arch/m68k/platform/532x/Makefile deleted +0 -18
@@ -1,18 +0,0 @@ -# -# Makefile for the m68knommu linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# ccflags-y := -DTRAP_DBG_INTERRUPT -# asflags-y := -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -#obj-y := config.o usb-mcf532x.o spi-mcf532x.o -obj-y := config.o
arch/m68k/platform/coldfire/Makefile +1 -1
@@ -24,7 +24,7 @@ obj-$(CONFIG_M527x) += m527x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5272) += m5272.o intc-5272.o timers.o obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o -obj-$(CONFIG_M532x) += timers.o intc-simr.o reset.o +obj-$(CONFIG_M532x) += m532x.o timers.o intc-simr.o reset.o obj-$(CONFIG_M5407) += m5407.o timers.o intc.o reset.o obj-$(CONFIG_M54xx) += sltimers.o intc-2.o
arch/m68k/platform/coldfire/m532x.c renamed from arch/m68k/platform/532x/config.c +0 -0
Signature · 1 line
1.7.0.4
PATCH 11/11 m68knommu: move the 54xx platform code into the common ColdFire code directory
In reply to [email protected]From: Greg Ungerer <[email protected]>
All these separate directories for each ColdFire CPU SoC varient seems like overkill. The majority of them only contain a single small config file. Move these into the common ColdFire code directory.
---
arch/m68k/Makefile | 1 -
arch/m68k/platform/54xx/Makefile | 19 -------------------
arch/m68k/platform/coldfire/Makefile | 3 ++-
arch/m68k/platform/{54xx => coldfire}/firebee.c | 0
.../platform/{54xx/config.c => coldfire/m54xx.c} | 0
5 files changed, 2 insertions(+), 21 deletions(-)
delete mode 100644 arch/m68k/platform/54xx/Makefile
rename arch/m68k/platform/{54xx => coldfire}/firebee.c (100%)
rename arch/m68k/platform/{54xx/config.c => coldfire/m54xx.c} (100%)arch/m68k/Makefile +0 -1
@@ -115,7 +115,6 @@ core-$(CONFIG_M68000) += arch/m68k/platform/68328/ core-$(CONFIG_M68EZ328) += arch/m68k/platform/68EZ328/ core-$(CONFIG_M68VZ328) += arch/m68k/platform/68VZ328/ core-$(CONFIG_COLDFIRE) += arch/m68k/platform/coldfire/ -core-$(CONFIG_M54xx) += arch/m68k/platform/54xx/ all: zImage
arch/m68k/platform/54xx/Makefile deleted +0 -19
@@ -1,19 +0,0 @@ -# -# Makefile for the m68knommu linux kernel. -# - -# -# If you want to play with the HW breakpoints then you will -# need to add define this, which will give you a stack backtrace -# on the console port whenever a DBG interrupt occurs. You have to -# set up you HW breakpoints to trigger a DBG interrupt: -# -# EXTRA_CFLAGS += -DTRAP_DBG_INTERRUPT -# EXTRA_AFLAGS += -DTRAP_DBG_INTERRUPT -# - -asflags-$(CONFIG_FULLDEBUG) := -DDEBUGGER_COMPATIBLE_CACHE=1 - -obj-y := config.o -obj-$(CONFIG_FIREBEE) += firebee.o -
arch/m68k/platform/coldfire/Makefile +2 -1
@@ -26,10 +26,11 @@ obj-$(CONFIG_M528x) += m528x.o pit.o intc-2.o reset.o obj-$(CONFIG_M5307) += m5307.o timers.o intc.o reset.o obj-$(CONFIG_M532x) += m532x.o timers.o intc-simr.o reset.o obj-$(CONFIG_M5407) += m5407.o timers.o intc.o reset.o -obj-$(CONFIG_M54xx) += sltimers.o intc-2.o +obj-$(CONFIG_M54xx) += m54xx.o sltimers.o intc-2.o obj-$(CONFIG_NETtel) += nettel.o obj-$(CONFIG_CLEOPATRA) += nettel.o +obj-$(CONFIG_FIREBEE) += firebee.o obj-y += pinmux.o gpio.o extra-y := head.o
arch/m68k/platform/coldfire/firebee.c renamed from arch/m68k/platform/54xx/firebee.c +0 -0
arch/m68k/platform/coldfire/m54xx.c renamed from arch/m68k/platform/54xx/config.c +0 -0
Signature · 1 line
1.7.0.4
Geert Uytterhoeven
maintainerHi Greg,
Quoted 4 lines · On Wed, May 2, 2012 at 3:08 AM, <[email protected]> wrote:
Move all the ColdFire sub-architecture code into the platform/coldfire directory, and remove the sub-architecture directories. We already build the common ColdFire components based on sub-architecture type anyway, so there is very little
Makefilechange required.
This looks like a weird diffstat:
Quoted 12 lines
arch/m68k/Makefile | 10 ----------
arch/m68k/platform/5206/Makefile | 18 ------------------ arch/m68k/platform/520x/Makefile | 17 ----------------- arch/m68k/platform/523x/Makefile | 17 ----------------- arch/m68k/platform/5249/Makefile | 18 ------------------ arch/m68k/platform/5272/Makefile | 18 ------------------ arch/m68k/platform/527x/Makefile | 18 ------------------ arch/m68k/platform/528x/Makefile | 18 ------------------ arch/m68k/platform/5307/Makefile | 20 -------------------- arch/m68k/platform/532x/Makefile | 18 ------------------ arch/m68k/platform/5407/Makefile | 18 ------------------ arch/m68k/platform/54xx/Makefile | 19 -------------------
Quoted 3 lines
arch/m68k/platform/coldfire/Makefile | 24 ++++++++++++++---------- b/arch/m68k/Makefile | 2 -- b/arch/m68k/platform/coldfire/Makefile | 4 ++--
We already had these two files in the diffstat, with different values?
Quoted 11 lines
b/arch/m68k/platform/coldfire/m5206.c | 1 - b/arch/m68k/platform/coldfire/m520x.c | 1 - b/arch/m68k/platform/coldfire/m523x.c | 1 - b/arch/m68k/platform/coldfire/m5249.c | 1 - b/arch/m68k/platform/coldfire/m5272.c | 1 - b/arch/m68k/platform/coldfire/m527x.c | 1 - b/arch/m68k/platform/coldfire/m528x.c | 1 - b/arch/m68k/platform/coldfire/m532x.c | 1 - b/arch/m68k/platform/coldfire/m5407.c | 1 - b/arch/m68k/platform/coldfire/m54xx.c | 1 -b/arch/m68k/platform/coldfire/nettel.c | 1 -
All of these are created, not deleted?
The actual patches look fine, though ;-)
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]
In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
Hi Geert,
Quoted 38 lines · Geert Uytterhoeven
Quoted 4 lines · On Wed, May 2, 2012 at 3:08 AM,<[email protected]> wrote:
Move all the ColdFire sub-architecture code into the platform/coldfire directory, and remove the sub-architecture directories. We already build the common ColdFire components based on sub-architecture type anyway, so there is very little
Makefilechange required.This looks like a weird diffstat:
Quoted 12 lines
arch/m68k/Makefile| 10 ----------arch/m68k/platform/5206/Makefile | 18 ------------------ arch/m68k/platform/520x/Makefile | 17 ----------------- arch/m68k/platform/523x/Makefile | 17 ----------------- arch/m68k/platform/5249/Makefile | 18 ------------------ arch/m68k/platform/5272/Makefile | 18 ------------------ arch/m68k/platform/527x/Makefile | 18 ------------------ arch/m68k/platform/528x/Makefile | 18 ------------------ arch/m68k/platform/5307/Makefile | 20 -------------------- arch/m68k/platform/532x/Makefile | 18 ------------------ arch/m68k/platform/5407/Makefile | 18 ------------------ arch/m68k/platform/54xx/Makefile | 19 -------------------Quoted 3 lines
arch/m68k/platform/coldfire/Makefile| 24 ++++++++++++++----------
b/arch/m68k/Makefile | 2 --
b/arch/m68k/platform/coldfire/Makefile | 4 ++--We already had these two files in the diffstat, with different values?
Quoted 11 lines
b/arch/m68k/platform/coldfire/m5206.c | 1 - b/arch/m68k/platform/coldfire/m520x.c | 1 - b/arch/m68k/platform/coldfire/m523x.c | 1 - b/arch/m68k/platform/coldfire/m5249.c | 1 - b/arch/m68k/platform/coldfire/m5272.c | 1 - b/arch/m68k/platform/coldfire/m527x.c | 1 - b/arch/m68k/platform/coldfire/m528x.c | 1 - b/arch/m68k/platform/coldfire/m532x.c | 1 - b/arch/m68k/platform/coldfire/m5407.c | 1 - b/arch/m68k/platform/coldfire/m54xx.c | 1 -
b/arch/m68k/platform/coldfire/nettel.c| 1 -
Quoted 1 line
All of these are created, not deleted?
Yeah, it is pretty odd. I think diffstat is getting confused by the git rename/delete actions in the diffs. I used git format-patch with the -M option, since there was so much moving about of files.
Quoted 1 line
The actual patches look fine, though ;-)
Thanks for the review :-)
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Principal Engineer EMAIL: [email protected] SnapGear Group, McAfee PHONE: +61 7 3435 2888 8 Gardner Close, FAX: +61 7 3891 3630 Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com
Hi Greg,
I've done a similar thing for the 68000 cpu's. Ended up with a single platform/68000 directory and removed the 68328, 68EZ328 and 68VZ328 directories.
When I have the time I'll prepare the patches and send them (probably latter today).
I'm not sure if anyone is still building 3.x kernels for the 68[xx]328 SoC's but would be nice if someone could test building the kernel for the boards using those chips (hopefully I didn't break up anything). For the 68000 (and my board) it's working good.
Regards,
Luis
Quoted 47 lines · On Wed, May 2, 2012 at 2:08 AM, <[email protected]> wrote:
Currently the different ColdFire sub-archiectures are split up with a directory for each family type. Most though only contain a small amount of code, it just doesn't seem to make any sense to keep them separate.
Move all the ColdFire sub-architecture code into the platform/coldfire directory, and remove the sub-architecture directories. We already build the common ColdFire components based on sub-architecture type anyway, so there is very little
Makefilechange required.Overall we remove about 200 lines of duplicated
Makefilecode, and end up with all the ColdFire specific code in a single directory.---
arch/m68k/Makefile | 10 ----------
arch/m68k/platform/5206/Makefile | 18 ------------------ arch/m68k/platform/520x/Makefile | 17 ----------------- arch/m68k/platform/523x/Makefile | 17 ----------------- arch/m68k/platform/5249/Makefile | 18 ------------------ arch/m68k/platform/5272/Makefile | 18 ------------------ arch/m68k/platform/527x/Makefile | 18 ------------------ arch/m68k/platform/528x/Makefile | 18 ------------------ arch/m68k/platform/5307/Makefile | 20 -------------------- arch/m68k/platform/532x/Makefile | 18 ------------------ arch/m68k/platform/5407/Makefile | 18 ------------------ arch/m68k/platform/54xx/Makefile | 19 ------------------- arch/m68k/platform/coldfire/Makefile | 24 ++++++++++++++---------- b/arch/m68k/Makefile | 2 -- b/arch/m68k/platform/coldfire/Makefile | 4 ++-- b/arch/m68k/platform/coldfire/m5206.c | 1 - b/arch/m68k/platform/coldfire/m520x.c | 1 - b/arch/m68k/platform/coldfire/m523x.c | 1 - b/arch/m68k/platform/coldfire/m5249.c | 1 - b/arch/m68k/platform/coldfire/m5272.c | 1 - b/arch/m68k/platform/coldfire/m527x.c | 1 - b/arch/m68k/platform/coldfire/m528x.c | 1 - b/arch/m68k/platform/coldfire/m532x.c | 1 - b/arch/m68k/platform/coldfire/m5407.c | 1 - b/arch/m68k/platform/coldfire/m54xx.c | 1 - b/arch/m68k/platform/coldfire/nettel.c | 1 - 26 files changed, 16 insertions(+), 234 deletions(-)--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Hi Luis,
Quoted 3 lines · Luis Alves
I've done a similar thing for the 68000 cpu's. Ended up with a single platform/68000 directory and removed the 68328, 68EZ328 and 68VZ328 directories.
That sounds great.
Quoted 2 lines
When I have the time I'll prepare the patches and send them (probably latter today).
Looking forward to them :-)
Quoted 4 lines
I'm not sure if anyone is still building 3.x kernels for the 68[xx]328 SoC's but would be nice if someone could test building the kernel for the boards using those chips (hopefully I didn't break up anything). For the 68000 (and my board) it's working good.
I build them occasionally, but I don't have any way to test any of those targets.
Regards
Greg
Quoted 55 lines · On Wed, May 2, 2012 at 2:08 AM,<[email protected]> wrote:
Quoted 40 lines
Currently the different ColdFire sub-archiectures are split up with a directory for each family type. Most though only contain a small amount of code, it just doesn't seem to make any sense to keep them separate.
Move all the ColdFire sub-architecture code into the platform/coldfire directory, and remove the sub-architecture directories. We already build the common ColdFire components based on sub-architecture type anyway, so there is very little
Makefilechange required.Overall we remove about 200 lines of duplicated
Makefilecode, and end up with all the ColdFire specific code in a single directory.---
áarch/m68k/Makefile á á á á á á á á á á | á 10 ----------
áarch/m68k/platform/5206/Makefile á á á | á 18 ------------------ áarch/m68k/platform/520x/Makefile á á á | á 17 ----------------- áarch/m68k/platform/523x/Makefile á á á | á 17 ----------------- áarch/m68k/platform/5249/Makefile á á á | á 18 ------------------ áarch/m68k/platform/5272/Makefile á á á | á 18 ------------------ áarch/m68k/platform/527x/Makefile á á á | á 18 ------------------ áarch/m68k/platform/528x/Makefile á á á | á 18 ------------------ áarch/m68k/platform/5307/Makefile á á á | á 20 -------------------- áarch/m68k/platform/532x/Makefile á á á | á 18 ------------------ áarch/m68k/platform/5407/Makefile á á á | á 18 ------------------ áarch/m68k/platform/54xx/Makefile á á á | á 19 ------------------- áarch/m68k/platform/coldfire/Makefile á | á 24 ++++++++++++++---------- áb/arch/m68k/Makefile á á á á á á á á á | á á2 -- áb/arch/m68k/platform/coldfire/Makefile | á á4 ++-- áb/arch/m68k/platform/coldfire/m5206.c á| á á1 - áb/arch/m68k/platform/coldfire/m520x.c á| á á1 - áb/arch/m68k/platform/coldfire/m523x.c á| á á1 - áb/arch/m68k/platform/coldfire/m5249.c á| á á1 - áb/arch/m68k/platform/coldfire/m5272.c á| á á1 - áb/arch/m68k/platform/coldfire/m527x.c á| á á1 - áb/arch/m68k/platform/coldfire/m528x.c á| á á1 - áb/arch/m68k/platform/coldfire/m532x.c á| á á1 - áb/arch/m68k/platform/coldfire/m5407.c á| á á1 - áb/arch/m68k/platform/coldfire/m54xx.c á| á á1 -Quoted 7 lines
áb/arch/m68k/platform/coldfire/nettel.c | á á1 - á26 files changed, 16 insertions(+), 234 deletions(-)
--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to [email protected]
More majordomo info at áhttp://vger.kernel.org/majordomo-info.html--
To unsubscribe from this list: send the line "unsubscribe linux-m68k" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 5 lines
------------------------------------------------------------------------ Greg Ungerer -- Principal Engineer EMAIL: [email protected] SnapGear Group, McAfee PHONE: +61 7 3435 2888 8 Gardner Close, FAX: +61 7 3891 3630 Milton, QLD, 4064, Australia WEB: http://www.SnapGear.com