mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
configs: Rename CONFIG_IMAGE_FORMAT_LEGACY to CONFIG_LEGACY_IMAGE_FORMAT
The name CONFIG_LEGACY_IMAGE_FORMAT reads slightly better along with allowing us to avoid a rather nasty Kbuild/Kconfig issue down the line with CONFIG_IS_ENABLED(IMAGE_FORMAT_LEGACY). In a few places outside of cmd/ switch to using CONFIG_IS_ENABLED() to test what is set. Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -846,7 +846,7 @@ static int nand_load_image(cmd_tbl_t *cmdtp, struct mtd_info *mtd,
|
||||
int r;
|
||||
char *s;
|
||||
size_t cnt;
|
||||
#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
|
||||
#if defined(CONFIG_LEGACY_IMAGE_FORMAT)
|
||||
image_header_t *hdr;
|
||||
#endif
|
||||
#if defined(CONFIG_FIT)
|
||||
@@ -874,7 +874,7 @@ static int nand_load_image(cmd_tbl_t *cmdtp, struct mtd_info *mtd,
|
||||
bootstage_mark(BOOTSTAGE_ID_NAND_HDR_READ);
|
||||
|
||||
switch (genimg_get_format ((void *)addr)) {
|
||||
#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
|
||||
#if defined(CONFIG_LEGACY_IMAGE_FORMAT)
|
||||
case IMAGE_FORMAT_LEGACY:
|
||||
hdr = (image_header_t *)addr;
|
||||
|
||||
|
Reference in New Issue
Block a user