diff options
author | Che-yu Wu <cheyuw@google.com> | 2017-07-19 15:51:40 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2017-08-14 05:54:35 -0700 |
commit | 1bf7abdc206a177c0b8a8d6b541cc4250a8f0026 (patch) | |
tree | 8df82e09233db620054d2a3cc8de7ceeb34febf0 /Makefile.toolchain | |
parent | 041b90bcac4b03b484d6e5530e297100a7ff76f5 (diff) | |
download | chrome-ec-1bf7abdc206a177c0b8a8d6b541cc4250a8f0026.tar.gz |
ec: Add analysis tool for firmware stack usage.
Add a static analysis tool for firmware stack usage.
Add an new Makefile rule to analyze the stack usages of firmwares.
Details about the tool can be found in extra/stack_analyzer/README.md.
BUG=chromium:648840
BRANCH=none
TEST=extra/stack_analyzer/stack_analyzer_unittest.py
make BOARD=elm && make BOARD=elm build/elm/RW/ec.RW.taskinfo && \
extra/stack_analyzer/stack_analyzer.py \
--objdump=arm-none-eabi-objdump \
--addr2line=arm-none-eabi-addr2line \
./build/elm/RW/ec.RW.elf ./build/elm/RW/ec.RW.taskinfo
make BOARD=${BOARD} SECTION=${SECTION} analyzestack
Change-Id: Ifb1b5f5ad6be8f8b125b14d6ee03e25cb385895b
Signed-off-by: Che-yu Wu <cheyuw@google.com>
Reviewed-on: https://chromium-review.googlesource.com/576411
Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'Makefile.toolchain')
-rw-r--r-- | Makefile.toolchain | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile.toolchain b/Makefile.toolchain index 45ca6369ed..c544fae7b1 100644 --- a/Makefile.toolchain +++ b/Makefile.toolchain @@ -27,6 +27,7 @@ LD=$(CROSS_COMPILE)ld NM=$(CROSS_COMPILE)nm OBJCOPY=$(CROSS_COMPILE)objcopy OBJDUMP=$(CROSS_COMPILE)objdump +ADDR2LINE=$(CROSS_COMPILE)addr2line PKG_CONFIG?=pkg-config BUILDCC?=$(CCACHE) gcc HOSTCC?=$(CCACHE) $(HOST_CROSS_COMPILE)gcc |