mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 00:32:04 +02:00
Kconfig: Move CONFIG_FIT and related options to Kconfig
There are already two FIT options in Kconfig but the CONFIG options are still in the header files. We need to do a proper move to fix this. Move these options to Kconfig and tidy up board configuration: CONFIG_FIT CONFIG_OF_BOARD_SETUP CONFIG_OF_SYSTEM_SETUP CONFIG_FIT_SIGNATURE CONFIG_FIT_BEST_MATCH CONFIG_FIT_VERBOSE CONFIG_OF_STDOUT_VIA_ALIAS CONFIG_RSA Unfortunately the first one is a little complicated. We need to make sure this option is not enabled in SPL by this change. Also this option is enabled automatically in the host builds by defining CONFIG_FIT in the image.h file. To solve this, add a new IMAGE_USE_FIT #define which can be used in files that are built on the host but must also build for U-Boot and SPL. Note: Masahiro's moveconfig.py script is amazing. Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Add microblaze change, various configs/ re-applies] Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
@@ -108,7 +108,7 @@ static int bootm_find_os(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
images.os.arch = image_get_arch(os_hdr);
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_FIT)
|
||||
#if IMAGE_ENABLE_FIT
|
||||
case IMAGE_FORMAT_FIT:
|
||||
if (fit_image_get_type(images.fit_hdr_os,
|
||||
images.fit_noffset_os,
|
||||
@@ -180,7 +180,7 @@ static int bootm_find_os(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
/* Kernel entry point is the setup.bin */
|
||||
} else if (images.legacy_hdr_valid) {
|
||||
images.ep = image_get_ep(&images.legacy_hdr_os_copy);
|
||||
#if defined(CONFIG_FIT)
|
||||
#if IMAGE_ENABLE_FIT
|
||||
} else if (images.fit_uname_os) {
|
||||
int ret;
|
||||
|
||||
@@ -245,7 +245,7 @@ int bootm_find_images(int flag, int argc, char * const argv[])
|
||||
set_working_fdt_addr((ulong)images.ft_addr);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_FIT)
|
||||
#if IMAGE_ENABLE_FIT
|
||||
/* find all of the loadables */
|
||||
ret = boot_get_loadable(argc, argv, &images, IH_ARCH_DEFAULT,
|
||||
NULL, NULL);
|
||||
@@ -788,7 +788,7 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
const void *buf;
|
||||
const char *fit_uname_config = NULL;
|
||||
const char *fit_uname_kernel = NULL;
|
||||
#if defined(CONFIG_FIT)
|
||||
#if IMAGE_ENABLE_FIT
|
||||
int os_noffset;
|
||||
#endif
|
||||
|
||||
@@ -849,7 +849,7 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
|
||||
bootstage_mark(BOOTSTAGE_ID_DECOMP_IMAGE);
|
||||
break;
|
||||
#endif
|
||||
#if defined(CONFIG_FIT)
|
||||
#if IMAGE_ENABLE_FIT
|
||||
case IMAGE_FORMAT_FIT:
|
||||
os_noffset = fit_image_load(images, img_addr,
|
||||
&fit_uname_kernel, &fit_uname_config,
|
||||
|
Reference in New Issue
Block a user