summaryrefslogtreecommitdiffstats
path: root/Makefile.inc
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2021-07-22 16:57:26 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-07-23 15:06:56 +0000
commit1cfb5999928c1a5cf5965b5ea520562fd3f7912a (patch)
tree8aef7c801144fb228ebfe913982d176d1985df33 /Makefile.inc
parenteac687cc36823683b80ab21e43038a42bf90921c (diff)
downloadcoreboot-1cfb5999928c1a5cf5965b5ea520562fd3f7912a.tar.gz
coreboot-1cfb5999928c1a5cf5965b5ea520562fd3f7912a.tar.bz2
coreboot-1cfb5999928c1a5cf5965b5ea520562fd3f7912a.zip
build system: Deduplicate symbols in objdump
New binutils versions automatically resolve references to debug symbol files and parse their content as well when objdump'ing data. This leads to multiple mentions of symbols, so deduplicate references. Change-Id: I5d597399c515904313ba36d7aab9178bc0dade14 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/56524 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'Makefile.inc')
-rw-r--r--Makefile.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc
index 95c551e9c4a4..59aa1ababa20 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1247,7 +1247,8 @@ cbfs-get-segments-cmd = $(CBFSTOOL) $(obj)/coreboot.pre print -v | sed -n \
'\%$(1)%,\%^[^ ]\{4\}%s% .*load: \(0x[0-9a-fA-F]*\),.*length: [0-9]*/\([0-9]*\).*%\1 \2%p'
ramstage-symbol-addr-cmd = $(OBJDUMP_ramstage) -t $(objcbfs)/ramstage.elf | \
- sed -n '/ $(1)$$/s/^\([0-9a-fA-F]*\) .*/0x\1/p'
+ sed -n '/ $(1)$$/s/^\([0-9a-fA-F]*\) .*/0x\1/p' | \
+ uniq
$(call add_intermediate, check-ramstage-overlaps)
programs=$$($(foreach file,$(check-ramstage-overlap-files), \