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
This commit is contained in:
Aidan MacDonald 2023-01-02 19:49:56 +00:00
parent 680261fbb7
commit f995c26de9
9 changed files with 48 additions and 5 deletions

View file

@ -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