summaryrefslogtreecommitdiff
path: root/common/Makefile
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2023-09-26 08:14:27 -0600
committerTom Rini <[email protected]>2023-10-06 14:38:12 -0400
commit3d6d50751469fbadec3e34fbb6d06f21746619dd (patch)
tree9dee21255e4963c896bb6c3a2edbd7cef8ca2a47 /common/Makefile
parenta57204180799489bacfdad3f6b32dc520ed545df (diff)
spl: Use SYS_MALLOC_F instead of SYS_MALLOC_F_LEN
Use the new SPL/TPL/VPL_SYS_MALLOC_F symbols to determine whether the malloc pool exists. Signed-off-by: Simon Glass <[email protected]> Reviewed-by: Sean Anderson <[email protected]>
Diffstat (limited to 'common/Makefile')
-rw-r--r--common/Makefile6
1 files changed, 1 insertions, 5 deletions
diff --git a/common/Makefile b/common/Makefile
index 5c1617206f0..cdeadf72026 100644
--- a/common/Makefile
+++ b/common/Makefile
@@ -74,11 +74,7 @@ endif # CONFIG_SPL_BUILD
obj-$(CONFIG_CROS_EC) += cros_ec.o
obj-y += dlmalloc.o
-ifdef CONFIG_SYS_MALLOC_F
-ifneq ($(CONFIG_$(SPL_TPL_)SYS_MALLOC_F_LEN),0x0)
-obj-y += malloc_simple.o
-endif
-endif
+obj-$(CONFIG_$(SPL_TPL_)SYS_MALLOC_F) += malloc_simple.o
obj-$(CONFIG_CYCLIC) += cyclic.o
obj-$(CONFIG_$(SPL_TPL_)EVENT) += event.o