summaryrefslogtreecommitdiffstats
path: root/include/boot.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-14 10:57:34 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-22 08:15:15 +0100
commit0a37e22d638acf1b2c7c6e6ab83b6a3272b0a11c (patch)
treeba8ecab6f3328b16e958edfaa34db7ca9433c98c /include/boot.h
parent0bb6e4c533211e70a4481c8d9128fd74aaa38c66 (diff)
downloadbarebox-0a37e22d638acf1b2c7c6e6ab83b6a3272b0a11c.tar.gz
barebox-0a37e22d638acf1b2c7c6e6ab83b6a3272b0a11c.tar.xz
bootm: use names instead of numbers for image parts
The uImage format uses numbers for to identify the different parts of a image, but the FIT image format uses names. To better integrate the FIT image format into bootm always use names and convert them to numbers when necessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/boot.h')
-rw-r--r--include/boot.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/boot.h b/include/boot.h
index b172c05b67..9ddb18b11b 100644
--- a/include/boot.h
+++ b/include/boot.h
@@ -28,7 +28,7 @@ struct image_data {
/* if os is an uImage this will be provided */
struct uimage_handle *os;
- int os_num;
+ char *os_part;
/* otherwise only the filename will be provided */
char *os_file;
@@ -49,7 +49,7 @@ struct image_data {
/* if initrd is an uImage this will be provided */
struct uimage_handle *initrd;
- int initrd_num;
+ char *initrd_part;
/* otherwise only the filename will be provided */
char *initrd_file;
@@ -57,7 +57,7 @@ struct image_data {
unsigned long initrd_address;
char *oftree_file;
- int oftree_num;
+ char *oftree_part;
struct device_node *of_root_node;
struct fdt_header *oftree;