On 22 September 2015 at 11:25, Hans de Goede <hdego...@redhat.com> wrote: > 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 <hdego...@redhat.com> > --- > Changes in v2: > -Fix commit message wrt quoting lines starting with a # > -Rename Kconfig option from SPL_MALLOC_SIMPLE to SPL_SYS_MALLOC_SIMPLE > -Simplify the ifdef checks to #if CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE) > --- > Kconfig | 10 ++++++++++ > common/malloc_simple.c | 2 +- > include/_exports.h | 2 +- > include/exports.h | 2 +- > include/malloc.h | 2 +- > 5 files changed, 14 insertions(+), 4 deletions(-)
Acked-by: Simon Glass <s...@chromium.org> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot