malloc: Switch to the new malloc() implementation
Add CONFIG_SYS_MALLOC_LEGACY to select the current allocator and adjust the header-file and Makefile rule to use the new dlmalloc implementation. Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: Simon Glass <simon.glass@canonical.com>
This commit is contained in:
@@ -71,7 +71,11 @@ obj-$(CONFIG_BOUNCE_BUFFER) += bouncebuf.o
|
||||
obj-$(CONFIG_$(PHASE_)SERIAL) += console.o
|
||||
|
||||
obj-$(CONFIG_CROS_EC) += cros_ec.o
|
||||
ifdef CONFIG_SYS_MALLOC_LEGACY
|
||||
obj-y += dlmalloc_old.o
|
||||
else
|
||||
obj-y += dlmalloc.o
|
||||
endif
|
||||
obj-$(CONFIG_$(PHASE_)SYS_MALLOC_F) += malloc_simple.o
|
||||
|
||||
obj-$(CONFIG_$(PHASE_)CYCLIC) += cyclic.o
|
||||
|
||||
Reference in New Issue
Block a user