summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2021-05-04 12:45:11 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-05-17 08:29:42 +0200
commit7000b90984a0ca50443f1bd84c058e129c05f229 (patch)
tree54a04e62cf2156af635ed4a4f7982f79a83bc584 /include
parent9174376cd08e1e3e638cd852525cc529d25fde47 (diff)
downloadbarebox-7000b90984a0ca50443f1bd84c058e129c05f229.tar.gz
barebox-7000b90984a0ca50443f1bd84c058e129c05f229.tar.xz
bootm: move ARM64 Linux image parsing to common directory
Linux on RISC-V adopts the same structure as on ARM64 for both 32- and 64-bit kernel images and it's likely future architectures will as well. In preparation for adding RISC-V Linux boot support, move the bulk of the code to a common location for reusability. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20210504104513.2640-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/bootm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/bootm.h b/include/bootm.h
index 51e9b3d71a..655c5152d9 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -148,4 +148,6 @@ enum bootm_verify bootm_get_verify_mode(void);
#define UIMAGE_SOME_ADDRESS (UIMAGE_INVALID_ADDRESS - 1)
+void *booti_load_image(struct image_data *data, phys_addr_t *oftree);
+
#endif /* __BOOTM_H */