diff options
author | Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com> | 2019-05-24 22:07:04 +0200 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2019-06-07 11:03:39 -0400 |
commit | 2577015dc5c48e7892dea8731a27530543606673 (patch) | |
tree | fbc3cff0721a1be36cb343b841ad7374e33606fb /Makefile | |
parent | dfe252b11e23e9aa54e87aadc8d8ac5c1ab56861 (diff) | |
download | u-boot-2577015dc5c48e7892dea8731a27530543606673.zip u-boot-2577015dc5c48e7892dea8731a27530543606673.tar.gz u-boot-2577015dc5c48e7892dea8731a27530543606673.tar.bz2 |
spl: add overall SPL size check
This adds a size check for SPL that can dynamically check generated
SPL binaries (including devicetree) for a size limit that ensures
this image plus global data, heap and stack fit in initial SRAM.
Since some of these sizes are not available to make, a new host tool
'spl_size_limit' is added that dumps the resulting maximum size for
an SPL binary to stdout. This tool is used in toplevel Makefile to
implement the size check on SPL binaries.
Signed-off-by: Simon Goldschmidt <simon.k.r.goldschmidt@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -797,7 +797,7 @@ BOARD_SIZE_CHECK = endif ifneq ($(CONFIG_SPL_SIZE_LIMIT),0) -SPL_SIZE_CHECK = @$(call size_check,$@,$(CONFIG_SPL_SIZE_LIMIT)) +SPL_SIZE_CHECK = @$(call size_check,$@,$$(tools/spl_size_limit)) else SPL_SIZE_CHECK = endif @@ -1782,6 +1782,7 @@ checkarmreloc: u-boot envtools: scripts_basic $(version_h) $(timestamp_h) $(Q)$(MAKE) $(build)=tools/env +tools-only: export TOOLS_ONLY=y tools-only: scripts_basic $(version_h) $(timestamp_h) $(Q)$(MAKE) $(build)=tools |