From 92565e9246f3a47b90fea4a436ecfd8e7a1198b8 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 2 Jan 2023 22:48:07 +0000 Subject: buflib: Add malloc-backed buflib This is intended for improving the effectiveness of tools like ASAN when debugging memory errors in the sim. It's not meant to be a serious allocator for hosted targets. Enable it by changing the buflib backend in config.h. Change-Id: I0cf23cefa47ee35dede7b49e0e5b72dac60e8d3e --- firmware/SOURCES | 2 ++ 1 file changed, 2 insertions(+) (limited to 'firmware/SOURCES') diff --git a/firmware/SOURCES b/firmware/SOURCES index 02e962c0c3..7e2ffb323e 100644 --- a/firmware/SOURCES +++ b/firmware/SOURCES @@ -6,6 +6,8 @@ events.c backlight.c #if CONFIG_BUFLIB_BACKEND == BUFLIB_BACKEND_MEMPOOL buflib_mempool.c +#elif CONFIG_BUFLIB_BACKEND == BUFLIB_BACKEND_MALLOC +buflib_malloc.c #endif core_alloc.c general.c -- cgit v1.2.3