From: Harald Welte Date: Fri, 16 Feb 2007 23:59:01 +0100 Subject: [U-Boot-Users] [PATCH] Fix building with CRAMFS but no JFFS2 support Message-ID: <20070216225901.GI11991@prithivi.gnumonks.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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) #include #include @@ -343,5 +343,22 @@ } return 1; } - +#else +int cramfs_load (char *loadoffset, struct part_info *info, char *filename) +{ + return -1; +} +int cramfs_ls (struct part_info *info, char *filename) +{ + return 0; +} +int cramfs_info (struct part_info *info) +{ + return 0; +} +int cramfs_check (struct part_info *info) +{ + return 0; +} #endif /* CFG_FS_CRAMFS */ + -- - Harald Welte http://openmoko.org/ ============================================================================ Software for the world's first truly open Free Software mobile phone