From f995c26de92eadbf3d961ad3e0fb233410798dd2 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Mon, 2 Jan 2023 19:49:56 +0000 Subject: buflib: Add CONFIG_BUFLIB_BACKEND for selecting a buflib backend Defaults to the normal "mempool" backend, which is currently the only implementation. Change-Id: I56d034a6e0f5edc90c39526d1551945eec6ca336 --- firmware/export/config.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'firmware/export/config.h') diff --git a/firmware/export/config.h b/firmware/export/config.h index 8726a8d6f4..d8674c40f2 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -380,6 +380,9 @@ Lyre prototype 1 */ #define IMX233_FREESCALE (1 << 0) /* Freescale I.MX233 nonstandard two-level MBR */ #define IMX233_CREATIVE (1 << 1) /* Creative MBLK windowing */ +/* CONFIG_BUFLIB_BACKEND */ +#define BUFLIB_BACKEND_MEMPOOL 0 /* Default memory pool backed buflib */ + /* now go and pick yours */ #if defined(IRIVER_H100) #include "config/iriverh100.h" @@ -606,6 +609,10 @@ Lyre prototype 1 */ #undef CONFIG_STORAGE #endif +#ifndef CONFIG_BUFLIB_BACKEND +# define CONFIG_BUFLIB_BACKEND BUFLIB_BACKEND_MEMPOOL +#endif + #ifdef APPLICATION #define CONFIG_CPU 0 #endif -- cgit v1.2.3