Skip to contentSkip to conversation

coldfire: Fix compilation for most coldfire boards

PATCH New Stany MARCEL 3 participants 8 messages Sep 5, 2011 – Sep 14, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 coldfire: Fix compilation for most coldfire boards

Many different patches to fix compilation of coldfire boards. Compilation could now be done in a different directory from the sources one. Simple board config switched from Makefile to boards.cfg EP2500 broken board removed from boards.cfg. Link files corrected to remove zlib.o and multiple defined symbols.

---
 MAKEALL                              |    6 --
 Makefile                             |  124 +++++-----------------------------
 arch/m68k/cpu/mcf5227x/Makefile      |    2 +-
 arch/m68k/cpu/mcf523x/Makefile       |    2 +-
 arch/m68k/cpu/mcf532x/Makefile       |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile      |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile    |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds    |    8 --
 board/cobra5272/u-boot.lds           |    7 --
 board/esd/tasreg/u-boot.lds          |    7 --
 board/freescale/m52277evb/.gitignore |    1 +
 board/freescale/m5235evb/.gitignore  |    1 +
 board/freescale/m5235evb/u-boot.16   |    8 --
 board/freescale/m5235evb/u-boot.32   |   16 -----
 board/freescale/m5249evb/u-boot.lds  |    7 --
 board/freescale/m5253evbe/u-boot.lds |    7 --
 board/freescale/m5272c3/u-boot.lds   |    7 --
 board/freescale/m5275evb/u-boot.lds  |    6 --
 board/freescale/m54451evb/.gitignore |    1 +
 board/freescale/m54455evb/.gitignore |    1 +
 board/idmr/u-boot.lds                |    7 --
 boards.cfg                           |   21 ++++++-
 include/configs/M5329EVB.h           |    8 +-
 23 files changed, 50 insertions(+), 203 deletions(-)
 create mode 100644 board/freescale/m52277evb/.gitignore
 create mode 100644 board/freescale/m5235evb/.gitignore
 create mode 100644 board/freescale/m54451evb/.gitignore
 create mode 100644 board/freescale/m54455evb/.gitignore
MAKEALL +0 -6
index e72a019..2cb5b38 100755
@@ -495,18 +495,12 @@ LIST_microblaze="$(boards_by_arch microblaze)"
 #########################################################################
 
 LIST_coldfire="$(boards_by_arch m68k)
-	astro_mcf5373l		\
-	cobra5272		\
 	EB+MCF-EV123		\
 	EB+MCF-EV123_internal	\
 	M52277EVB		\
 	M5235EVB		\
-	M5329AFEE		\
-	M5373EVB		\
 	M54451EVB		\
 	M54455EVB		\
-	M5475AFE		\
-	M5485AFE		\
 "
 
 #########################################################################
Makefile +17 -107

210 lines not on this page · raw message

arch/m68k/cpu/mcf5227x/Makefile +1 -1
index eb36264..0490f0e 100644
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 # CFLAGS += -DET_DEBUG
 
-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o
 
 START	= start.o
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf523x/Makefile +1 -1
index eb36264..0490f0e 100644
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 # CFLAGS += -DET_DEBUG
 
-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o
 
 START	= start.o
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf532x/Makefile +1 -1
index 257d46d..eb043d9 100644
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 # CFLAGS += -DET_DEBUG
 
-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o
 
 START	=
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o
arch/m68k/cpu/mcf5445x/Makefile +1 -1
index 047e35d..5b7ddd6 100644
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 # CFLAGS += -DET_DEBUG
 
-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o
 
 START	= start.o
 COBJS	= cpu.o speed.o cpu_init.o interrupts.o pci.o
arch/m68k/cpu/mcf547x_8x/Makefile +1 -1
index e41ce68..a415aab 100644
@@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
 
 # CFLAGS += -DET_DEBUG
 
-LIB	= lib$(CPU).o
+LIB	= $(obj)lib$(CPU).o
 
 START	=
 COBJS	= cpu.o speed.o cpu_init.o pci.o interrupts.o slicetimer.o
board/BuS/EB+MCF-EV123/u-boot.lds +0 -8
index e0359e3..99f9576 100644
@@ -52,15 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf52x2/start.o	(.text)
-    common/dlmalloc.o	(.text)
-    lib/string.o	(.text)
-    lib/vsprintf.o	(.text)
-    lib/crc32.o	(.text)
-    lib/zlib.o	(.text)
 
 /*    . = env_offset; */
     common/env_embedded.o(.text)
