]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
cmd: move CONFIG_CMD_UNZIP and CONFIG_CMD_ZIP to Kconfig
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 5 Feb 2017 01:42:56 +0000 (10:42 +0900)
committerTom Rini <trini@konsulko.com>
Wed, 8 Feb 2017 21:24:28 +0000 (16:24 -0500)
CONFIG_CMD_ZIP is not defined by any board.  I am moving
CONFIG_CMD_UNZIP to defconfig files except UniPhier SoC family.

I am the maintainer of UniPhier platform, so I know "select CMD_UNZIP"
is better for this platform.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Stefan Roese <sr@denx.de>
Acked-by: Ryan Harkin <ryan.harkin@linaro.org>
Tested-by: Ryan Harkin <ryan.harkin@linaro.org>
26 files changed:
README
arch/arm/mach-uniphier/Kconfig
cmd/Kconfig
configs/brxre1_defconfig
configs/dragonboard410c_defconfig
configs/ethernut5_defconfig
configs/hikey_defconfig
configs/icnova-a20-swac_defconfig
configs/vexpress_aemv8a_dram_defconfig
configs/vexpress_aemv8a_juno_defconfig
configs/vexpress_aemv8a_semi_defconfig
configs/xilinx_zynqmp_ep_defconfig
configs/xilinx_zynqmp_zc1751_xm015_dc1_defconfig
configs/xilinx_zynqmp_zc1751_xm016_dc2_defconfig
configs/xilinx_zynqmp_zc1751_xm018_dc4_defconfig
configs/xilinx_zynqmp_zc1751_xm019_dc5_defconfig
configs/xilinx_zynqmp_zcu102_defconfig
configs/xilinx_zynqmp_zcu102_revB_defconfig
include/config_cmd_all.h
include/configs/brxre1.h
include/configs/dragonboard410c.h
include/configs/ethernut5.h
include/configs/hikey.h
include/configs/uniphier.h
include/configs/vexpress_aemv8a.h
include/configs/xilinx_zynqmp.h

diff --git a/README b/README
index ecb1710d01cca2decd4286f3584e19aecd3026b4..a3d3ecc75c9b7f19a055c2f5f3105750ac96d329 100644 (file)
--- a/README
+++ b/README
@@ -1771,12 +1771,6 @@ The following options need to be configured:
                can be displayed via the splashscreen support or the
                bmp command.
 
-- Do compressing for memory range:
-               CONFIG_CMD_ZIP
-
-               If this option is set, it would use zlib deflate method
-               to compress the specified memory at its best effort.
-
 - Compression support:
                CONFIG_GZIP
 
index cd9ba6ba9e6def4370916448fbf43f4dd9b76c04..5739325da71b91004a4b168970647525120670c7 100644 (file)
@@ -13,6 +13,7 @@ config ARCH_UNIPHIER_32BIT
 config ARCH_UNIPHIER_64BIT
        bool
        select ARM64
+       select CMD_UNZIP
        select SPL_SEPARATE_BSS if SPL
        select ARMV8_MULTIENTRY if SPL
        select ARMV8_SPIN_TABLE if SPL
index 25ac8955482dccaab896768d479c9fc21019661d..ef5315631476f652a8d2ccb322539e1cd4231f45 100644 (file)
@@ -359,6 +359,16 @@ config CMD_MEMINFO
        help
          Display memory information.
 
+config CMD_UNZIP
+       bool "unzip"
+       help
+         Uncompress a zip-compressed memory region.
+
+config CMD_ZIP
+       bool "zip"
+       help
+         Compress a memory region with zlib deflate method.
+
 endmenu
 
 menu "Device access commands"
index 0b7b082644581af57874f27b59d6d1a3e90677cd..dfa8712c2cdf45bd61211796a858d2b477e56a5f 100644 (file)
@@ -31,6 +31,7 @@ CONFIG_CMD_BOOTZ=y
 # CONFIG_CMD_XIMG is not set
 # CONFIG_CMD_EDITENV is not set
 # CONFIG_CMD_CRC32 is not set
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_LOADB is not set
 # CONFIG_CMD_LOADS is not set
 # CONFIG_CMD_FLASH is not set
