mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 06:53:52 +01:00
cortexm: Move ldscripts into separate directory
Less clutter inside the cpu/* directories by placing linker scripts under cpu/*/ldscripts/CPUNAME.ld
This commit is contained in:
parent
68ee0f7c77
commit
c09a8484e2
@ -16,7 +16,7 @@ export CFLAGS_OPT ?= -Os
|
||||
export CFLAGS += $(CFLAGS_CPU) $(CFLAGS_STYLE) $(CFLAGS_LINK) $(CFLAGS_DBG) $(CFLAGS_OPT)
|
||||
|
||||
export ASFLAGS += $(CFLAGS_CPU) $(CFLAGS_DEBUG)
|
||||
export LINKFLAGS += -L$(RIOTCPU)/$(CPU) -T$(RIOTCPU)/$(CPU)/$(CPU_MODEL)_linkerscript.ld
|
||||
export LINKFLAGS += -L$(RIOTCPU)/$(CPU)/ldscripts -T$(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL).ld
|
||||
export LINKFLAGS += $(CFLAGS_DEBUG) $(CFLAGS_CPU) $(CFLAGS_STYLE) -static -lgcc -nostartfiles
|
||||
|
||||
# use the nano-specs of the NewLib when available
|
||||
|
||||
@ -15,7 +15,7 @@ export SIZE = $(PREFIX)size
|
||||
export OBJCOPY = $(PREFIX)objcopy
|
||||
FLASHER = lpc2k_pgm
|
||||
TERMPROG ?= $(RIOTBASE)/dist/tools/pyterm/pyterm
|
||||
LINKFLAGS += -gdwarf-2 -mcpu=arm7tdmi-s -static -lgcc -nostartfiles -T$(RIOTBASE)/cpu/$(CPU)/linkerscript.x -Wl,--gc-sections
|
||||
LINKFLAGS += -gdwarf-2 -mcpu=arm7tdmi-s -static -lgcc -nostartfiles -T$(RIOTBASE)/cpu/$(CPU)/ldscripts/$(CPU).ld -Wl,--gc-sections
|
||||
|
||||
# unwanted (CXXUWFLAGS) and extra (CXXEXFLAGS) flags for c++
|
||||
export CXXUWFLAGS +=
|
||||
|
||||
@ -9,7 +9,7 @@ export USEMODULE += atmega_common
|
||||
export ATMEGA_COMMON = $(RIOTCPU)/atmega_common/
|
||||
|
||||
# define the linker script to use for this CPU
|
||||
#export LINKERSCRIPT = $(RIOTCPU)/$(CPU)/atmega2560_linkerscript.ld
|
||||
#export LINKERSCRIPT = $(RIOTCPU)/$(CPU)/ldscripts/atmega2560.ld
|
||||
|
||||
# include CPU specific includes
|
||||
export INCLUDES += -I$(RIOTCPU)/$(CPU)/include
|
||||
|
||||
@ -25,6 +25,6 @@ MEMORY
|
||||
ram (rwx) : ORIGIN = 0x20004000, LENGTH = 16K
|
||||
}
|
||||
|
||||
INCLUDE cc2538_linkerscript.ld
|
||||
INCLUDE cc2538.ld
|
||||
|
||||
/* @} */
|
||||
@ -26,6 +26,6 @@ MEMORY
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||
}
|
||||
|
||||
INCLUDE cc2538_linkerscript.ld
|
||||
INCLUDE cc2538.ld
|
||||
|
||||
/* @} */
|
||||
@ -26,6 +26,6 @@ MEMORY
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||
}
|
||||
|
||||
INCLUDE cc2538_linkerscript.ld
|
||||
INCLUDE cc2538.ld
|
||||
|
||||
/* @} */
|
||||
@ -24,6 +24,6 @@ MEMORY
|
||||
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
|
||||
}
|
||||
|
||||
INCLUDE cc2538_linkerscript.ld
|
||||
INCLUDE cc2538.ld
|
||||
|
||||
/* @} */
|
||||
@ -23,7 +23,7 @@ include $(KINETIS_COMMON)Makefile.include
|
||||
|
||||
export LINKFLAGS += -L$(RIOTCPU)/kinetis_common/ldscripts
|
||||
# define the linker script to use for this CPU
|
||||
export LINKERSCRIPT = $(RIOTCPU)/$(CPU)/$(CPU_MODEL)_linkerscript.ld
|
||||
export LINKERSCRIPT = $(RIOTCPU)/$(CPU)/ldscripts/$(CPU_MODEL).ld
|
||||
|
||||
#export the CPU model
|
||||
MODEL = $(shell echo $(CPU_MODEL)|tr 'a-z' 'A-Z')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user