From: Tom Rini Date: Mon, 12 May 2014 14:58:48 -0400 Subject: [U-Boot] [PATCH] fat: Define MAX_CLUSTSIZE only if not defined in config In-Reply-To: <5ea5a3ef17e45dadd3e5a39870436b7a56785c27.1398433682.git.michal.simek@xilinx.com> References: <5ea5a3ef17e45dadd3e5a39870436b7a56785c27.1398433682.git.michal.simek@xilinx.com> Message-ID: <20140512185848.GF22182@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Apr 25, 2014 at 03:48:04PM +0200, Michal Simek wrote: > From: Siva Durga Prasad Paladugu > > Define MAX_CLUSTSIZE only if not defined in board specific > config file as this size can be decreased to save memory > in some memory constrained cases. > > Signed-off-by: Siva Durga Prasad Paladugu > Signed-off-by: Michal Simek > --- > > include/fat.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/fat.h b/include/fat.h > index c8eb7cc..1213060 100644 > --- a/include/fat.h > +++ b/include/fat.h > @@ -18,7 +18,9 @@ > #define VFAT_MAXSEQ 9 /* Up to 9 of 13 2-byte UTF-16 entries */ > #define PREFETCH_BLOCKS 2 > > +#ifndef MAX_CLUSTSIZE > #define MAX_CLUSTSIZE 65536 > +#endif > #define DIRENTSPERBLOCK (mydata->sect_size / sizeof(dir_entry)) > #define DIRENTSPERCLUST ((mydata->clust_size * mydata->sect_size) / \ > sizeof(dir_entry)) Sorry for the delay. This should be CONFIG_FS_FAT_MAX_CLUSTSIZE and documented in the README. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: