mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2026-01-01 01:41:18 +01:00
makefiles/arch/mips.inc.mk: use makefiles/utils lowercase function
Use the new common 'lowercase' function from makefiles/utils.
This commit is contained in:
parent
fe6d892969
commit
0303b96441
@ -3,9 +3,6 @@ export TARGET_ARCH ?= mips-mti-elf
|
||||
|
||||
export ABI=32
|
||||
|
||||
# Portable 'lowercase' func.
|
||||
lc = $(subst A,a,$(subst B,b,$(subst C,c,$(subst D,d,$(subst E,e,$(subst F,f,$(subst G,g,$(subst H,h,$(subst I,i,$(subst J,j,$(subst K,k,$(subst L,l,$(subst M,m,$(subst N,n,$(subst O,o,$(subst P,p,$(subst Q,q,$(subst R,r,$(subst S,s,$(subst T,t,$(subst U,u,$(subst V,v,$(subst W,w,$(subst X,x,$(subst Y,y,$(subst Z,z,$1))))))))))))))))))))))))))
|
||||
|
||||
# Default values for the linker script symbols listed below are
|
||||
# defined in the linker script.
|
||||
|
||||
@ -21,7 +18,7 @@ comma := ,
|
||||
# A bit of makefile magic:
|
||||
# foreach symbol in overridable ld-symbols :
|
||||
# If symbol has a value, produce a linker argument for that symbol.
|
||||
MIPS_HAL_LDFLAGS = $(foreach a,$(priv_symbols),$(if $($a),-Wl$(comma)--defsym$(comma)__$(call lc,$(a))=$($a)))
|
||||
MIPS_HAL_LDFLAGS = $(foreach a,$(priv_symbols),$(if $($a),-Wl$(comma)--defsym$(comma)__$(call lowercase,$(a))=$($a)))
|
||||
|
||||
ifeq ($(ROMABLE),1)
|
||||
MIPS_HAL_LDFLAGS += -T bootcode.ld
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user