index 8f206e238458118931e94f4b00b4d5e4cbcc9cc5..e94f7b39da459b07023a6ae6d609744a9b981f77 100644 (file)
@@ -9,6 +9,7 @@ CONFIG_SYS_PROMPT="dragonboard410c => "
 # CONFIG_CMD_IMI is not set
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_MEMINFO=y
+CONFIG_CMD_UNZIP=y
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
index c831aab2a94136bf351382f2b6c0a7d0a41bf92d..4d1b4b0d1540c9eddc6206af607ad1a065b1fa04 100644 (file)
@@ -8,6 +8,7 @@ CONFIG_HUSH_PARSER=y
 CONFIG_SYS_PROMPT="U-Boot> "
 # CONFIG_CMD_BDI is not set
 CONFIG_CMD_ASKENV=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_MMC=y
 CONFIG_CMD_SF=y
index 8dd330ad753fbfcd9446038fa8cdce0f6cd1e2a9..b112be2ef505876731ff3fe2e36a34944dbacfe5 100644 (file)
@@ -7,6 +7,7 @@ CONFIG_DISTRO_DEFAULTS=y
 # CONFIG_DISPLAY_BOARDINFO is not set
 CONFIG_BOARD_EARLY_INIT_F=y
 # CONFIG_CMD_IMLS is not set
+CONFIG_CMD_UNZIP=y
 CONFIG_CMD_MMC=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_GPIO=y
index 567eb9b5928fff07b8d4af6e07115e12cd390ac9..5ef0e47b4eed5e4ceb3abc1494d21c660b5217ed 100644 (file)
@@ -13,9 +13,10 @@ CONFIG_VIDEO_LCD_POWER="PH22"
 CONFIG_VIDEO_LCD_PANEL_LVDS=y
 CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-icnova-swac"
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
-CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,CMD_BMP,CMD_UNZIP"
+CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,CMD_BMP"
 CONFIG_SPL=y
 # CONFIG_CMD_IMLS is not set
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_FLASH is not set
 # CONFIG_CMD_FPGA is not set
 # CONFIG_SPL_DOS_PARTITION is not set
index c899be0635544a1f6285d76c398ca9d520dedac8..db492af140a8de25cb31dbf8a5a7bbad16af995b 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_SYS_PROMPT="VExpress64# "
 # CONFIG_CMD_EDITENV is not set
 # CONFIG_CMD_ENV_EXISTS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_ARMFLASH=y
 # CONFIG_CMD_FPGA is not set
index 22673624cc64852409717b05cf9b0898f62b7d7f..537301c1c4f01ec0bc2c4034a2e208137c5d2cb9 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_SYS_PROMPT="VExpress64# "
 # CONFIG_CMD_EDITENV is not set
 # CONFIG_CMD_ENV_EXISTS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_ARMFLASH=y
 # CONFIG_CMD_FPGA is not set
index 02740a4441b944282f143a648a6f60b7019af3cf..2720a71b70e20e30db9af76498eaa8ee923e6266 100644 (file)
@@ -14,6 +14,7 @@ CONFIG_SYS_PROMPT="VExpress64# "
 # CONFIG_CMD_EDITENV is not set
 # CONFIG_CMD_ENV_EXISTS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_ARMFLASH=y
 # CONFIG_CMD_FPGA is not set
index 49c0786d955734a2155d93c9d17ba1707bf3f4ae..6b568b451f8400ee4b5c4f6406c9b7f2ad0faf67 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_SYS_PROMPT="ZynqMP> "
 # CONFIG_CMD_XIMG is not set
 # CONFIG_CMD_EDITENV is not set
 # CONFIG_CMD_ENV_EXISTS is not set
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_LOADB is not set
 # CONFIG_CMD_LOADS is not set
 CONFIG_CMD_GPT=y
index a3585d07117b380b8f7d14c2f8401b7147024c27..4d7bcf3bd57c76aface53993ab38a6cf3f93ddc6 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_SYS_PROMPT="ZynqMP> "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
index 3693d9b2a40ad92d08ed510703981bfd8ec076b7..822b25d553879605b11e1437432eca4e61989b83 100644 (file)
@@ -21,6 +21,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_SYS_PROMPT="ZynqMP> "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPT=y
 CONFIG_CMD_NAND=y
index a4c73f8355070e9f4eccecc0c6eb9dd030ab2c17..89813df4a03feb5f345c4ae04806e4ed3308d22c 100644 (file)
@@ -16,6 +16,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_SYS_PROMPT="ZynqMP> "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_MMC=y
 CONFIG_CMD_I2C=y
index f981b21678650a5dc3e17467f6f5a23f5c88e7b3..b8fe33e47971d36a2841a285d4c617aebef3e56b 100644 (file)
@@ -17,6 +17,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_SYS_PROMPT="ZynqMP> "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_MMC=y
 CONFIG_CMD_I2C=y
