summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2016-07-24 07:51:24 -0700
committerLee Leahy <leroy.p.leahy@intel.com>2016-07-26 16:16:37 +0200
commit4cfde2a389ff348137db9c89db2e7517d62fe608 (patch)
tree8fd32a61467278e41a1d52f4b10291c4635ccbc1 /src
parent99f1b2f7553dbb6767b76aaf1b0dddeaaf67eb2d (diff)
downloadcoreboot-4cfde2a389ff348137db9c89db2e7517d62fe608.tar.xz
arch/x86: Generate a map file for the postcar stage
Place a map file for the postcar stage and place it into build/cbfs/fallback. TEST=Build and run on Galileo Gen2 Change-Id: I349c06e3c610db5b3f2511083208db27110c34d0 Signed-off-by: Lee Leahy <leroy.p.leahy@intel.com> Reviewed-on: https://review.coreboot.org/15845 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/Makefile.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/x86/Makefile.inc b/src/arch/x86/Makefile.inc
index 386efd97fe..bede41eb6f 100644
--- a/src/arch/x86/Makefile.inc
+++ b/src/arch/x86/Makefile.inc
@@ -287,6 +287,8 @@ postcar-y += memlayout.ld
postcar-$(CONFIG_X86_TOP4G_BOOTMEDIA_MAP) += mmap_boot.c
postcar-$(CONFIG_COLLECT_TIMESTAMPS) += timestamp.c
+LDFLAGS_postcar += -Map $(objcbfs)/postcar.map
+
$(objcbfs)/postcar.debug: $$(postcar-objs)
@printf " LINK $(subst $(obj)/,,$(@))\n"
$(LD_postcar) $(LDFLAGS_postcar) -o $@ -L$(obj) $(COMPILER_RT_FLAGS_postcar) --whole-archive --start-group $(filter-out %.ld,$^) --no-whole-archive $(COMPILER_RT_postcar) --end-group -T $(call src-to-obj,postcar,src/arch/x86/memlayout.ld)