mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +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:
@@ -98,7 +98,7 @@ static int bootm_find_os(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
|
||||
/* get image parameters */
|
||||
switch (genimg_get_format(os_hdr)) {
|
||||
#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
|
||||
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
|
||||
case IMAGE_FORMAT_LEGACY:
|
||||
images.os.type = image_get_type(os_hdr);
|
||||
images.os.comp = image_get_comp(os_hdr);
|
||||
@@ -738,7 +738,7 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
|
||||
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
|
||||
/**
|
||||
* image_get_kernel - verify legacy format kernel image
|
||||
* @img_addr: in RAM address of the legacy format image to be verified
|
||||
@@ -807,7 +807,7 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
char * const argv[], bootm_headers_t *images,
|
||||
ulong *os_data, ulong *os_len)
|
||||
{
|
||||
#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
|
||||
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
|
||||
image_header_t *hdr;
|
||||
#endif
|
||||
ulong img_addr;
|
||||
@@ -828,7 +828,7 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
*os_data = *os_len = 0;
|
||||
buf = map_sysmem(img_addr, 0);
|
||||
switch (genimg_get_format(buf)) {
|
||||
#if defined(CONFIG_IMAGE_FORMAT_LEGACY)
|
||||
#if CONFIG_IS_ENABLED(LEGACY_IMAGE_FORMAT)
|
||||
case IMAGE_FORMAT_LEGACY:
|
||||
printf("## Booting kernel from Legacy Image at %08lx ...\n",
|
||||
img_addr);
|
||||
|
Reference in New Issue
Block a user