Ok, here is the patch with that change Thanks!.
On Tue, Sep 9, 2014 at 10:39 AM, Sebastian Huber < sebastian.hu...@embedded-brains.de> wrote: > On 09/09/14 15:29, Federico Casares wrote: > >> The config file for the "ETH bsp" (linkcmds.lpc1768_mbed_ahb_ram_eth) >> exhibit >> changes in the MEMORY definition, some REGION_ALIAS, and adds the ".eth" >> section. >> >> Consequently, we think this file represents an specific configuration for >> that >> BSP, which is different from the others, and the changes involve all >> parts of >> the config. >> >> We think that splitting the MEMORY mapping or the REGIONS_ALIAS will make >> the >> config file quite unclear. >> >> So, please confirm us whether you want to do the changes anyway? >> > > The problem are the *.cfg files. They are all identical except the name. > Other BSPs use a *.inc file to avoid the copy and paste. > > > -- > Sebastian Huber, embedded brains GmbH > > Address : Dornierstr. 4, D-82178 Puchheim, Germany > Phone : +49 89 189 47 41-16 > Fax : +49 89 189 47 41-09 > E-Mail : sebastian.hu...@embedded-brains.de > PGP : Public key available on request. > > Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG. > -- [image: http://www.tallertechnologies.com] <http://www.tallertechnologies.com> Casares, Federico Sr. Software Engineer Taller Technologies Argentina San Lorenzo 47, 3rd Floor, Office 5 Córdoba, Argentina
From a00110200aa00f50e71cba00430a645989de4a16 Mon Sep 17 00:00:00 2001 From: Federico Casares <federico.casa...@tallertechnologies.com> Date: Tue, 9 Sep 2014 10:48:21 -0300 Subject: [PATCH] arm/lpc176x: Adding "eth" linker script section. --- c/src/lib/libbsp/arm/lpc176x/Makefile.am | 1 + .../lpc176x/make/custom/lpc1768_mbed_ahb_ram.cfg | 16 +-------- .../custom/lpc1768_mbed_ahb_ram_eth-testsuite.tcfg | 23 +++++++++++++ .../make/custom/lpc1768_mbed_ahb_ram_eth.cfg | 5 +++ .../startup/linkcmds.lpc1768_mbed_ahb_ram_eth | 39 ++++++++++++++++++++++ 5 files changed, 69 insertions(+), 15 deletions(-) create mode 100644 c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth-testsuite.tcfg create mode 100644 c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth.cfg create mode 100644 c/src/lib/libbsp/arm/lpc176x/startup/linkcmds.lpc1768_mbed_ahb_ram_eth diff --git a/c/src/lib/libbsp/arm/lpc176x/Makefile.am b/c/src/lib/libbsp/arm/lpc176x/Makefile.am index 3a1d4b2..36711a6 100644 --- a/c/src/lib/libbsp/arm/lpc176x/Makefile.am +++ b/c/src/lib/libbsp/arm/lpc176x/Makefile.am @@ -69,6 +69,7 @@ project_lib_DATA += startup/linkcmds EXTRA_DIST = EXTRA_DIST += startup/linkcmds.lpc1768_mbed EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram +EXTRA_DIST += startup/linkcmds.lpc1768_mbed_ahb_ram_eth # ---------------------------- diff --git a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram.cfg b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram.cfg index 4cf24c8..e187d1f 100644 --- a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram.cfg +++ b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram.cfg @@ -2,18 +2,4 @@ # Config file for mbed LPC1768 board. # -include $(RTEMS_ROOT)/make/custom/default.cfg - -RTEMS_CPU = arm - -CPU_CFLAGS = -march=armv7-m -mthumb - -CFLAGS_OPTIMIZE_V = -O2 -ggdb3 -DNDEBUG -BINEXT?=.bin -# This defines the operations performed on the linked executable. -# is currently required. -define bsp-post-link - $(OBJCOPY) -O binary --strip-all \ - $(basename $@)$(EXEEXT) $(basename $@)$(BINEXT) - $(SIZE) $(basename $@)$(EXEEXT) -endef +include $(RTEMS_ROOT)/make/custom/lpc1768_mbed.cfg diff --git a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth-testsuite.tcfg b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth-testsuite.tcfg new file mode 100644 index 0000000..8d4c215 --- /dev/null +++ b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth-testsuite.tcfg @@ -0,0 +1,23 @@ +# +# lpc1768_mbed_ahb_ram_eth RTEMS Test Database +# +# Format is one line per test that is _NOT_ built. +# + +fileio +cdtest +flashdisk01 +fsdosfsname01 +jffs2_fserror +jffs2_fslink +jffs2_fspatheval +jffs2_fspermission +jffs2_fsrdwr +jffs2_fssymlink +jffs2_fstime +mghttpd01 +pppd +spstkalloc02 +utf8proc01 +iostream +rtems++ diff --git a/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth.cfg b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth.cfg new file mode 100644 index 0000000..e187d1f --- /dev/null +++ b/c/src/lib/libbsp/arm/lpc176x/make/custom/lpc1768_mbed_ahb_ram_eth.cfg @@ -0,0 +1,5 @@ +# +# Config file for mbed LPC1768 board. +# + +include $(RTEMS_ROOT)/make/custom/lpc1768_mbed.cfg diff --git a/c/src/lib/libbsp/arm/lpc176x/startup/linkcmds.lpc1768_mbed_ahb_ram_eth b/c/src/lib/libbsp/arm/lpc176x/startup/linkcmds.lpc1768_mbed_ahb_ram_eth new file mode 100644 index 0000000..eecb6b1 --- /dev/null +++ b/c/src/lib/libbsp/arm/lpc176x/startup/linkcmds.lpc1768_mbed_ahb_ram_eth @@ -0,0 +1,39 @@ +/* LPC1768 OEM Board from Embedded Artists */ + +MEMORY { + ROM_INT (RX) : ORIGIN = 0x00000000, LENGTH = 512k + RAM_INT (AIW) : ORIGIN = 0x10000000, LENGTH = 32k + RAM_AHB1 (AIW) : ORIGIN = 0x2007C000, LENGTH = 16k + RAM_AHB2 (AIW) : ORIGIN = 0x20080000, LENGTH = 16k +} + +REGION_ALIAS ("REGION_START", ROM_INT); +REGION_ALIAS ("REGION_VECTOR", RAM_INT); +REGION_ALIAS ("REGION_TEXT", ROM_INT); +REGION_ALIAS ("REGION_TEXT_LOAD", ROM_INT); +REGION_ALIAS ("REGION_RODATA", ROM_INT); +REGION_ALIAS ("REGION_RODATA_LOAD", ROM_INT); +REGION_ALIAS ("REGION_DATA", RAM_INT); +REGION_ALIAS ("REGION_DATA_LOAD", ROM_INT); +REGION_ALIAS ("REGION_FAST_TEXT", RAM_INT); +REGION_ALIAS ("REGION_FAST_TEXT_LOAD", ROM_INT); +REGION_ALIAS ("REGION_FAST_DATA", RAM_INT); +REGION_ALIAS ("REGION_FAST_DATA_LOAD", ROM_INT); +REGION_ALIAS ("REGION_BSS", RAM_AHB1); +REGION_ALIAS ("REGION_WORK", RAM_INT); +REGION_ALIAS ("REGION_STACK", RAM_INT); +REGION_ALIAS ("REGION_ETH", RAM_AHB2); + +bsp_stack_main_size = DEFINED (bsp_stack_main_size) ? bsp_stack_main_size : 1024; +bsp_stack_main_size = ALIGN (bsp_stack_main_size, bsp_stack_align); + +SECTIONS { + .eth (NOLOAD) : ALIGN_WITH_INPUT { + bsp_section_eth_begin = .; + *(.eth) + bsp_section_eth_end = .; + } > REGION_ETH AT > REGION_ETH + bsp_section_eth_size = bsp_section_eth_end - bsp_section_eth_begin; +} + +INCLUDE linkcmds.armv7m -- 1.9.1
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel