arch: Fix linking of multiple preprocessed linker script files
Only the last item from the ARCHSCRIPT list was being suffixed with ".tmp". Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
This commit is contained in:
parent
fd8647d3dd
commit
f5c77933cb
@ -110,7 +110,7 @@ endif
|
|||||||
|
|
||||||
|
|
||||||
ARCHSCRIPT := $(call CONVERT_PATH,$(ARCHSCRIPT))
|
ARCHSCRIPT := $(call CONVERT_PATH,$(ARCHSCRIPT))
|
||||||
LDFLAGS += $(addprefix $(SCRIPT_OPT),$(ARCHSCRIPT).tmp) $(EXTRALINKCMDS)
|
LDFLAGS += $(addprefix $(SCRIPT_OPT),$(addsuffix .tmp,$(ARCHSCRIPT))) $(EXTRALINKCMDS)
|
||||||
LIBPATHS += $(LIBPATH_OPT) $(call CONVERT_PATH,$(TOPDIR)$(DELIM)staging)
|
LIBPATHS += $(LIBPATH_OPT) $(call CONVERT_PATH,$(TOPDIR)$(DELIM)staging)
|
||||||
|
|
||||||
BOARDMAKE = $(if $(wildcard board$(DELIM)Makefile),y,)
|
BOARDMAKE = $(if $(wildcard board$(DELIM)Makefile),y,)
|
||||||
|
@ -80,7 +80,7 @@ KBIN = libkarch$(LIBEXT)
|
|||||||
BIN = libarch$(LIBEXT)
|
BIN = libarch$(LIBEXT)
|
||||||
|
|
||||||
ARCHSCRIPT := $(call CONVERT_PATH,$(ARCHSCRIPT))
|
ARCHSCRIPT := $(call CONVERT_PATH,$(ARCHSCRIPT))
|
||||||
LDFLAGS += $(addprefix -T,$(ARCHSCRIPT).tmp) $(EXTRALINKCMDS)
|
LDFLAGS += $(addprefix -T,$(addsuffix .tmp,$(ARCHSCRIPT))) $(EXTRALINKCMDS)
|
||||||
|
|
||||||
ifeq ($(LD),$(CC))
|
ifeq ($(LD),$(CC))
|
||||||
LDSTARTGROUP ?= -Wl,--start-group
|
LDSTARTGROUP ?= -Wl,--start-group
|
||||||
|
@ -81,7 +81,7 @@ BIN = libarch$(LIBEXT)
|
|||||||
# Override in Make.defs if linker is not 'ld'
|
# Override in Make.defs if linker is not 'ld'
|
||||||
|
|
||||||
ARCHSCRIPT := $(call CONVERT_PATH,$(ARCHSCRIPT))
|
ARCHSCRIPT := $(call CONVERT_PATH,$(ARCHSCRIPT))
|
||||||
LDFLAGS += $(addprefix -T,$(ARCHSCRIPT).tmp) $(EXTRALINKCMDS)
|
LDFLAGS += $(addprefix -T,$(addsuffix .tmp,$(ARCHSCRIPT))) $(EXTRALINKCMDS)
|
||||||
|
|
||||||
ifeq ($(LD),$(CC))
|
ifeq ($(LD),$(CC))
|
||||||
LDSTARTGROUP ?= -Wl,--start-group
|
LDSTARTGROUP ?= -Wl,--start-group
|
||||||
|
Loading…
Reference in New Issue
Block a user