Commit 002c3234e63303062fdc7511ef69be1fdda3093c
Committed by
Tom Rini
1 parent
83a1f933d1
Exists in
smarc_8mq_lf_v2020.04
and in
14 other branches
Migrate IMAGE_FORMAT_LEGACY to Kconfig
This converts IMAGE_FORMAT_LEGACY to Kconfig Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 32 changed files with 34 additions and 35 deletions Side-by-side Diff
- Kconfig
- README
- configs/ids8313_defconfig
- configs/imx6dl_icore_nand_defconfig
- configs/imx6q_icore_nand_defconfig
- configs/imx6qdl_icore_mipi_defconfig
- configs/imx6qdl_icore_mmc_defconfig
- configs/imx6qdl_icore_nand_defconfig
- configs/imx6qdl_icore_rqs_defconfig
- configs/imx6ul_geam_mmc_defconfig
- configs/imx6ul_geam_nand_defconfig
- configs/imx6ul_isiot_emmc_defconfig
- configs/imx6ul_isiot_nand_defconfig
- configs/syzygy_hub_defconfig
- configs/zynq_cc108_defconfig
- configs/zynq_microzed_defconfig
- configs/zynq_z_turn_defconfig
- configs/zynq_zc702_defconfig
- configs/zynq_zc706_defconfig
- configs/zynq_zc770_xm010_defconfig
- configs/zynq_zc770_xm011_defconfig
- configs/zynq_zc770_xm011_x16_defconfig
- configs/zynq_zc770_xm012_defconfig
- configs/zynq_zc770_xm013_defconfig
- configs/zynq_zed_defconfig
- configs/zynq_zybo_defconfig
- include/config_fallbacks.h
- include/configs/ids8313.h
- include/configs/imx6-engicam.h
- include/configs/wb50n.h
- include/configs/zynq-common.h
- scripts/config_whitelist.txt
Kconfig
| ... | ... | @@ -361,6 +361,16 @@ |
| 361 | 361 | |
| 362 | 362 | endif # FIT |
| 363 | 363 | |
| 364 | +config IMAGE_FORMAT_LEGACY | |
| 365 | + bool "Enable support for the legacy image format" | |
| 366 | + default y if !FIT_SIGNATURE | |
| 367 | + help | |
| 368 | + This option enables the legacy image format. It is enabled by | |
| 369 | + default for backward compatibility, unless FIT_SIGNATURE is | |
| 370 | + set where it is disabled so that unsigned images cannot be | |
| 371 | + loaded. If a board needs the legacy image format support in this | |
| 372 | + case, enable it here. | |
| 373 | + | |
| 364 | 374 | config OF_BOARD_SETUP |
| 365 | 375 | bool "Set up board-specific details in device tree before boot" |
| 366 | 376 | depends on OF_LIBFDT |
README
| ... | ... | @@ -2413,19 +2413,6 @@ |
| 2413 | 2413 | -150 common/cmd_nand.c Incorrect FIT image format |
| 2414 | 2414 | 151 common/cmd_nand.c FIT image format OK |
| 2415 | 2415 | |
| 2416 | -- legacy image format: | |
| 2417 | - CONFIG_IMAGE_FORMAT_LEGACY | |
| 2418 | - enables the legacy image format support in U-Boot. | |
| 2419 | - | |
| 2420 | - Default: | |
| 2421 | - enabled if CONFIG_FIT_SIGNATURE is not defined. | |
| 2422 | - | |
| 2423 | - CONFIG_DISABLE_IMAGE_LEGACY | |
| 2424 | - disable the legacy image format | |
| 2425 | - | |
| 2426 | - This define is introduced, as the legacy image format is | |
| 2427 | - enabled per default for backward compatibility. | |
| 2428 | - | |
| 2429 | 2416 | - Standalone program support: |
| 2430 | 2417 | CONFIG_STANDALONE_LOAD_ADDR |
| 2431 | 2418 |
configs/ids8313_defconfig
configs/imx6dl_icore_nand_defconfig
configs/imx6q_icore_nand_defconfig
configs/imx6qdl_icore_mipi_defconfig
configs/imx6qdl_icore_mmc_defconfig
configs/imx6qdl_icore_nand_defconfig
configs/imx6qdl_icore_rqs_defconfig
configs/imx6ul_geam_mmc_defconfig
configs/imx6ul_geam_nand_defconfig
configs/imx6ul_isiot_emmc_defconfig
configs/imx6ul_isiot_nand_defconfig
configs/syzygy_hub_defconfig
configs/zynq_cc108_defconfig
configs/zynq_microzed_defconfig
configs/zynq_z_turn_defconfig
configs/zynq_zc702_defconfig
configs/zynq_zc706_defconfig
configs/zynq_zc770_xm010_defconfig
configs/zynq_zc770_xm011_defconfig
configs/zynq_zc770_xm011_x16_defconfig
configs/zynq_zc770_xm012_defconfig
configs/zynq_zc770_xm013_defconfig
configs/zynq_zed_defconfig
configs/zynq_zybo_defconfig
include/config_fallbacks.h
| ... | ... | @@ -46,14 +46,6 @@ |
| 46 | 46 | #define CONFIG_SYS_MAXARGS 16 |
| 47 | 47 | #endif |
| 48 | 48 | |
| 49 | -#ifndef CONFIG_FIT_SIGNATURE | |
| 50 | -#define CONFIG_IMAGE_FORMAT_LEGACY | |
| 51 | -#endif | |
| 52 | - | |
| 53 | -#ifdef CONFIG_DISABLE_IMAGE_LEGACY | |
| 54 | -#undef CONFIG_IMAGE_FORMAT_LEGACY | |
| 55 | -#endif | |
| 56 | - | |
| 57 | 49 | #ifdef CONFIG_DM_I2C |
| 58 | 50 | # ifdef CONFIG_SYS_I2C |
| 59 | 51 | # error "Cannot define CONFIG_SYS_I2C when CONFIG_DM_I2C is used" |
include/configs/ids8313.h
include/configs/imx6-engicam.h
| ... | ... | @@ -130,11 +130,6 @@ |
| 130 | 130 | #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_INIT_RAM_ADDR + \ |
| 131 | 131 | CONFIG_SYS_INIT_SP_OFFSET) |
| 132 | 132 | |
| 133 | -/* FIT */ | |
| 134 | -#ifdef CONFIG_FIT | |
| 135 | -# define CONFIG_IMAGE_FORMAT_LEGACY | |
| 136 | -#endif | |
| 137 | - | |
| 138 | 133 | /* UART */ |
| 139 | 134 | #ifdef CONFIG_MXC_UART |
| 140 | 135 | # ifdef CONFIG_MX6UL |
include/configs/wb50n.h
include/configs/zynq-common.h
| ... | ... | @@ -263,9 +263,6 @@ |
| 263 | 263 | GENERATED_GBL_DATA_SIZE) |
| 264 | 264 | |
| 265 | 265 | |
| 266 | -/* FIT support */ | |
| 267 | -#define CONFIG_IMAGE_FORMAT_LEGACY /* enable also legacy image format */ | |
| 268 | - | |
| 269 | 266 | /* Extend size of kernel image for uncompression */ |
| 270 | 267 | #define CONFIG_SYS_BOOTM_LEN (60 * 1024 * 1024) |
| 271 | 268 |
scripts/config_whitelist.txt
| ... | ... | @@ -373,7 +373,6 @@ |
| 373 | 373 | CONFIG_DIMM_SLOTS_PER_CTLR |
| 374 | 374 | CONFIG_DIRECT_NOR_BOOT |
| 375 | 375 | CONFIG_DISABLE_CONSOLE |
| 376 | -CONFIG_DISABLE_IMAGE_LEGACY | |
| 377 | 376 | CONFIG_DISCONTIGMEM |
| 378 | 377 | CONFIG_DISCOVER_PHY |
| 379 | 378 | CONFIG_DISPLAY_AER_xxxx |
| ... | ... | @@ -973,7 +972,6 @@ |
| 973 | 972 | CONFIG_IDT8T49N222A |
| 974 | 973 | CONFIG_ID_EEPROM |
| 975 | 974 | CONFIG_IMA |
| 976 | -CONFIG_IMAGE_FORMAT_LEGACY | |
| 977 | 975 | CONFIG_IMX |
| 978 | 976 | CONFIG_IMX6_PWM_PER_CLK |
| 979 | 977 | CONFIG_IMX_HDMI |