malloc_simple: Add Kconfig option for using only malloc_simple in the SPL
authorHans de Goede <hdegoede@redhat.com>
Sun, 13 Sep 2015 12:45:15 +0000 (14:45 +0200)
committerHans de Goede <hdegoede@redhat.com>
Tue, 20 Oct 2015 16:40:27 +0000 (18:40 +0200)
commit1eb0c03c2198a7ec9de456b83dacdc4831b96cbf
tree08dec65ab5ca93a18be5546fa946e36722450952
parent8656c4f76f012254a1a01d6d7956d85d7d3d73bf
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>
Kconfig
common/malloc_simple.c
include/_exports.h
include/exports.h
include/malloc.h