From: Grant Likely Date: Sat, 17 Feb 2007 00:01:06 -0700 Subject: [U-Boot-Users] [PATCH] Fix building with CRAMFS but no JFFS2 support In-Reply-To: <20070216225901.GI11991@prithivi.gnumonks.org> References: <20070216225901.GI11991@prithivi.gnumonks.org> Message-ID: <528646bc0702162301o2af99f5dmbcd9d36261f640e4@mail.gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 2/16/07, Harald Welte wrote: > Hi! > > Fix building with CRAMFS but not JFFS2 support > > Signed-off-by: Harald Welte > > Index: u-boot.git/fs/cramfs/cramfs.c > =================================================================== > --- u-boot.git.orig/fs/cramfs/cramfs.c 2007-02-07 16:47:39.000000000 +0100 > +++ u-boot.git/fs/cramfs/cramfs.c 2007-02-07 16:48:01.000000000 +0100 > @@ -27,7 +27,7 @@ > #include > #include > > -#if (CONFIG_COMMANDS & CFG_CMD_JFFS2) > +#if (CONFIG_COMMANDS & CFG_CMD_CRAMFS) <<>> > +#else <<>> > #endif /* CFG_FS_CRAMFS */ > + Hmmm... This code will cause cramfs_* functions to be generated and linked into all u-boot images, for all boards (even if they are just empty stubs). I don't think this is what is wanted. AFAICS, JFFS2 is the only external user, so the empty stubs should be conditional on CONFIG_FS_JFFS2. Alternately, the jffs2 code should be audited to see if it's reasonable to modify it to only generate calls to cramfs_* if cramfs is actually configured in. Cheers, g. -- Grant Likely, B.Sc. P.Eng. Secret Lab Technologies Ltd. grant.likely at secretlab.ca (403) 399-0195