mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00: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:
parent
27eb177b39
commit
c76c93a3d5
49 changed files with 67 additions and 67 deletions
|
@ -15,7 +15,7 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
|
|||
ulong addr = CONFIG_SYS_LOAD_ADDR;
|
||||
ulong cnt;
|
||||
disk_partition_t info;
|
||||
#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
|
||||
#if defined(CONFIG_LEGACY_IMAGE_FORMAT)
|
||||
image_header_t *hdr;
|
||||
#endif
|
||||
struct blk_desc *dev_desc;
|
||||
|
@ -62,7 +62,7 @@ int common_diskboot(cmd_tbl_t *cmdtp, const char *intf, int argc,
|
|||
bootstage_mark(BOOTSTAGE_ID_IDE_PART_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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue