aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-07-30 11:16:53 -0600
committerSimon Glass <sjg@chromium.org>2023-08-10 18:34:54 -0600
commit1a0810924a29311a330d717a2813d212865a5df0 (patch)
treee9321c6d7ac042b677a03508bef47d6e6026179c /boot
parentc5dca50bbb07a0040197f9a6ccf5da3493736b5d (diff)
downloadu-boot-1a0810924a29311a330d717a2813d212865a5df0.zip
u-boot-1a0810924a29311a330d717a2813d212865a5df0.tar.gz
u-boot-1a0810924a29311a330d717a2813d212865a5df0.tar.bz2
bootstd: Move common zimage functions to bootm.h
We want to avoid using #ifdefs around header files and in the code. It makes sense to collect the various functions used for loading images into a single header which can be included by all architectures. The best place for this is the arch-neutral bootm.h header, so use that. Move some zimage functions into this bootm.h header. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'boot')
-rw-r--r--boot/bootmeth_cros.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/boot/bootmeth_cros.c b/boot/bootmeth_cros.c
index 0528471..3b9e755 100644
--- a/boot/bootmeth_cros.c
+++ b/boot/bootmeth_cros.c
@@ -12,15 +12,13 @@
#include <blk.h>
#include <bootdev.h>
#include <bootflow.h>
+#include <bootm.h>
#include <bootmeth.h>
#include <display_options.h>
#include <dm.h>
#include <malloc.h>
#include <mapmem.h>
#include <part.h>
-#ifdef CONFIG_X86
-#include <asm/zimage.h>
-#endif
#include <linux/sizes.h>
#include "bootmeth_cros.h"