[make] add ability to set EXTRA_LINKER_SCRIPTS in modules
This allows for individual modules to extend the main linker script, primarily to add their own sections to interate over. Remove the main shared_* linker scripts.
This commit is contained in:
@@ -69,7 +69,7 @@ ARCH_CPPFLAGS :=
|
||||
ARCH_ASMFLAGS :=
|
||||
|
||||
# top level rule
|
||||
all:: $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).sym.sorted $(OUTELF).size
|
||||
all:: $(OUTBIN) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).sym.sorted $(OUTELF).size $(OUTELF).dump
|
||||
|
||||
# master module object list
|
||||
ALLOBJS_MODULE :=
|
||||
@@ -111,6 +111,9 @@ EXTRA_CLEANDEPS :=
|
||||
# any objects you put here get linked with the final image
|
||||
EXTRA_OBJS :=
|
||||
|
||||
# any extra linker scripts to be put on the command line
|
||||
EXTRA_LINKER_SCRIPTS :=
|
||||
|
||||
# if someone defines this, the build id will be pulled into lib/version
|
||||
BUILDID ?=
|
||||
|
||||
@@ -231,7 +234,7 @@ $(info GLOBAL_OPTFLAGS = $(GLOBAL_OPTFLAGS))
|
||||
$(ALLOBJS): $(GLOBAL_SRCDEPS)
|
||||
|
||||
clean: $(EXTRA_CLEANDEPS)
|
||||
rm -f $(ALLOBJS) $(DEPS) $(GENERATED) $(OUTBIN) $(OUTELF) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).sym.sorted $(OUTELF).size $(OUTELF).hex
|
||||
rm -f $(ALLOBJS) $(DEPS) $(GENERATED) $(OUTBIN) $(OUTELF) $(OUTELF).lst $(OUTELF).debug.lst $(OUTELF).sym $(OUTELF).sym.sorted $(OUTELF).size $(OUTELF).hex $(OUTELF).dump
|
||||
|
||||
install: all
|
||||
scp $(OUTBIN) 192.168.0.4:/tftproot
|
||||
|
||||
Reference in New Issue
Block a user