diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-07-28 11:06:03 +0200 |
---|---|---|
committer | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-08-13 17:12:19 +0200 |
commit | ae2cee2e34a9a4b69b7a4dea3dc93c4d93d93b53 (patch) | |
tree | 2794d45b9aa60a5df0b827947586f4b8b230b1ec /Kconfig | |
parent | 19b68fb280e8304c9c78c179ec40fdcfee793754 (diff) | |
download | u-boot-ae2cee2e34a9a4b69b7a4dea3dc93c4d93d93b53.zip u-boot-ae2cee2e34a9a4b69b7a4dea3dc93c4d93d93b53.tar.gz u-boot-ae2cee2e34a9a4b69b7a4dea3dc93c4d93d93b53.tar.bz2 |
spl: use TPL_SYS_MALLOC_F_LEN for TPL
The (upstream) changes to break up SYS_MALLOC_F_LEN for the full
U-Boot and the SPL stage, break TPL (if simple malloc is enabled in
TPL).
This adds support for a TPL-variant of SYS_MALLOC_F_LEN:
- adds TPL_SYS_MALLOC_F_LEN
- rewrites a test for CONFIG_SPL_SYS_MALLOC_F_LEN to access
CONFIG_VAL(SYS_MALLOC_F_LEN)
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'Kconfig')
-rw-r--r-- | Kconfig | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -96,7 +96,17 @@ config SYS_MALLOC_F_LEN initial serial device and any others that are needed. config SPL_SYS_MALLOC_F_LEN - hex "Size of malloc() pool in spl before relocation" + hex "Size of malloc() pool in SPL before relocation" + depends on SYS_MALLOC_F + default SYS_MALLOC_F_LEN + help + Before relocation, memory is very limited on many platforms. Still, + we can provide a small malloc() pool if needed. Driver model in + particular needs this to operate, so that it can allocate the + initial serial device and any others that are needed. + +config TPL_SYS_MALLOC_F_LEN + hex "Size of malloc() pool in TPL before relocation" depends on SYS_MALLOC_F default SYS_MALLOC_F_LEN help |