[U-Boot-Users] [PATCH] Make CRAMFS optional (was Re: cramfs voodoo)
Haavard Skinnemoen
hskinnemoen at atmel.com
Sat Nov 24 23:40:37 CET 2007
On Sat, 24 Nov 2007 22:20:14 +0100
Haavard Skinnemoen <hskinnemoen at atmel.com> wrote:
> Can we get rid of it somehow?
Actually, I think I'd rather get rid of cramfs altogether. How do
everyone feel about something like this?
==============[cut here]==============
From a34ea1169abd0923ba5b64e1e9e90c46db11c4c1 Mon Sep 17 00:00:00 2001
From: Haavard Skinnemoen <hskinnemoen at atmel.com>
Date: Sat, 24 Nov 2007 23:25:30 +0100
Subject: [PATCH] Make CRAMFS optional when JFFS2 is enabled
That a board needs JFFS2 doesn't necessarily mean that it needs CRAMFS
as well. Make it possible to turn CRAMFS off.
This patch shouldn't result in any functional change as all boards
that used to define CONFIG_CMD_JFFS2 now define CONFIG_CMD_CRAMFS as
well. The boards that don't want CRAMFS can simply remove the #define.
Disabling CRAMFS support on ATSTK1002 reduces the u-boot image size by
around 2.5k and gets rid of all the strict-aliasing warnings.
Signed-off-by: Haavard Skinnemoen <hskinnemoen at atmel.com>
---
common/cmd_jffs2.c | 8 ++++++++
fs/cramfs/cramfs.c | 4 ++--
fs/cramfs/uncompress.c | 4 ++--
include/config_cmd_all.h | 1 +
include/configs/BAB7xx.h | 1 +
include/configs/BC3450.h | 1 +
include/configs/CATcenter.h | 1 +
include/configs/CPCI4052.h | 1 +
include/configs/CPCI405AB.h | 1 +
include/configs/CPCI405DT.h | 1 +
include/configs/DB64360.h | 1 +
include/configs/DB64460.h | 1 +
include/configs/ELPPC.h | 1 +
include/configs/M54455EVB.h | 1 +
include/configs/MHPC.h | 1 +
include/configs/MIP405.h | 1 +
include/configs/ML2.h | 1 +
include/configs/MPC8260ADS.h | 1 +
include/configs/NC650.h | 1 +
include/configs/NETTA.h | 1 +
include/configs/PMC405.h | 1 +
include/configs/PPChameleonEVB.h | 1 +
include/configs/R360MPI.h | 1 +
include/configs/RPXlite_DW.h | 1 +
include/configs/Rattler.h | 1 +
include/configs/SXNI855T.h | 1 +
include/configs/TB5200.h | 1 +
include/configs/TQM5200.h | 1 +
include/configs/TQM834x.h | 1 +
include/configs/ZUMA.h | 1 +
include/configs/atstk1002.h | 1 +
include/configs/bf533-ezkit.h | 1 +
include/configs/bf533-stamp.h | 1 +
include/configs/bf537-stamp.h | 1 +
include/configs/bf561-ezkit.h | 1 +
include/configs/cm5200.h | 1 +
include/configs/csb637.h | 1 +
include/configs/davinci_dvevm.h | 1 +
include/configs/davinci_sonata.h | 1 +
include/configs/debris.h | 1 +
include/configs/ep7312.h | 1 +
include/configs/idmr.h | 1 +
include/configs/impa7.h | 1 +
include/configs/incaip.h | 1 +
include/configs/kvme080.h | 1 +
include/configs/ml401.h | 1 +
include/configs/modnet50.h | 1 +
include/configs/motionpro.h | 1 +
include/configs/mx1fs2.h | 1 +
include/configs/netstar.h | 1 +
include/configs/omap2420h4.h | 2 ++
include/configs/sc3.h | 1 +
include/configs/sc520_cdp.h | 1 +
include/configs/sc520_spunk.h | 1 +
include/configs/smmaco4.h | 1 +
include/configs/spc1920.h | 1 +
include/configs/v37.h | 1 +
include/configs/v38b.h | 1 +
include/configs/voiceblue.h | 1 +
include/configs/xsengine.h | 1 +
60 files changed, 70 insertions(+), 4 deletions(-)
diff --git a/common/cmd_jffs2.c b/common/cmd_jffs2.c
index efe9eb7..777555f 100644
--- a/common/cmd_jffs2.c
+++ b/common/cmd_jffs2.c
@@ -167,7 +167,15 @@ struct list_head devices;
static struct mtd_device *current_dev = NULL;
static u8 current_partnum = 0;
+#ifdef CONFIG_CMD_CRAMFS
extern int cramfs_check (struct part_info *info);
+#else
+static inline int cramfs_check(struct part_info *info)
+{
+ return 0;
+}
+#endif
+
extern int cramfs_load (char *loadoffset, struct part_info *info, char *filename);
extern int cramfs_ls (struct part_info *info, char *filename);
extern int cramfs_info (struct part_info *info);
diff --git a/fs/cramfs/cramfs.c b/fs/cramfs/cramfs.c
index 369d1f1..fc127f8 100644
--- a/fs/cramfs/cramfs.c
+++ b/fs/cramfs/cramfs.c
@@ -27,7 +27,7 @@
#include <common.h>
#include <malloc.h>
-#if defined(CONFIG_CMD_JFFS2)
+#if defined(CONFIG_CMD_CRAMFS)
#include <asm/byteorder.h>
#include <linux/stat.h>
@@ -344,4 +344,4 @@ int cramfs_check (struct part_info *info)
return 1;
}
-#endif /* CFG_FS_CRAMFS */
+#endif /* CONFIG_CMD_CRAMFS */
diff --git a/fs/cramfs/uncompress.c b/fs/cramfs/uncompress.c
index 2e906eb..de6ec18 100644
--- a/fs/cramfs/uncompress.c
+++ b/fs/cramfs/uncompress.c
@@ -25,7 +25,7 @@
#include <watchdog.h>
#include <zlib.h>
-#if defined(CONFIG_CMD_JFFS2)
+#if defined(CONFIG_CMD_CRAMFS)
static z_stream stream;
@@ -103,4 +103,4 @@ int cramfs_uncompress_exit (void)
return 0;
}
-#endif /* CFG_FS_CRAMFS */
+#endif /* CONFIG_CMD_CRAMFS */
diff --git a/include/config_cmd_all.h b/include/config_cmd_all.h
index d7ef65d..90959be 100644
--- a/include/config_cmd_all.h
+++ b/include/config_cmd_all.h
@@ -23,6 +23,7 @@
#define CONFIG_CMD_CACHE /* icache, dcache */
#define CONFIG_CMD_CDP /* Cisco Discovery Protocol */
#define CONFIG_CMD_CONSOLE /* coninfo */
+#define CONFIG_CMD_CRAMFS /* CRAMFS support */
#define CONFIG_CMD_DATE /* support for RTC, date/time...*/
#define CONFIG_CMD_DHCP /* DHCP Support */
#define CONFIG_CMD_DIAG /* Diagnostics */
diff --git a/include/configs/BAB7xx.h b/include/configs/BAB7xx.h
index c11e9c9..07ce552 100644
--- a/include/configs/BAB7xx.h
+++ b/include/configs/BAB7xx.h
@@ -84,6 +84,7 @@
#define CONFIG_CMD_PCI
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_SCSI
#define CONFIG_CMD_IDE
#define CONFIG_CMD_DATE
diff --git a/include/configs/BC3450.h b/include/configs/BC3450.h
index 5c2bfc9..e3d42d8 100644
--- a/include/configs/BC3450.h
+++ b/include/configs/BC3450.h
@@ -164,6 +164,7 @@
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
diff --git a/include/configs/CATcenter.h b/include/configs/CATcenter.h
index 0321650..e574f00 100644
--- a/include/configs/CATcenter.h
+++ b/include/configs/CATcenter.h
@@ -140,6 +140,7 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NFS
diff --git a/include/configs/CPCI4052.h b/include/configs/CPCI4052.h
index fb71c5f..b0aed50 100644
--- a/include/configs/CPCI4052.h
+++ b/include/configs/CPCI4052.h
@@ -89,6 +89,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_DATE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_I2C
#define CONFIG_CMD_MII
#define CONFIG_CMD_PING
diff --git a/include/configs/CPCI405AB.h b/include/configs/CPCI405AB.h
index 4994319..a4d905b 100644
--- a/include/configs/CPCI405AB.h
+++ b/include/configs/CPCI405AB.h
@@ -89,6 +89,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_DATE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_I2C
#define CONFIG_CMD_MII
#define CONFIG_CMD_PING
diff --git a/include/configs/CPCI405DT.h b/include/configs/CPCI405DT.h
index 29f9292..3c3ee96 100644
--- a/include/configs/CPCI405DT.h
+++ b/include/configs/CPCI405DT.h
@@ -88,6 +88,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_DATE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_I2C
#define CONFIG_CMD_MII
#define CONFIG_CMD_PING
diff --git a/include/configs/DB64360.h b/include/configs/DB64360.h
index db2e96c..fd8a97d 100644
--- a/include/configs/DB64360.h
+++ b/include/configs/DB64360.h
@@ -258,6 +258,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_PCI
#define CONFIG_CMD_NET
diff --git a/include/configs/DB64460.h b/include/configs/DB64460.h
index b5d3f77..ff4677b 100644
--- a/include/configs/DB64460.h
+++ b/include/configs/DB64460.h
@@ -196,6 +196,7 @@ ip=${ipaddr}:${serverip}${bootargs_end}; bootm 0x400000;\0"
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_PCI
#define CONFIG_CMD_NET
diff --git a/include/configs/ELPPC.h b/include/configs/ELPPC.h
index bb77188..17a2caf 100644
--- a/include/configs/ELPPC.h
+++ b/include/configs/ELPPC.h
@@ -84,6 +84,7 @@
#define CONFIG_CMD_PCI
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
/*
diff --git a/include/configs/M54455EVB.h b/include/configs/M54455EVB.h
index db30958..cf02bc6 100644
--- a/include/configs/M54455EVB.h
+++ b/include/configs/M54455EVB.h
@@ -71,6 +71,7 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IDE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MEMORY
#define CONFIG_CMD_MISC
#define CONFIG_CMD_MII
diff --git a/include/configs/MHPC.h b/include/configs/MHPC.h
index dde7742..3a42d70 100644
--- a/include/configs/MHPC.h
+++ b/include/configs/MHPC.h
@@ -126,6 +126,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_REGINFO
diff --git a/include/configs/MIP405.h b/include/configs/MIP405.h
index 5b526a0..4d0104c 100644
--- a/include/configs/MIP405.h
+++ b/include/configs/MIP405.h
@@ -75,6 +75,7 @@
#define CONFIG_CMD_IDE
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_PCI
#define CONFIG_CMD_PING
diff --git a/include/configs/ML2.h b/include/configs/ML2.h
index f488275..49309d8 100644
--- a/include/configs/ML2.h
+++ b/include/configs/ML2.h
@@ -95,6 +95,7 @@
#define CONFIG_CMD_BEDBUG
#define CONFIG_CMD_ELF
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#undef CONFIG_CMD_NET
#undef CONFIG_CMD_RTC
diff --git a/include/configs/MPC8260ADS.h b/include/configs/MPC8260ADS.h
index 23508f9..6fb3d51 100644
--- a/include/configs/MPC8260ADS.h
+++ b/include/configs/MPC8260ADS.h
@@ -220,6 +220,7 @@
#define CONFIG_CMD_IMMAP
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_PCI
#define CONFIG_CMD_PING
diff --git a/include/configs/NC650.h b/include/configs/NC650.h
index c051a35..4909b0c 100644
--- a/include/configs/NC650.h
+++ b/include/configs/NC650.h
@@ -154,6 +154,7 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_NAND
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_NFS
#define CONFIG_CMD_SNTP
diff --git a/include/configs/NETTA.h b/include/configs/NETTA.h
index 19743c0..16bd0f9 100644
--- a/include/configs/NETTA.h
+++ b/include/configs/NETTA.h
@@ -132,6 +132,7 @@
#define CONFIG_CMD_FAT
#define CONFIG_CMD_IDE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NFS
diff --git a/include/configs/PMC405.h b/include/configs/PMC405.h
index b29f368..90ea62e 100644
--- a/include/configs/PMC405.h
+++ b/include/configs/PMC405.h
@@ -84,6 +84,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_DATE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_I2C
#define CONFIG_CMD_PING
diff --git a/include/configs/PPChameleonEVB.h b/include/configs/PPChameleonEVB.h
index 8a74c4f..122741e 100644
--- a/include/configs/PPChameleonEVB.h
+++ b/include/configs/PPChameleonEVB.h
@@ -135,6 +135,7 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NAND
#define CONFIG_CMD_NFS
diff --git a/include/configs/R360MPI.h b/include/configs/R360MPI.h
index a98b4af..7efa5dd 100644
--- a/include/configs/R360MPI.h
+++ b/include/configs/R360MPI.h
@@ -131,6 +131,7 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IDE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PCMCIA
#define CONFIG_CMD_SNTP
diff --git a/include/configs/RPXlite_DW.h b/include/configs/RPXlite_DW.h
index 872765c..ac07c66 100644
--- a/include/configs/RPXlite_DW.h
+++ b/include/configs/RPXlite_DW.h
@@ -136,6 +136,7 @@
#define CONFIG_CMD_ASKENV
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_PING
#define CONFIG_CMD_ELF
#define CONFIG_CMD_REGINFO
diff --git a/include/configs/Rattler.h b/include/configs/Rattler.h
index d7652fa..b3394ca 100644
--- a/include/configs/Rattler.h
+++ b/include/configs/Rattler.h
@@ -143,6 +143,7 @@
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_IMMAP
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_PING
diff --git a/include/configs/SXNI855T.h b/include/configs/SXNI855T.h
index 8f2a5ec..16e90d4 100644
--- a/include/configs/SXNI855T.h
+++ b/include/configs/SXNI855T.h
@@ -163,6 +163,7 @@
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_NAND
#define CONFIG_CMD_DATE
diff --git a/include/configs/TB5200.h b/include/configs/TB5200.h
index 1c6a9ae..de3fa69 100644
--- a/include/configs/TB5200.h
+++ b/include/configs/TB5200.h
@@ -111,6 +111,7 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IDE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
diff --git a/include/configs/TQM5200.h b/include/configs/TQM5200.h
index 7ecc275..7c00343 100644
--- a/include/configs/TQM5200.h
+++ b/include/configs/TQM5200.h
@@ -176,6 +176,7 @@
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
diff --git a/include/configs/TQM834x.h b/include/configs/TQM834x.h
index 0147252..2a6cc6f 100644
--- a/include/configs/TQM834x.h
+++ b/include/configs/TQM834x.h
@@ -333,6 +333,7 @@ extern int tqm834x_num_flash_banks;
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_PING
diff --git a/include/configs/ZUMA.h b/include/configs/ZUMA.h
index 5ba8d1a..106afd0 100644
--- a/include/configs/ZUMA.h
+++ b/include/configs/ZUMA.h
@@ -121,6 +121,7 @@
#define CONFIG_CMD_ASKENV
#define CONFIG_CMD_BSP
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_DATE
diff --git a/include/configs/atstk1002.h b/include/configs/atstk1002.h
index b33e26f..5e00c16 100644
--- a/include/configs/atstk1002.h
+++ b/include/configs/atstk1002.h
@@ -138,6 +138,7 @@
#define CONFIG_CMD_EXT2
#define CONFIG_CMD_FAT
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MMC
#define CONFIG_CMD_REGINFO
diff --git a/include/configs/bf533-ezkit.h b/include/configs/bf533-ezkit.h
index 6cb6bc4..bd7cb0b 100644
--- a/include/configs/bf533-ezkit.h
+++ b/include/configs/bf533-ezkit.h
@@ -115,6 +115,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_DATE
diff --git a/include/configs/bf533-stamp.h b/include/configs/bf533-stamp.h
index cce6ef7..2bdf1d3 100644
--- a/include/configs/bf533-stamp.h
+++ b/include/configs/bf533-stamp.h
@@ -306,6 +306,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_DATE
diff --git a/include/configs/bf537-stamp.h b/include/configs/bf537-stamp.h
index b9a9e3c..14f054a 100644
--- a/include/configs/bf537-stamp.h
+++ b/include/configs/bf537-stamp.h
@@ -183,6 +183,7 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_DATE
diff --git a/include/configs/bf561-ezkit.h b/include/configs/bf561-ezkit.h
index 2966260..36e0202 100644
--- a/include/configs/bf561-ezkit.h
+++ b/include/configs/bf561-ezkit.h
@@ -204,6 +204,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_CACHE
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#if defined(CONFIG_DRIVER_SMC91111)
#define CONFIG_CMD_PING
diff --git a/include/configs/cm5200.h b/include/configs/cm5200.h
index d554348..0c2f1e3 100644
--- a/include/configs/cm5200.h
+++ b/include/configs/cm5200.h
@@ -44,6 +44,7 @@
#define CONFIG_CMD_FAT
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
diff --git a/include/configs/csb637.h b/include/configs/csb637.h
index 976dae3..3e00725 100644
--- a/include/configs/csb637.h
+++ b/include/configs/csb637.h
@@ -115,6 +115,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_PING
diff --git a/include/configs/davinci_dvevm.h b/include/configs/davinci_dvevm.h
index 8ecd059..9472dba 100644
--- a/include/configs/davinci_dvevm.h
+++ b/include/configs/davinci_dvevm.h
@@ -201,6 +201,7 @@
#define CONFIG_CMD_NAND
#elif defined(CFG_USE_NOR)
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#else
#error "Either CFG_USE_NAND or CFG_USE_NOR _MUST_ be defined !!!"
#endif
diff --git a/include/configs/davinci_sonata.h b/include/configs/davinci_sonata.h
index de8c4fa..fdde6d8 100644
--- a/include/configs/davinci_sonata.h
+++ b/include/configs/davinci_sonata.h
@@ -196,6 +196,7 @@
#define CONFIG_CMD_NAND
#elif defined(CFG_USE_NOR)
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#else
#error "Either CFG_USE_NAND or CFG_USE_NOR _MUST_ be defined !!!"
#endif
diff --git a/include/configs/debris.h b/include/configs/debris.h
index 7667e5e..dd68ba6 100644
--- a/include/configs/debris.h
+++ b/include/configs/debris.h
@@ -146,6 +146,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_KGBD
#define CONFIG_CMD_PCI
#define CONFIG_CMD_PING
diff --git a/include/configs/ep7312.h b/include/configs/ep7312.h
index f5cf477..bac4bf6 100644
--- a/include/configs/ep7312.h
+++ b/include/configs/ep7312.h
@@ -78,6 +78,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_BOOTDELAY 3
diff --git a/include/configs/idmr.h b/include/configs/idmr.h
index 3821ebc..8b055d9 100644
--- a/include/configs/idmr.h
+++ b/include/configs/idmr.h
@@ -99,6 +99,7 @@
#define CONFIG_CMD_PING
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_NET
#undef CONFIG_CMD_LOADS
diff --git a/include/configs/impa7.h b/include/configs/impa7.h
index 0e52ffe..9b7f112 100644
--- a/include/configs/impa7.h
+++ b/include/configs/impa7.h
@@ -77,6 +77,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_BOOTDELAY 3
diff --git a/include/configs/incaip.h b/include/configs/incaip.h
index 4caf54e..512b9eb 100644
--- a/include/configs/incaip.h
+++ b/include/configs/incaip.h
@@ -100,6 +100,7 @@
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_ELF
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
#define CONFIG_CMD_SNTP
diff --git a/include/configs/kvme080.h b/include/configs/kvme080.h
index 569800a..0740eaf 100644
--- a/include/configs/kvme080.h
+++ b/include/configs/kvme080.h
@@ -90,6 +90,7 @@
#define CONFIG_CMD_ELF
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PCI
#define CONFIG_CMD_PING
diff --git a/include/configs/ml401.h b/include/configs/ml401.h
index b320438..bc0081b 100644
--- a/include/configs/ml401.h
+++ b/include/configs/ml401.h
@@ -186,6 +186,7 @@
#define CONFIG_CMD_FLASH
#define CONFIG_CMD_IMLS
#define CONFIG_CMD_JFFS2
+ #define CONFIG_CMD_CRAMFS
#if !defined(RAMENV)
#define CONFIG_CMD_ENV
diff --git a/include/configs/modnet50.h b/include/configs/modnet50.h
index 4461bdf..645b626 100644
--- a/include/configs/modnet50.h
+++ b/include/configs/modnet50.h
@@ -79,6 +79,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_NETMASK 255.255.255.0
diff --git a/include/configs/motionpro.h b/include/configs/motionpro.h
index 1503598..c5971c1 100644
--- a/include/configs/motionpro.h
+++ b/include/configs/motionpro.h
@@ -62,6 +62,7 @@
#define CONFIG_CMD_IDE
#define CONFIG_CMD_FAT
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_I2C
#define CONFIG_CMD_DATE
#define CONFIG_CMD_EEPROM
diff --git a/include/configs/mx1fs2.h b/include/configs/mx1fs2.h
index d527d09..02002d7 100644
--- a/include/configs/mx1fs2.h
+++ b/include/configs/mx1fs2.h
@@ -50,6 +50,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#undef CONFIG_CMD_LOADS
#undef CONFIG_CMD_CONSOLE
diff --git a/include/configs/netstar.h b/include/configs/netstar.h
index 33159d3..c436c09 100644
--- a/include/configs/netstar.h
+++ b/include/configs/netstar.h
@@ -152,6 +152,7 @@
#define CONFIG_CMD_FLASH
#define CONFIG_CMD_IMI
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_LOADB
#define CONFIG_CMD_MEMORY
#define CONFIG_CMD_NAND
diff --git a/include/configs/omap2420h4.h b/include/configs/omap2420h4.h
index 8ae8efe..24c5903 100644
--- a/include/configs/omap2420h4.h
+++ b/include/configs/omap2420h4.h
@@ -130,10 +130,12 @@
#define CONFIG_CMD_I2C
#define CONFIG_CMD_NAND
#define CONFIG_CMD_JFFS2
+ #define CONFIG_CMD_CRAMFS
#else
#define CONFIG_CMD_DHCP
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+ #define CONFIG_CMD_CRAMFS
#undef CONFIG_CMD_AUTOSCRIPT
#endif
diff --git a/include/configs/sc3.h b/include/configs/sc3.h
index cb22536..98a2c2a 100644
--- a/include/configs/sc3.h
+++ b/include/configs/sc3.h
@@ -191,6 +191,7 @@
#define CONFIG_CMD_PING
#define CONFIG_CMD_NAND
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_I2C
#define CONFIG_CMD_IDE
#define CONFIG_CMD_DATE
diff --git a/include/configs/sc520_cdp.h b/include/configs/sc520_cdp.h
index 8491d97..c3dc52d 100644
--- a/include/configs/sc520_cdp.h
+++ b/include/configs/sc520_cdp.h
@@ -82,6 +82,7 @@
#define CONFIG_CMD_PCI
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_IDE
#define CONFIG_CMD_NET
#define CONFIG_CMD_EEPROM
diff --git a/include/configs/sc520_spunk.h b/include/configs/sc520_spunk.h
index c6f7f15..0e2d8bd 100644
--- a/include/configs/sc520_spunk.h
+++ b/include/configs/sc520_spunk.h
@@ -81,6 +81,7 @@
#define CONFIG_CMD_PCI
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_IDE
#define CONFIG_CMD_NET
#define CONFIG_CMD_PCMCIA
diff --git a/include/configs/smmaco4.h b/include/configs/smmaco4.h
index ad68c75..786d958 100644
--- a/include/configs/smmaco4.h
+++ b/include/configs/smmaco4.h
@@ -85,6 +85,7 @@
#define CONFIG_CMD_EEPROM
#define CONFIG_CMD_I2C
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_NFS
#define CONFIG_CMD_PING
diff --git a/include/configs/spc1920.h b/include/configs/spc1920.h
index 2efc8f1..fc5b3de 100644
--- a/include/configs/spc1920.h
+++ b/include/configs/spc1920.h
@@ -95,6 +95,7 @@
#define CONFIG_CMD_ECHO
#define CONFIG_CMD_IMMAP
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_NET
#define CONFIG_CMD_PING
#define CONFIG_CMD_DHCP
diff --git a/include/configs/v37.h b/include/configs/v37.h
index 0407253..6be4cac 100644
--- a/include/configs/v37.h
+++ b/include/configs/v37.h
@@ -98,6 +98,7 @@
#include <config_cmd_default.h>
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_DATE
diff --git a/include/configs/v38b.h b/include/configs/v38b.h
index c0b1a15..fa9e1a5 100644
--- a/include/configs/v38b.h
+++ b/include/configs/v38b.h
@@ -107,6 +107,7 @@
#define CONFIG_CMD_DIAG
#define CONFIG_CMD_IRQ
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_CMD_MII
#define CONFIG_CMD_SDRAM
#define CONFIG_CMD_DATE
diff --git a/include/configs/voiceblue.h b/include/configs/voiceblue.h
index 7cab31d..87ff95d 100644
--- a/include/configs/voiceblue.h
+++ b/include/configs/voiceblue.h
@@ -151,6 +151,7 @@
#if !defined(VOICEBLUE_SMALL_FLASH)
#define CONFIG_CMD_ENV
#define CONFIG_CMD_JFFS2
+ #define CONFIG_CMD_CRAMFS
#endif
diff --git a/include/configs/xsengine.h b/include/configs/xsengine.h
index 766617e..08a70f6 100644
--- a/include/configs/xsengine.h
+++ b/include/configs/xsengine.h
@@ -122,6 +122,7 @@
#define CONFIG_CMD_FAT
#define CONFIG_CMD_PING
#define CONFIG_CMD_JFFS2
+#define CONFIG_CMD_CRAMFS
#define CONFIG_BOOTDELAY 3
--
1.5.3.6
More information about the U-Boot
mailing list