2009-11-03 Ralf Corsépius <ralf.corsepius@rtems.org>

* configure.ac: Add RTEMS_BSP_LINKCMDS.
	* make/custom/lpc24xx.inc: Remove LDFLAGS.
	* make/custom/lpc24xx_ea.cfg: Remove LPC24XX_LINKCMDS.
	* make/custom/lpc24xx_ncs_ram.cfg: Remove LPC24XX_LINKCMDS.
	* make/custom/lpc24xx_ncs_rom_ext.cfg: Remove LPC24XX_LINKCMDS.
	* make/custom/lpc24xx_ncs_rom_int.cfg: Remove LPC24XX_LINKCMDS.
	* startup/linkcmds: Remove.
	* Makefile.am: Rework linkcmds handling.
This commit is contained in:
Ralf Corsepius
2009-11-03 11:34:46 +00:00
parent 70d7a36e4c
commit 7187942f4a
10 changed files with 22 additions and 57 deletions

View File

@@ -1,3 +1,14 @@
2009-11-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Add RTEMS_BSP_LINKCMDS.
* make/custom/lpc24xx.inc: Remove LDFLAGS.
* make/custom/lpc24xx_ea.cfg: Remove LPC24XX_LINKCMDS.
* make/custom/lpc24xx_ncs_ram.cfg: Remove LPC24XX_LINKCMDS.
* make/custom/lpc24xx_ncs_rom_ext.cfg: Remove LPC24XX_LINKCMDS.
* make/custom/lpc24xx_ncs_rom_int.cfg: Remove LPC24XX_LINKCMDS.
* startup/linkcmds: Remove.
* Makefile.am: Rework linkcmds handling.
2009-10-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* clock/clock-config.c, misc/dma.c, network/network.c,

View File

@@ -55,12 +55,12 @@ libbspstart_a_SOURCES = ../shared/start/start.S
project_lib_DATA = start.$(OBJEXT)
dist_project_lib_DATA += ../shared/startup/linkcmds.base \
startup/linkcmds \
startup/linkcmds.lpc24xx_ea \
startup/linkcmds.lpc24xx_ncs_rom_int \
startup/linkcmds.lpc24xx_ncs_rom_ext \
startup/linkcmds.lpc24xx_ncs_ram
project_lib_DATA += startup/linkcmds
project_lib_DATA += ../shared/startup/linkcmds.base
EXTRA_DIST = startup/linkcmds.lpc24xx_ea
EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_int
EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_rom_ext
EXTRA_DIST += startup/linkcmds.lpc24xx_ncs_ram
###############################################################################
# LibBSP #

View File

@@ -70,6 +70,7 @@ RTEMS_BSPOPTS_SET([BSP_START_RESET_VECTOR],[lpc24xx_ncs_rom_ext],[0x80000040])
RTEMS_BSPOPTS_HELP([BSP_START_RESET_VECTOR],[reset vector address for BSP start])
RTEMS_BSP_CLEANUP_OPTIONS(0, 0)
RTEMS_BSP_LINKCMDS
AC_CONFIG_FILES([Makefile])
AC_OUTPUT

View File

@@ -11,5 +11,3 @@ RTEMS_CPU = arm
CPU_CFLAGS = -mcpu=arm7tdmi-s -mstructure-size-boundary=8 -mthumb
CFLAGS_OPTIMIZE_V = -Os -g
LDFLAGS += -qnolinkcmds -T $(LPC24XX_LINKCMDS)

View File

@@ -4,8 +4,6 @@
# $Id$
#
LPC24XX_LINKCMDS = linkcmds.lpc24xx_ea
include $(RTEMS_ROOT)/make/custom/lpc24xx.inc
# define bsp-post-link

View File

@@ -4,6 +4,4 @@
# $Id$
#
LPC24XX_LINKCMDS = linkcmds.lpc24xx_ncs_ram
include $(RTEMS_ROOT)/make/custom/lpc24xx.inc

View File

@@ -4,6 +4,4 @@
# $Id$
#
LPC24XX_LINKCMDS = linkcmds.lpc24xx_ncs_rom_ext
include $(RTEMS_ROOT)/make/custom/lpc24xx.inc

View File

@@ -4,6 +4,4 @@
# $Id$
#
LPC24XX_LINKCMDS = linkcmds.lpc24xx_ncs_rom_int
include $(RTEMS_ROOT)/make/custom/lpc24xx.inc

View File

@@ -121,27 +121,11 @@ $(PROJECT_LIB)/start.$(OBJEXT): start.$(OBJEXT) $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/start.$(OBJEXT)
TMPINSTALL_FILES += $(PROJECT_LIB)/start.$(OBJEXT)
$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
TMPINSTALL_FILES += $(PROJECT_LIB)/linkcmds
$(PROJECT_LIB)/linkcmds.base: ../shared/startup/linkcmds.base $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.base
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.base
$(PROJECT_LIB)/linkcmds: startup/linkcmds $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds
$(PROJECT_LIB)/linkcmds.lpc24xx_ea: startup/linkcmds.lpc24xx_ea $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ea
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ea
$(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_int: startup/linkcmds.lpc24xx_ncs_rom_int $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_int
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_int
$(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_ext: startup/linkcmds.lpc24xx_ncs_rom_ext $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_ext
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_rom_ext
$(PROJECT_LIB)/linkcmds.lpc24xx_ncs_ram: startup/linkcmds.lpc24xx_ncs_ram $(PROJECT_LIB)/$(dirstamp)
$(INSTALL_DATA) $< $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_ram
PREINSTALL_FILES += $(PROJECT_LIB)/linkcmds.lpc24xx_ncs_ram

View File

@@ -1,21 +0,0 @@
MEMORY {
RAM_INT (AIW) : ORIGIN = 0x40000000, LENGTH = 64k
RAM_EXT (AIW) : ORIGIN = 0xa0000000, LENGTH = 32M
NIRVANA : ORIGIN = 0, LENGTH = 0
}
REGION_ALIAS ("REGION_START", RAM_EXT);
REGION_ALIAS ("REGION_VECTOR", RAM_INT);
REGION_ALIAS ("REGION_TEXT", RAM_EXT);
REGION_ALIAS ("REGION_TEXT_LOAD", RAM_EXT);
REGION_ALIAS ("REGION_RODATA", RAM_EXT);
REGION_ALIAS ("REGION_RODATA_LOAD", RAM_EXT);
REGION_ALIAS ("REGION_DATA", RAM_EXT);
REGION_ALIAS ("REGION_DATA_LOAD", RAM_EXT);
REGION_ALIAS ("REGION_FAST", RAM_INT);
REGION_ALIAS ("REGION_FAST_LOAD", RAM_EXT);
REGION_ALIAS ("REGION_BSS", RAM_EXT);
REGION_ALIAS ("REGION_WORK", RAM_EXT);
REGION_ALIAS ("REGION_STACK", RAM_INT);
INCLUDE linkcmds.base