summaryrefslogtreecommitdiff
path: root/Makefile.toolchain
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-05-08 15:11:49 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-05-11 18:38:30 +0000
commit1f09bd7c469fdede4f72425911b0a9d15a439c00 (patch)
tree2879d7d5b6af857c5d72818d899775cf6ea3c434 /Makefile.toolchain
parentd7d6e7e660901fb73275ca41090115bed590e137 (diff)
downloadchrome-ec-1f09bd7c469fdede4f72425911b0a9d15a439c00.tar.gz
make: add generation of sorted symbol mapsstabilize-7059.B
Sorted symbol maps are useful when one wants to look up an address to associate it with a function or a variable, or to estimate how much room certain components of the image take. This patch adds a rule and creates a dependency to make sure that sorted maps (assigned extension .smap) are generated during builds. BRANCH=none BUG=none TEST=make buildall -j observed 91 .elf files and 89 .smap files generated. the two images not triggering .smap file generation are build/npcx_evb/chip/npcx/lfw/ec_lfw build/npcx_evb/chip/npcx/spiflashfw/ec_npcxflash they could be added in a follow up patch if deemed necessary. Change-Id: I196a2ffe059a83481b7a313617d516634762dc60 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/270117 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r--Makefile.toolchain1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain
index 4efca6cec1..db8a640372 100644
--- a/Makefile.toolchain
+++ b/Makefile.toolchain
@@ -12,6 +12,7 @@ HOST_CROSS_COMPILE ?= x86_64-pc-linux-gnu-
CC=$(CROSS_COMPILE)gcc
CPP=$(CROSS_COMPILE)cpp
LD=$(CROSS_COMPILE)ld
+NM=$(CROSS_COMPILE)nm
OBJCOPY=$(CROSS_COMPILE)objcopy
OBJDUMP=$(CROSS_COMPILE)objdump
PKG_CONFIG?=pkg-config