summaryrefslogtreecommitdiff
path: root/include/image.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-09-26 04:43:35 +0300
committerTom Rini <trini@konsulko.com>2021-10-08 22:53:27 +0300
commit1df654a6af5b14731383039f868f12db7069a476 (patch)
treee41a848c70265971a34f54b81ed9ee10f300a66c /include/image.h
parent78740bcce87518d2c71c96e41429c4e65f516635 (diff)
downloadu-boot-1df654a6af5b14731383039f868f12db7069a476.tar.xz
image: Drop most #ifdefs in image-board.c
Remove ifdefs in this file, so far as possible without too much refactoring. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/image.h')
-rw-r--r--include/image.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/image.h b/include/image.h
index 04eccb12a9..34d13ada84 100644
--- a/include/image.h
+++ b/include/image.h
@@ -298,7 +298,11 @@ typedef struct bootm_headers {
image_header_t legacy_hdr_os_copy; /* header copy */
ulong legacy_hdr_valid;
-#if CONFIG_IS_ENABLED(FIT)
+ /*
+ * The fit_ members are only used with FIT, but it involves a lot of
+ * #ifdefs to avoid compiling that code. Since FIT is the standard
+ * format, even for SPL, this extra data size seems worth it.
+ */
const char *fit_uname_cfg; /* configuration node unit name */
void *fit_hdr_os; /* os FIT image header */
@@ -316,7 +320,6 @@ typedef struct bootm_headers {
void *fit_hdr_setup; /* x86 setup FIT image header */
const char *fit_uname_setup; /* x86 setup subimage node name */
int fit_noffset_setup;/* x86 setup subimage node offset */
-#endif
#ifndef USE_HOSTCC
image_info_t os; /* os image info */