mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 19:11:53 +00:00
malloc_simple: Add Kconfig option for using only malloc_simple in the SPL
common/dlmalloc.c is quite big, both in .text and .data usage, therefor on some boards the SPL is build to use only malloc_simple.c and not the dlmalloc.c code. This is done in various include/configs/foo.h with the following construct: #ifdef CONFIG_SPL_BUILD #define CONFIG_SYS_MALLOC_SIMPLE #endif This commit introduces a SPL_MALLOC_SIMPLE Kconfig bool which allows selecting this functionality through Kconfig instead. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
8656c4f76f
commit
1eb0c03c21
5 changed files with 14 additions and 4 deletions
|
@ -872,7 +872,7 @@ extern Void_t* sbrk();
|
|||
|
||||
#else
|
||||
|
||||
#ifdef CONFIG_SYS_MALLOC_SIMPLE
|
||||
#if CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
|
||||
#define malloc malloc_simple
|
||||
#define realloc realloc_simple
|
||||
#define memalign memalign_simple
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue