Skip to content

Commit

Permalink
Merge pull request #3120 from gebart/pr/ldscripts-location
Browse files Browse the repository at this point in the history
cpu: Move ldscripts into separate directory
  • Loading branch information
haukepetersen committed May 30, 2015
2 parents 33752e4 + ba2d4a0 commit ec805b6
Show file tree
Hide file tree
Showing 27 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion boards/Makefile.include.cortexm_common
Original file line number Diff line number Diff line change
Expand Up @@ -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 -Wl,--fatal-warnings
export LINKFLAGS += $(CFLAGS_DEBUG) $(CFLAGS_CPU) $(CFLAGS_STYLE) -static -lgcc -nostartfiles

# use the nano-specs of the NewLib when available
Expand Down
2 changes: 1 addition & 1 deletion boards/msba2-common/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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 +=
Expand Down
2 changes: 1 addition & 1 deletion cpu/atmega2560/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ MEMORY
ram (rwx) : ORIGIN = 0x20004000, LENGTH = 16K
}

INCLUDE cc2538_linkerscript.ld
INCLUDE cc2538.ld

/* @} */
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ MEMORY
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
}

INCLUDE cc2538_linkerscript.ld
INCLUDE cc2538.ld

/* @} */
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ MEMORY
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
}

INCLUDE cc2538_linkerscript.ld
INCLUDE cc2538.ld

/* @} */
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ MEMORY
ram (rwx) : ORIGIN = 0x20000000, LENGTH = 32K
}

INCLUDE cc2538_linkerscript.ld
INCLUDE cc2538.ld

/* @} */
2 changes: 1 addition & 1 deletion cpu/kw2x/Makefile.include
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit ec805b6

Please sign in to comment.