From edbbbac4c481931fa84174b861b6cbbca93fb13d Mon Sep 17 00:00:00 2001 From: Charles Manning Date: Thu, 9 Jul 2020 13:28:23 +1200 Subject: [PATCH] Add CONFIG_YAFFS_SMALL_RAM to reduce RAM footprint Reduce number of handles and search contexts. Signed-off-by: Charles Manning --- direct/yaffscfg.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/direct/yaffscfg.h b/direct/yaffscfg.h index 90c0778..86ef225 100644 --- a/direct/yaffscfg.h +++ b/direct/yaffscfg.h @@ -24,9 +24,13 @@ #include "yportenv.h" +#ifdef CONFIG_YAFFS_SMALL_RAM +#define YAFFSFS_N_HANDLES 10 +#define YAFFSFS_N_DSC 2 +#else #define YAFFSFS_N_HANDLES 100 - #define YAFFSFS_N_DSC 20 +#endif struct yaffsfs_DeviceConfiguration { -- 2.30.2