summaryrefslogtreecommitdiffstats
path: root/include/exports.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2015-09-13 14:45:15 +0200
committerHans de Goede <hdegoede@redhat.com>2015-10-20 18:40:27 +0200
commit1eb0c03c2198a7ec9de456b83dacdc4831b96cbf (patch)
tree08dec65ab5ca93a18be5546fa946e36722450952 /include/exports.h
parent8656c4f76f012254a1a01d6d7956d85d7d3d73bf (diff)
downloadblackbird-obmc-uboot-1eb0c03c2198a7ec9de456b83dacdc4831b96cbf.tar.gz
blackbird-obmc-uboot-1eb0c03c2198a7ec9de456b83dacdc4831b96cbf.zip
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>
Diffstat (limited to 'include/exports.h')
-rw-r--r--include/exports.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/exports.h b/include/exports.h
index a3e0469d40..deef8fbec8 100644
--- a/include/exports.h
+++ b/include/exports.h
@@ -19,7 +19,7 @@ int printf(const char* fmt, ...);
void install_hdlr(int, interrupt_handler_t, void*);
void free_hdlr(int);
void *malloc(size_t);
-#ifndef CONFIG_SYS_MALLOC_SIMPLE
+#if !CONFIG_IS_ENABLED(SYS_MALLOC_SIMPLE)
void free(void*);
#endif
void __udelay(unsigned long);
OpenPOWER on IntegriCloud