board/cobra5272/u-boot.lds +0 -7
index da14807..251cc6b 100644
@@ -52,14 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
     arch/m68k/cpu/mcf52x2/start.o		(.text)
-    arch/m68k/cpu/mcf52x2/cpu_init.o	(.text)
-    arch/m68k/lib/traps.o		(.text)
-    arch/m68k/cpu/mcf52x2/interrupts.o	(.text)
-    common/dlmalloc.o		(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/esd/tasreg/u-boot.lds +0 -7
index 27a6b93..c9b4781 100644
@@ -52,14 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf52x2/start.o		(.text)
-    arch/m68k/lib/traps.o		(.text)
-    arch/m68k/cpu/mcf52x2/interrupts.o	(.text)
-    common/dlmalloc.o		(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m52277evb/.gitignore new file +1 -0
new file mode 100644
index 0000000..09f1be0
@@ -0,0 +1 @@
+u-boot.lds
board/freescale/m5235evb/.gitignore new file +1 -0
new file mode 100644
index 0000000..09f1be0
@@ -0,0 +1 @@
+u-boot.lds
board/freescale/m5235evb/u-boot.16 +0 -8
index 657cd9d..3183cba 100644
@@ -52,15 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf523x/start.o		(.text)
-    arch/m68k/cpu/mcf523x/cpu_init.o	(.text)
-    arch/m68k/lib/traps.o		(.text)
-    arch/m68k/lib/interrupts.o	(.text)
-    common/dlmalloc.o		(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5235evb/u-boot.32 +0 -16
index 1f91994..3183cba 100644
@@ -52,23 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf523x/start.o		(.text)
-    arch/m68k/cpu/mcf523x/cpu.o		(.text)
-    arch/m68k/cpu/mcf523x/cpu_init.o	(.text)
-    arch/m68k/cpu/mcf523x/interrupts.o	(.text)
-    arch/m68k/cpu/mcf523x/speed.o		(.text)
-    arch/m68k/lib/libm68k.o		(.text)
-    common/dlmalloc.o		(.text)
-    common/cmd_bootm.o		(.text)
-    common/cmd_flash.o		(.text)
-    common/cmd_elf.o		(.text)
-    common/cmd_mem.o		(.text)
-    common/console.o		(.text)
-    common/main.o		(.text)
-    lib/libgeneric.o	(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5249evb/u-boot.lds +0 -7
index 27a6b93..c9b4781 100644
@@ -52,14 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf52x2/start.o		(.text)
-    arch/m68k/lib/traps.o		(.text)
-    arch/m68k/cpu/mcf52x2/interrupts.o	(.text)
-    common/dlmalloc.o		(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5253evbe/u-boot.lds +0 -7
index 34aa73d..f0d4f0e 100644
@@ -52,14 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf52x2/start.o		(.text)
-    arch/m68k/lib/traps.o		(.text)
-    arch/m68k/cpu/mcf52x2/interrupts.o	(.text)
-    common/dlmalloc.o		(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5272c3/u-boot.lds +0 -7
index ff5bfe6..251cc6b 100644
@@ -52,14 +52,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf52x2/start.o		(.text)
-    arch/m68k/lib/traps.o		(.text)
-    arch/m68k/cpu/mcf52x2/interrupts.o	(.text)
-    common/dlmalloc.o		(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.text)
board/freescale/m5275evb/u-boot.lds +0 -6
index 8e792fe..0eb2a49 100644
@@ -52,13 +52,7 @@ SECTIONS
   .plt           : { *(.plt)		}
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf52x2/start.o		(.text)
-    common/dlmalloc.o		(.text)
-    lib/string.o	(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o(.text)
board/freescale/m54451evb/.gitignore new file +1 -0
new file mode 100644
index 0000000..09f1be0
@@ -0,0 +1 @@
+u-boot.lds
board/freescale/m54455evb/.gitignore new file +1 -0
new file mode 100644
index 0000000..09f1be0
@@ -0,0 +1 @@
+u-boot.lds
board/idmr/u-boot.lds +0 -7
index e16a266..46533b9 100644
@@ -53,14 +53,7 @@ SECTIONS
   .plt : { *(.plt) }
   .text      :
   {
-    /* WARNING - the following is hand-optimized to fit within	*/
-    /* the sector layout of our flash chips!	XXX FIXME XXX	*/
-
     arch/m68k/cpu/mcf52x2/start.o		(.text)
-    arch/m68k/lib/traps.o		(.text)
-    arch/m68k/cpu/mcf52x2/interrupts.o	(.text)
-    common/dlmalloc.o		(.text)
-    lib/zlib.o		(.text)
 
     . = DEFINED(env_offset) ? env_offset : .;
     common/env_embedded.o	(.ppcenv)
boards.cfg +20 -1
index 60723d5..16ea8f9 100644
@@ -270,6 +270,7 @@ tcm-bf518                    blackfin    blackfin
 tcm-bf537                    blackfin    blackfin
 eNET                         x86         x86        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x38040000
 eNET_SRAM                    x86         x86        eNET                -              sc520       eNET:SYS_TEXT_BASE=0x19000000
+cobra5272                    m68k        mcf52x2     cobra5272           -
 idmr                         m68k        mcf52x2
 TASREG                       m68k        mcf52x2     tasreg              esd
 M5208EVBE                    m68k        mcf52x2     m5208evbe           freescale
@@ -280,8 +281,26 @@ M5271EVB                     m68k        mcf52x2     m5271evb            freesca
 M5272C3                      m68k        mcf52x2     m5272c3             freescale
 M5275EVB                     m68k        mcf52x2     m5275evb            freescale
 M5282EVB                     m68k        mcf52x2     m5282evb            freescale
+astro_mcf5373l               m68k        mcf532x     mcf5373l            astro
 M53017EVB                    m68k        mcf532x     m53017evb           freescale
-EP2500                       m68k        mcf52x2     ep2500              Mercury
+M5329AFEE                    m68k        mcf532x     m5329evb            freescale      -           M5329EVB:NANDFLASH_SIZE=0
+M5329BFEE                    m68k        mcf532x     m5329evb            freescale      -           M5329EVB:NANDFLASH_SIZE=16
+M5373EVB                     m68k        mcf532x     m5373evb            freescale      -           M5373EVB:NANDFLASH_SIZE=16
+M5475AFE                     m68k        mcf547x_8x  m547xevb            freescale      -           M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64
+M5475BFE		     m68k        mcf547x_8x  m547xevb            freescale      -           M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16
+M5475CFE		     m68k	 mcf547x_8x  m547xevb            freescale      -           M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL
+M5475DFE		     m68k	 mcf547x_8x  m547xevb            freescale      -           M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL
+M5475EFE		     m68k	 mcf547x_8x  m547xevb            freescale      -           M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL
+M5475FFE		     m68k	 mcf547x_8x  m547xevb            freescale      -           M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64
+M5475GFE		     m68k        mcf547x_8x  m547xevb            freescale      -           M5475EVB:SYS_BUSCLK=133333333,SYS_BOOTSZ=4,SYS_DRAMSZ=64
+M5485AFE                     m68k        mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64
+M5485BFE		     m68k        mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16
+M5485CFE		     m68k	 mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO,SYS_USBCTRL
+M5485DFE		     m68k	 mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_USBCTRL
+M5485EFE		     m68k	 mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_VIDEO,SYS_USBCTRL
+M5485FFE		     m68k	 mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=32,SYS_VIDEO,SYS_USBCTRL,SYS_DRAMSZ1=64
+M5485GFE		     m68k        mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=4,SYS_DRAMSZ=64
+M5485HFE		     m68k        mcf547x_8x  m548xevb            freescale      -           M5485EVB:SYS_BUSCLK=100000000,SYS_BOOTSZ=2,SYS_DRAMSZ=64,SYS_NOR1SZ=16,SYS_VIDEO
 microblaze-generic           microblaze  microblaze  microblaze-generic  xilinx
 dbau1000                     mips        mips32      dbau1x00            -              au1x00      dbau1x00:DBAU1000
 dbau1100                     mips        mips32      dbau1x00            -              au1x00      dbau1x00:DBAU1100
include/configs/M5329EVB.h +4 -4
index 3adcf4d..4e7b735 100644
@@ -60,7 +60,7 @@
 #define CONFIG_CMD_PING
 #define CONFIG_CMD_REGINFO
 
-#ifdef NANDFLASH_SIZE
+#ifdef CONFIG_NANDFLASH_SIZE
 #      define CONFIG_CMD_NAND
 #endif
 
@@ -210,7 +210,7 @@
 #	define CONFIG_SYS_FLASH_PROTECTION	/* "Real" (hardware) sectors protection */
 #endif
 
-#ifdef NANDFLASH_SIZE
+#ifdef CONFIG_NANDFLASH_SIZE
 #	define CONFIG_SYS_MAX_NAND_DEVICE	1
 #	define CONFIG_SYS_NAND_BASE		CONFIG_SYS_CS2_BASE
 #	define CONFIG_SYS_NAND_SIZE		1
@@ -266,9 +266,9 @@
 #define CONFIG_SYS_CS1_MASK		0x001f0001
 #define CONFIG_SYS_CS1_CTRL		0x002A3780
 
-#ifdef NANDFLASH_SIZE
+#ifdef CONFIG_NANDFLASH_SIZE
 #define CONFIG_SYS_CS2_BASE		0x20000000
-#define CONFIG_SYS_CS2_MASK		((NANDFLASH_SIZE << 20) | 1)
+#define CONFIG_SYS_CS2_MASK		((CONFIG_NANDFLASH_SIZE << 20) | 1)
 #define CONFIG_SYS_CS2_CTRL		0x00001f60
 #endif
 
Signature · 1 line
1.7.1
#1 lore raw

PATCH 2/2 coldfire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined

A temp variable was used but not declared, with CONFIG_SYS_DRAMSZ1 defined. This variable is now declared in the functione when needed.

---
 board/freescale/m548xevb/m548xevb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
board/freescale/m548xevb/m548xevb.c +3 -0
index 4a2a5c7..fbc0888 100644
@@ -43,6 +43,9 @@ phys_size_t initdram(int board_type)
 	volatile siu_t *siu = (siu_t *) (MMAP_SIU);
 	volatile sdram_t *sdram = (volatile sdram_t *)(MMAP_SDRAM);
 	u32 dramsize, i;
+#ifdef CONFIG_SYS_DRAMSZ1
+	u32 temp;
+#endif
 
 	siu->drv = CONFIG_SYS_SDRAM_DRVSTRENGTH;
 
Signature · 1 line
1.7.1
#2 lore raw

PATCH 1/2 coldfire: Fix compilation for most coldfire boards

In reply to Stany MARCEL
Quoted 35 lines

-----Original Message-----
From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Monday, September 05, 2011 9:29 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Many different patches to fix compilation of coldfire boards. Compilation could now be done in a different directory from the sources one. Simple board config switched from Makefile to boards.cfg EP2500 broken board removed from boards.cfg. Link files corrected to remove zlib.o and multiple defined symbols.

---
 MAKEALL                              |    6 --
 Makefile                             |  124 +++++-----------------------------
 arch/m68k/cpu/mcf5227x/Makefile      |    2 +-
 arch/m68k/cpu/mcf523x/Makefile       |    2 +-
 arch/m68k/cpu/mcf532x/Makefile       |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile      |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile    |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds    |    8 --
 board/cobra5272/u-boot.lds           |    7 --
 board/esd/tasreg/u-boot.lds          |    7 --
 board/freescale/m52277evb/.gitignore |    1 +
 board/freescale/m5235evb/.gitignore  |    1 +
 board/freescale/m5235evb/u-boot.16   |    8 --
 board/freescale/m5235evb/u-boot.32   |   16 -----
 board/freescale/m5249evb/u-boot.lds  |    7 --
 board/freescale/m5253evbe/u-boot.lds |    7 --
 board/freescale/m5272c3/u-boot.lds   |    7 --
 board/freescale/m5275evb/u-boot.lds  |    6 --
 board/freescale/m54451evb/.gitignore |    1 +
 board/freescale/m54455evb/.gitignore |    1 +
Quoted 9 lines
 board/idmr/u-boot.lds                |    7 --
 boards.cfg                           |   21 ++++++-
 include/configs/M5329EVB.h           |    8 +-
 23 files changed, 50 insertions(+), 203 deletions(-)
 create mode 100644 board/freescale/m52277evb/.gitignore
 create mode 100644 board/freescale/m5235evb/.gitignore
 create mode 100644 board/freescale/m54451evb/.gitignore
 create mode 100644 board/freescale/m54455evb/.gitignore

[Jin Zhengxiong-R64188]
Please remove the unused git information from the patch. Thanks.

Could you please try to spilt the patch into several patches? For example, one for build in a different directory, one for lds file clean up, one for M5329EVB.h file clean up, and one for the moving the config to boards.cfg. Thanks.

Could you please provide which boards could you used to test your patches? Thanks.

Best Regards,
Jason

#3 lore raw

PATCH 1/2 coldfire: Fix compilation for most coldfire boards

Dear Jin Zhengxiong-R64188,

Quoted 44 lines · In message <BE72CBA69B1D6F44B0680DF984332A32253A40@039-SN1MPN1-005.039d.mgd.msf…
Quoted 35 lines

From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Monday, September 05, 2011 9:29 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Many different patches to fix compilation of coldfire boards. Compilation could now be done in a different directory from the sources one. Simple board config switched from Makefile to boards.cfg EP2500 broken board removed from boards.cfg. Link files corrected to remove zlib.o and multiple defined symbols.

---
 MAKEALL                              |    6 --
 Makefile                             |  124 +++++-----------------------------
 arch/m68k/cpu/mcf5227x/Makefile      |    2 +-
 arch/m68k/cpu/mcf523x/Makefile       |    2 +-
 arch/m68k/cpu/mcf532x/Makefile       |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile      |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile    |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds    |    8 --
 board/cobra5272/u-boot.lds           |    7 --
 board/esd/tasreg/u-boot.lds          |    7 --
 board/freescale/m52277evb/.gitignore |    1 +
 board/freescale/m5235evb/.gitignore  |    1 +
 board/freescale/m5235evb/u-boot.16   |    8 --
 board/freescale/m5235evb/u-boot.32   |   16 -----
 board/freescale/m5249evb/u-boot.lds  |    7 --
 board/freescale/m5253evbe/u-boot.lds |    7 --
 board/freescale/m5272c3/u-boot.lds   |    7 --
 board/freescale/m5275evb/u-boot.lds  |    6 --
 board/freescale/m54451evb/.gitignore |    1 +
 board/freescale/m54455evb/.gitignore |    1 +
Quoted 9 lines
 board/idmr/u-boot.lds                |    7 --
 boards.cfg                           |   21 ++++++-
 include/configs/M5329EVB.h           |    8 +-
 23 files changed, 50 insertions(+), 203 deletions(-)
 create mode 100644 board/freescale/m52277evb/.gitignore
 create mode 100644 board/freescale/m5235evb/.gitignore
 create mode 100644 board/freescale/m54451evb/.gitignore
 create mode 100644 board/freescale/m54455evb/.gitignore
Quoted 2 lines

[Jin Zhengxiong-R64188]
Please remove the unused git information from the patch. Thanks.

I agree with your other comments, but what sort of "unused git information" are you referring to here?

There is no "unused git information" in this patch. It is a proper patch generated by git-format-patch and submitted using git-send-email.

There is nothing that should be changed in the format.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Why is an average signature file longer than an average Perl script??
#4 lore raw

PATCH 1/2 coldfire: Fix compilation for most coldfire boards

Quoted 63 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Friday, September 09, 2011 3:26 PM
To: Jin Zhengxiong-R64188
Cc: Stany MARCEL; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Dear Jin Zhengxiong-R64188,

In message <BE72CBA69B1D6F44B0680DF984332A32253A40@039-SN1MPN1-

Quoted 14 lines · 005.039d.mgd.msft.net> you wrote:
Quoted 14 lines

From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Monday, September 05, 2011 9:29 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Many different patches to fix compilation of coldfire boards. Compilation could now be done in a different directory from the sources one. Simple board config switched from Makefile to boards.cfg EP2500 broken board removed from boards.cfg. Link files corrected to remove zlib.o and multiple defined symbols.

Quoted 4 lines
Quoted 4 lines
---
 MAKEALL                              |    6 --
 Makefile                             |  124 +++++-------------------------

----

Quoted 27 lines
Quoted 18 lines
 arch/m68k/cpu/mcf5227x/Makefile      |    2 +-
 arch/m68k/cpu/mcf523x/Makefile       |    2 +-
 arch/m68k/cpu/mcf532x/Makefile       |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile      |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile    |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds    |    8 --
 board/cobra5272/u-boot.lds           |    7 --
 board/esd/tasreg/u-boot.lds          |    7 --
 board/freescale/m52277evb/.gitignore |    1 +
 board/freescale/m5235evb/.gitignore  |    1 +
 board/freescale/m5235evb/u-boot.16   |    8 --
 board/freescale/m5235evb/u-boot.32   |   16 -----
 board/freescale/m5249evb/u-boot.lds  |    7 --
 board/freescale/m5253evbe/u-boot.lds |    7 --
 board/freescale/m5272c3/u-boot.lds   |    7 --
 board/freescale/m5275evb/u-boot.lds  |    6 --
 board/freescale/m54451evb/.gitignore |    1 +
 board/freescale/m54455evb/.gitignore |    1 +
Quoted 9 lines
 board/idmr/u-boot.lds                |    7 --
 boards.cfg                           |   21 ++++++-
 include/configs/M5329EVB.h           |    8 +-
 23 files changed, 50 insertions(+), 203 deletions(-)  create mode
100644 board/freescale/m52277evb/.gitignore
 create mode 100644 board/freescale/m5235evb/.gitignore
 create mode 100644 board/freescale/m54451evb/.gitignore
 create mode 100644 board/freescale/m54455evb/.gitignore
Quoted 2 lines

[Jin Zhengxiong-R64188]
Please remove the unused git information from the patch. Thanks.

Quoted 8 lines

I agree with your other comments, but what sort of "unused git information" are you referring to here?

There is no "unused git information" in this patch. It is a proper patch generated by git-format-patch and submitted using git-send-email.

There is nothing that should be changed in the format.

[Jin Zhengxiong-R64188]
Ok, Thanks a lot, I had thought that the .gitignore which ignore the lds files are empty files.

Best Regards,
Jason

#5 lore raw

PATCH 1/2 coldfire: Fix compilation for most coldfire boards

Quoted 69 lines · On 09/09/2011 10:18 AM, Jin Zhengxiong-R64188 wrote:
Quoted 69 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Friday, September 09, 2011 3:26 PM
To: Jin Zhengxiong-R64188
Cc: Stany MARCEL; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Dear Jin Zhengxiong-R64188,

In message <BE72CBA69B1D6F44B0680DF984332A32253A40@039-SN1MPN1-

Quoted 14 lines · 005.039d.mgd.msft.net> you wrote:
Quoted 14 lines

From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Monday, September 05, 2011 9:29 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Many different patches to fix compilation of coldfire boards. Compilation could now be done in a different directory from the sources one. Simple board config switched from Makefile to boards.cfg EP2500 broken board removed from boards.cfg. Link files corrected to remove zlib.o and multiple defined symbols.

Quoted 4 lines
Quoted 4 lines
---
 MAKEALL                              |    6 --
 Makefile                             |  124 +++++-------------------------

----

Quoted 27 lines
Quoted 18 lines
 arch/m68k/cpu/mcf5227x/Makefile      |    2 +-
 arch/m68k/cpu/mcf523x/Makefile       |    2 +-
 arch/m68k/cpu/mcf532x/Makefile       |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile      |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile    |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds    |    8 --
 board/cobra5272/u-boot.lds           |    7 --
 board/esd/tasreg/u-boot.lds          |    7 --
 board/freescale/m52277evb/.gitignore |    1 +
 board/freescale/m5235evb/.gitignore  |    1 +
 board/freescale/m5235evb/u-boot.16   |    8 --
 board/freescale/m5235evb/u-boot.32   |   16 -----
 board/freescale/m5249evb/u-boot.lds  |    7 --
 board/freescale/m5253evbe/u-boot.lds |    7 --
 board/freescale/m5272c3/u-boot.lds   |    7 --
 board/freescale/m5275evb/u-boot.lds  |    6 --
 board/freescale/m54451evb/.gitignore |    1 +
 board/freescale/m54455evb/.gitignore |    1 +
Quoted 9 lines
 board/idmr/u-boot.lds                |    7 --
 boards.cfg                           |   21 ++++++-
 include/configs/M5329EVB.h           |    8 +-
 23 files changed, 50 insertions(+), 203 deletions(-)  create mode
100644 board/freescale/m52277evb/.gitignore
 create mode 100644 board/freescale/m5235evb/.gitignore
 create mode 100644 board/freescale/m54451evb/.gitignore
 create mode 100644 board/freescale/m54455evb/.gitignore
Quoted 2 lines

[Jin Zhengxiong-R64188]
Please remove the unused git information from the patch. Thanks.

I agree with your other comments, but what sort of "unused git information" are you referring to here?

There is no "unused git information" in this patch. It is a proper patch generated by git-format-patch and submitted using git-send-email.

Quoted 9 lines
Quoted 2 lines

There is nothing that should be changed in the format.

[Jin Zhengxiong-R64188]
Ok, Thanks a lot, I had thought that the .gitignore which ignore the lds files are empty files.

Best Regards,
Jason

Hello,

Sorry for my late reply, I was working on another subject.

My work is now separated in different patches and I also made some additional improvements.

What is the best way to submit this new work ? I don't know if it must be a version two of the previous patch or a new set of patches.

Here is the new list of patches' subjects:
* ColdFire: Cleanup lds files for multiple defined symbols
* ColdFire: Add $(obj) before cpu lib to correct build
* ColdFire: Move boards with simple _config rules to boards.cfg
* ColdFire: Merge differentiated linking files into a sigle one by board
* ColdFire: Clean Makefile _config rules
* ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined

For Information, for ColdFire I can only test with a M5485EVB. For other ColdFire boards I can only verify that the build is performed correctly.

Best Regards,

Stany

#6 lore raw

PATCH 1/2 coldfire: Fix compilation for most coldfire boards

Quoted 70 lines
Quoted 16 lines
Quoted 16 lines

In message <BE72CBA69B1D6F44B0680DF984332A32253A40@039-SN1MPN1-

Quoted 14 lines · 005.039d.mgd.msft.net> you wrote:
Quoted 14 lines

From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Monday, September 05, 2011 9:29 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Many different patches to fix compilation of coldfire boards. Compilation could now be done in a different directory from the sources one. Simple board config switched from Makefile to boards.cfg EP2500 broken board removed from boards.cfg. Link files corrected to remove zlib.o and multiple defined symbols.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
---
 MAKEALL                              |    6 --
 Makefile                             |  124 +++++------------------------

-

Quoted 34 lines
Quoted 34 lines

----

Quoted 27 lines
Quoted 18 lines
 arch/m68k/cpu/mcf5227x/Makefile      |    2 +-
 arch/m68k/cpu/mcf523x/Makefile       |    2 +-
 arch/m68k/cpu/mcf532x/Makefile       |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile      |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile    |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds    |    8 --
 board/cobra5272/u-boot.lds           |    7 --
 board/esd/tasreg/u-boot.lds          |    7 --
 board/freescale/m52277evb/.gitignore |    1 +
 board/freescale/m5235evb/.gitignore  |    1 +
 board/freescale/m5235evb/u-boot.16   |    8 --
 board/freescale/m5235evb/u-boot.32   |   16 -----
 board/freescale/m5249evb/u-boot.lds  |    7 --
 board/freescale/m5253evbe/u-boot.lds |    7 --
 board/freescale/m5272c3/u-boot.lds   |    7 --
 board/freescale/m5275evb/u-boot.lds  |    6 --
 board/freescale/m54451evb/.gitignore |    1 +
 board/freescale/m54455evb/.gitignore |    1 +
Quoted 9 lines
 board/idmr/u-boot.lds                |    7 --
 boards.cfg                           |   21 ++++++-
 include/configs/M5329EVB.h           |    8 +-
 23 files changed, 50 insertions(+), 203 deletions(-)  create mode
100644 board/freescale/m52277evb/.gitignore
 create mode 100644 board/freescale/m5235evb/.gitignore
 create mode 100644 board/freescale/m54451evb/.gitignore
 create mode 100644 board/freescale/m54455evb/.gitignore
Quoted 2 lines

[Jin Zhengxiong-R64188]
Please remove the unused git information from the patch. Thanks.

I agree with your other comments, but what sort of "unused git information" are you referring to here?

Quoted 7 lines
Quoted 5 lines

There is no "unused git information" in this patch. It is a proper patch generated by git-format-patch and submitted using git-send-email.

There is nothing that should be changed in the format.

[Jin Zhengxiong-R64188]
Ok, Thanks a lot, I had thought that the .gitignore which ignore the lds

files are empty files.

Quoted 5 lines

Best Regards,
Jason

Hello,

Quoted 8 lines

Sorry for my late reply, I was working on another subject.

My work is now separated in different patches and I also made some additional improvements.

What is the best way to submit this new work ? I don't know if it must be a version two of the previous patch or a new set of patches.

[Jin Zhengxiong-R64188]
My personal suggestion is to send a new set of patches, Thanks.

Quoted 8 lines

Here is the new list of patches' subjects:
* ColdFire: Cleanup lds files for multiple defined symbols
* ColdFire: Add $(obj) before cpu lib to correct build
* ColdFire: Move boards with simple _config rules to boards.cfg
* ColdFire: Merge differentiated linking files into a sigle one by board
* ColdFire: Clean Makefile _config rules
* ColdFire: Fix compilation with CONFIG_SYS_DRAMSZ1 defined

[Jin Zhengxiong-R64188]
I cannot see the details of your patches, So I don't know whether
it's good idea to split the _config cleanup to two patches, and split the lds clean up to two patches.

BTW. Could you please try to use CONFIG_SYS_LDSCRIPT to avoid copying the lds file? Thanks.

Quoted 2 lines

For Information, for ColdFire I can only test with a M5485EVB. For other ColdFire boards I can only verify that the build is performed correctly.

[Jin Zhengxiong-R64188]
OK, Thanks.

BTW. Please try to compose your email with plaintext, Thanks.

Jason

#7 lore raw

PATCH 1/2 coldfire: Fix compilation for most coldfire boards

In reply to Wolfgang Denk
Quoted 78 lines

-----Original Message-----
From: Jin Zhengxiong-R64188
Sent: Friday, September 09, 2011 4:19 PM
To: 'Wolfgang Denk'
Cc: Stany MARCEL; u-boot at lists.denx.de
Subject: RE: [U-Boot] [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Quoted 8 lines

-----Original Message-----
From: Wolfgang Denk [mailto:wd at denx.de]
Sent: Friday, September 09, 2011 3:26 PM
To: Jin Zhengxiong-R64188
Cc: Stany MARCEL; u-boot at lists.denx.de
Subject: Re: [U-Boot] [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Quoted 22 lines

Dear Jin Zhengxiong-R64188,

In message <BE72CBA69B1D6F44B0680DF984332A32253A40@039-SN1MPN1-

Quoted 18 lines · 005.039d.mgd.msft.net> you wrote:
Quoted 18 lines

From: Stany MARCEL [mailto:stany.marcel at novasys-ingenierie.com]
Sent: Monday, September 05, 2011 9:29 PM
To: u-boot at lists.denx.de
Cc: Jin Zhengxiong-R64188; Jin Zhengxiong-R64188; Stany MARCEL
Subject: [PATCH 1/2] coldfire: Fix compilation for most coldfire boards

Many different patches to fix compilation of coldfire boards. Compilation could now be done in a different directory from the sources one. Simple board config switched from Makefile to boards.cfg EP2500 broken board removed from boards.cfg. Link files corrected to remove zlib.o and multiple defined symbols.

---
 MAKEALL                              |    6 --
 Makefile                             |  124 +++++-----------------------

--

Quoted 28 lines

----

Quoted 27 lines
Quoted 27 lines
 arch/m68k/cpu/mcf5227x/Makefile      |    2 +-
 arch/m68k/cpu/mcf523x/Makefile       |    2 +-
 arch/m68k/cpu/mcf532x/Makefile       |    2 +-
 arch/m68k/cpu/mcf5445x/Makefile      |    2 +-
 arch/m68k/cpu/mcf547x_8x/Makefile    |    2 +-
 board/BuS/EB+MCF-EV123/u-boot.lds    |    8 --
 board/cobra5272/u-boot.lds           |    7 --
 board/esd/tasreg/u-boot.lds          |    7 --
 board/freescale/m52277evb/.gitignore |    1 +
 board/freescale/m5235evb/.gitignore  |    1 +
 board/freescale/m5235evb/u-boot.16   |    8 --
 board/freescale/m5235evb/u-boot.32   |   16 -----
 board/freescale/m5249evb/u-boot.lds  |    7 --
 board/freescale/m5253evbe/u-boot.lds |    7 --
 board/freescale/m5272c3/u-boot.lds   |    7 --
 board/freescale/m5275evb/u-boot.lds  |    6 --
 board/freescale/m54451evb/.gitignore |    1 +
 board/freescale/m54455evb/.gitignore |    1 +
 board/idmr/u-boot.lds                |    7 --
 boards.cfg                           |   21 ++++++-
 include/configs/M5329EVB.h           |    8 +-
 23 files changed, 50 insertions(+), 203 deletions(-)  create mode
100644 board/freescale/m52277evb/.gitignore
 create mode 100644 board/freescale/m5235evb/.gitignore
 create mode 100644 board/freescale/m54451evb/.gitignore
 create mode 100644 board/freescale/m54455evb/.gitignore
Quoted 4 lines
Quoted 2 lines

[Jin Zhengxiong-R64188]
Please remove the unused git information from the patch. Thanks.

I agree with your other comments, but what sort of "unused git information"

are

Quoted 2 lines

you referring to here?

Quoted 8 lines
Quoted 5 lines

There is no "unused git information" in this patch. It is a proper patch generated by git-format-patch and submitted using git-send-email.

There is nothing that should be changed in the format.

[Jin Zhengxiong-R64188]
Ok, Thanks a lot, I had thought that the .gitignore which ignore the lds files are empty files.

[Jin Zhengxiong-R64188]
I still think that we cannot add an .gitignore for the temporary lds file. Instead, We need to delete this file in the make clean. Thanks a lot.

Best Regards,
Jason