Hosted: Output map files after linking.
Change-Id: I5ac64d781aaa1aa2b3157589f8e689c0d946a39f
This commit is contained in:
parent
856bb42037
commit
6d19275876
5 changed files with 6 additions and 5 deletions
|
@ -115,7 +115,7 @@ classes: $(R_OBJ) $(JAVA_OBJ)
|
||||||
|
|
||||||
|
|
||||||
$(BUILDDIR)/$(BINARY): $$(OBJ) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB) $(CPUFEAT_BUILD)/cpu-features.o
|
$(BUILDDIR)/$(BINARY): $$(OBJ) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB) $(CPUFEAT_BUILD)/cpu-features.o
|
||||||
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(LDOPTS) $(GLOBAL_LDOPTS)
|
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(LDOPTS) $(GLOBAL_LDOPTS) -Wl,-Map,$(BUILDDIR)/rockbox.map
|
||||||
$(call PRINTS,OC $(@F))$(OC) -S -x $@
|
$(call PRINTS,OC $(@F))$(OC) -S -x $@
|
||||||
|
|
||||||
$(BINLIB_DIR)/$(BINARY): $(BUILDDIR)/$(BINARY)
|
$(BINLIB_DIR)/$(BINARY): $(BUILDDIR)/$(BINARY)
|
||||||
|
|
|
@ -186,7 +186,7 @@ $(CODECDIR)/%.o: $(ROOTDIR)/apps/codecs/%.S
|
||||||
-I$(dir $<) $(CODECFLAGS) $(ASMFLAGS) -c $< -o $@
|
-I$(dir $<) $(CODECFLAGS) $(ASMFLAGS) -c $< -o $@
|
||||||
|
|
||||||
ifdef APP_TYPE
|
ifdef APP_TYPE
|
||||||
CODECLDFLAGS = $(SHARED_LDFLAG) # <-- from Makefile
|
CODECLDFLAGS = $(SHARED_LDFLAG) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map
|
||||||
CODECFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
|
CODECFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
|
||||||
else
|
else
|
||||||
CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map
|
CODECLDFLAGS = -T$(CODECLINK_LDS) -Wl,--gc-sections -Wl,-Map,$(CODECDIR)/$*.map
|
||||||
|
|
|
@ -32,7 +32,7 @@ ifndef APP_TYPE
|
||||||
IMGDEC_OUTLDS = $(IMGVBUILDDIR)/%.link
|
IMGDEC_OUTLDS = $(IMGVBUILDDIR)/%.link
|
||||||
IMGDEC_OVLFLAGS = -T$(IMGVBUILDDIR)/$*.link -Wl,--gc-sections -Wl,-Map,$(IMGVBUILDDIR)/$*.map
|
IMGDEC_OVLFLAGS = -T$(IMGVBUILDDIR)/$*.link -Wl,--gc-sections -Wl,-Map,$(IMGVBUILDDIR)/$*.map
|
||||||
else
|
else
|
||||||
IMGDEC_OVLFLAGS = $(PLUGINLDFLAGS)
|
IMGDEC_OVLFLAGS = $(PLUGINLDFLAGS) -Wl,-Map,$(IMGVBUILDDIR)/$*.map
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(IMGVBUILDDIR)/%.ovl: $(IMGDEC_OUTLDS)
|
$(IMGVBUILDDIR)/%.ovl: $(IMGDEC_OUTLDS)
|
||||||
|
|
|
@ -105,7 +105,7 @@ $(BUILDDIR)/apps/plugins/%.o: $(ROOTDIR)/apps/plugins/%.c
|
||||||
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@
|
$(call PRINTS,CC $(subst $(ROOTDIR)/,,$<))$(CC) -I$(dir $<) $(PLUGINFLAGS) -c $< -o $@
|
||||||
|
|
||||||
ifdef APP_TYPE
|
ifdef APP_TYPE
|
||||||
PLUGINLDFLAGS = $(SHARED_LDFLAG) # <-- from Makefile
|
PLUGINLDFLAGS = $(SHARED_LDFLAG) -Wl,-Map,$*.map
|
||||||
PLUGINFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
|
PLUGINFLAGS += $(SHARED_CFLAGS) # <-- from Makefile
|
||||||
else
|
else
|
||||||
PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map
|
PLUGINLDFLAGS = -T$(PLUGINLINK_LDS) -Wl,--gc-sections -Wl,-Map,$*.map
|
||||||
|
|
|
@ -31,7 +31,8 @@ $(SIMLIB): $$(SIMOBJ) $(UIBMP)
|
||||||
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|
$(call PRINTS,AR $(@F))$(AR) rcs $@ $^ >/dev/null
|
||||||
|
|
||||||
$(BUILDDIR)/$(BINARY): $$(OBJ) $(SIMLIB) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB)
|
$(BUILDDIR)/$(BINARY): $$(OBJ) $(SIMLIB) $(VOICESPEEXLIB) $(FIRMLIB) $(SKINLIB)
|
||||||
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(SIMLIB) $(LDOPTS) $(GLOBAL_LDOPTS)
|
$(call PRINTS,LD $(BINARY))$(CC) -o $@ $^ $(SIMLIB) $(LDOPTS) $(GLOBAL_LDOPTS) \
|
||||||
|
-Wl,-Map,$(BUILDDIR)/rockbox.map
|
||||||
|
|
||||||
$(BUILDDIR)/uisimulator/%.o: $(ROOTDIR)/uisimulator/%.c
|
$(BUILDDIR)/uisimulator/%.o: $(ROOTDIR)/uisimulator/%.c
|
||||||
$(SILENT)mkdir -p $(dir $@)
|
$(SILENT)mkdir -p $(dir $@)
|
||||||
|
|
Loading…
Reference in a new issue