]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/Makefile
spl: make SPL and normal u-boot stage use independent SYS_MALLOC_F_LEN
[people/ms/u-boot.git] / common / Makefile
index 17a92ea2d7504262cebd2a15812994298186113d..60681c845cc205d870fcd3238c3853eb37e38389 100644 (file)
@@ -139,9 +139,11 @@ obj-y += console.o
 endif
 obj-$(CONFIG_CROS_EC) += cros_ec.o
 obj-y += dlmalloc.o
-ifdef CONFIG_SYS_MALLOC_F_LEN
+ifdef CONFIG_SYS_MALLOC_F
+ifneq ($(CONFIG_$(SPL_)SYS_MALLOC_F_LEN),0)
 obj-y += malloc_simple.o
 endif
+endif
 obj-y += image.o
 obj-$(CONFIG_ANDROID_BOOT_IMAGE) += image-android.o
 obj-$(CONFIG_$(SPL_)OF_LIBFDT) += image-fdt.o