aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPerry Hung <iperry@gmail.com>2011-02-27 14:53:53 -0500
committerPerry Hung <iperry@gmail.com>2011-02-27 15:50:27 -0500
commit43c5092d944ee1aa1424f2743c31bf33cb860c27 (patch)
tree00996537b1b998d022bc1d0e71cc6864c3b23f42
parent4e90248a2e81ec7bd8d3cfa858cef4a045cc1003 (diff)
downloadlibrambutan-43c5092d944ee1aa1424f2743c31bf33cb860c27.tar.gz
librambutan-43c5092d944ee1aa1424f2743c31bf33cb860c27.zip
Generate map file
-rw-r--r--build-targets.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/build-targets.mk b/build-targets.mk
index 0718b15..207d324 100644
--- a/build-targets.mk
+++ b/build-targets.mk
@@ -11,7 +11,7 @@ library: $(BUILD_PATH)/libmaple.a
.PHONY: library
$(BUILD_PATH)/$(BOARD).elf: $(BUILDDIRS) $(TGT_BIN) $(BUILD_PATH)/main.o
- $(SILENT_LD) $(CXX) $(LDFLAGS) -o $@ $(TGT_BIN) $(BUILD_PATH)/main.o
+ $(SILENT_LD) $(CXX) $(LDFLAGS) -o $@ $(TGT_BIN) $(BUILD_PATH)/main.o -Wl,-Map,$(BUILD_PATH)/$(BOARD).map
$(BUILD_PATH)/$(BOARD).bin: $(BUILD_PATH)/$(BOARD).elf
$(SILENT_OBJCOPY) $(OBJCOPY) -v -Obinary $(BUILD_PATH)/$(BOARD).elf $@ 1>/dev/null