summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-17 03:25:38 -0600
committerTom Rini <trini@konsulko.com>2017-05-22 12:45:31 -0400
commit59e12a4a8c219c4a334a2c2023edd1aa20f82a9e (patch)
tree2d4f9346e3234cdc6b2d122631134f6448658d74 /cmd
parentb8682a7fcf69344ac5a2d57c75f9c93bfdc93142 (diff)
downloadu-boot-59e12a4a8c219c4a334a2c2023edd1aa20f82a9e.tar.gz
u-boot-59e12a4a8c219c4a334a2c2023edd1aa20f82a9e.tar.bz2
u-boot-59e12a4a8c219c4a334a2c2023edd1aa20f82a9e.zip
fs: Kconfig: Add a separate option for FS_JFFS2
Rather than using CMD_JFFS2 for both the filesystem and its command, we should have a separate option for each. This allows us to enable JFFS2 support without the command, if desired, which reduces U-Boot's size slightly. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/Kconfig1
-rw-r--r--cmd/cramfs.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index e4cb6c92b0..be6b314c26 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1147,6 +1147,7 @@ config CMD_FS_UUID
config CMD_JFFS2
bool "jffs2 command"
+ select FS_JFFS2
help
Enables commands to support the JFFS2 (Journalling Flash File System
version 2) filesystem. This enables fsload, ls and fsinfo which
diff --git a/cmd/cramfs.c b/cmd/cramfs.c
index 4e75de8f29..49ee36c74a 100644
--- a/cmd/cramfs.c
+++ b/cmd/cramfs.c
@@ -39,7 +39,7 @@
# define OFFSET_ADJUSTMENT (flash_info[id.num].start[0])
#endif
-#ifndef CONFIG_CMD_JFFS2
+#ifndef CONFIG_FS_JFFS2
#include <linux/stat.h>
char *mkmodestr(unsigned long mode, char *str)
{
@@ -70,7 +70,7 @@ char *mkmodestr(unsigned long mode, char *str)
str[10] = '\0';
return str;
}
-#endif /* CONFIG_CMD_JFFS2 */
+#endif /* CONFIG_FS_JFFS2 */
extern int cramfs_check (struct part_info *info);
extern int cramfs_load (char *loadoffset, struct part_info *info, char *filename);