summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorClement Leger <cleger@kalray.eu>2020-06-12 09:10:35 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-06-15 16:15:17 +0200
commit76c161b367ad78ed6212f46f547b1781939b6cc2 (patch)
tree210f763d130aca458f8d787835c01a70a5f26ec0 /include
parentaff0f38d5e702286cc2560c6b3f6a5fc24b7f557 (diff)
downloadbarebox-76c161b367ad78ed6212f46f547b1781939b6cc2.tar.gz
barebox-76c161b367ad78ed6212f46f547b1781939b6cc2.tar.xz
common: bootm: add support for elf file loading
This will allows elf loader to directly have an elf file available. Thus filetype_elf bootm handlers will be able to use standard bootm functions and data. Signed-off-by: Clement Leger <cleger@kalray.eu> Tested-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/bootm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bootm.h b/include/bootm.h
index 7782de7a47..ef5148f31e 100644
--- a/include/bootm.h
+++ b/include/bootm.h
@@ -46,6 +46,9 @@ struct image_data {
/* if os is an uImage this will be provided */
struct uimage_handle *os;
+ /* if os is an elf file this will be provided */
+ struct elf_image *elf;
+
/* if os is a FIT image this will be provided */
struct fit_handle *os_fit;