index 7b65fe0917316bdd82d4108f3eddbe823475890f..b13bf5b845d7ff25f8a5f75aeab7fdc658db0c67 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_SYS_PROMPT="ZynqMP> "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
index 4bed5890f100f9a8109f9a535832832dfc4f108f..2489d8966b50667c1e1cfc07c1883d15977b21e2 100644 (file)
@@ -19,6 +19,7 @@ CONFIG_SPL_OS_BOOT=y
 CONFIG_SYS_PROMPT="ZynqMP> "
 # CONFIG_CMD_IMLS is not set
 CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_UNZIP=y
 # CONFIG_CMD_FLASH is not set
 CONFIG_CMD_GPT=y
 CONFIG_CMD_MMC=y
index a0d4e94a048c3f3b9ae0043990dbca6b247a24c3..a8befe38e8eed54c55306309123b5d8ab2b0f4a6 100644 (file)
@@ -49,7 +49,6 @@
 #define CONFIG_CMD_TERMINAL    /* built-in Serial Terminal     */
 #define CONFIG_CMD_UBIFS       /* UBIFS Support                */
 #define CONFIG_CMD_UNIVERSE    /* Tundra Universe Support      */
-#define CONFIG_CMD_UNZIP       /* unzip from memory to memory  */
 #define CONFIG_CMD_ZFS         /* ZFS Support                  */
 
 #endif /* _CONFIG_CMD_ALL_H */
index 02094b58af3b5ca77f8af463ee8a45ba724f0a12..82ee7c62e00297aad196de0db6e4a18b282becd8 100644 (file)
@@ -22,7 +22,6 @@
 
 #define CONFIG_VIDEO_BMP_GZIP
 #define CONFIG_SYS_VIDEO_LOGO_MAX_SIZE (1366*767*4)
-#define CONFIG_CMD_UNZIP
 #define CONFIG_CMD_BMP
 #define CONFIG_BMP_24BMP
 #define CONFIG_BMP_32BPP
index da1c58983a568d586b60970ae6973d27cff75639..9b7f43f13491ddbaed822979f0f8613cb97caaad 100644 (file)
@@ -57,7 +57,6 @@
 /*#define CONFIG_SUPPORT_EMMC_BOOT */
 #define CONFIG_CMD_REGINFO     /* Register dump                */
 #define CONFIG_CMD_TFTP
-#define CONFIG_CMD_UNZIP
 
 /* Partition table support */
 #define HAVE_BLOCK_DEVICE /* Needed for partition commands */
index a3c40d68aa5266057fcbd0ba897c2838bdcb831a..55d65ef7e8becc58dea83f9a1032ff22575ec4b6 100644 (file)
@@ -95,7 +95,6 @@
 #define CONFIG_CMD_REISER
 #define CONFIG_CMD_SAVES
 #define CONFIG_CMD_UBIFS
-#define CONFIG_CMD_UNZIP
 #endif
 
 /* NAND flash */
index 9ec81402b4ecbf059f1fa267c80364fc65a193b1..899d62de2689070b593814e58b32103d5be75cf6 100644 (file)
@@ -74,7 +74,6 @@
 #define CONFIG_FS_EXT4
 
 /* Command line configuration */
-#define CONFIG_CMD_UNZIP
 #define CONFIG_CMD_ENV
 
 #define CONFIG_MTD_PARTITIONS
index 22962392e22032ce3d91de6a4d107e1a9f50dd4f..b453d8fba8128144cb053d36832275c145ac0649 100644 (file)
 
 #define CONFIG_SYS_EEPROM_PAGE_WRITE_DELAY_MS  10
 
-#ifdef CONFIG_ARM64
-#define CONFIG_CMD_UNZIP
-#endif
-
 /*-----------------------------------------------------------------------
  * MMU and Cache Setting
  *----------------------------------------------------------------------*/
index 3a4bfe81330bc671deed8412638db8553a795d39..35ac60ac2646da5f72ef1aa290393e70d02657f4 100644 (file)
 #endif
 
 /*#define CONFIG_MENU_SHOW*/
-#define CONFIG_CMD_UNZIP
 #define CONFIG_CMD_ENV
 
 /* BOOTP options */
index 4759373e51f5b6e10b4a01d81485d9fa4fdb8cef..73830b212b2b504916e0faffbcecda4688559c85 100644 (file)
 
 #define CONFIG_SYS_BOOTM_LEN   (60 * 1024 * 1024)
 
-#define CONFIG_CMD_UNZIP
-
 #define CONFIG_BOARD_EARLY_INIT_R
 #define CONFIG_CLOCKS