diff options
author | Sathees Balya <sathees.balya@arm.com> | 2018-11-14 11:59:12 +0000 |
---|---|---|
committer | Sathees Balya <sathees.balya@arm.com> | 2018-11-22 17:26:57 +0000 |
commit | 582133a8075b4795e6886c4b711626095f5a80f3 (patch) | |
tree | 09ccd86fd36296b498e5b7353b1ced7d65e225c3 /lib | |
parent | 032e3a6cd7f866da6a7ef9f6e05dc64649def528 (diff) | |
download | trusted-firmware-a-582133a8075b4795e6886c4b711626095f5a80f3.tar.gz |
romlib: Add map file generation
Change-Id: I1f377d2d94c0fe8d2d9e62614f4a8e2dfcd9e745
Signed-off-by: Sathees Balya <sathees.balya@arm.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/romlib/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/romlib/Makefile b/lib/romlib/Makefile index 46b920682d..00dde31cdc 100644 --- a/lib/romlib/Makefile +++ b/lib/romlib/Makefile @@ -15,6 +15,7 @@ LIBS = -lmbedtls -lfdt -lc INC = $(INCLUDES:-I%=-I../../%) PPFLAGS = $(INC) $(DEFINES) -P -D__ASSEMBLY__ -D__LINKER__ -MD -MP -MT $(BUILD_DIR)/romlib.ld OBJS = $(BUILD_DIR)/jmptbl.o $(BUILD_DIR)/init.o +MAPFILE = ../../$(BUILD_PLAT)/romlib/romlib.map V ?= 0 ifeq ($(V),0) @@ -25,7 +26,7 @@ endif ifeq ($(DEBUG),1) CFLAGS := -g - LDFLAGS := -g + LDFLAGS := -g --gc-sections -O1 -Map=$(MAPFILE) endif |