aboutsummaryrefslogtreecommitdiff
path: root/tools/mkimage.c
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2018-04-13 14:18:52 +0200
committerMichal Simek <michal.simek@xilinx.com>2018-05-11 09:23:44 +0200
commit6915dcf35987d654b491524f151e56b91e0d0ec9 (patch)
treece2fc7cff7811d8714e4025b15bdeca14f910aa7 /tools/mkimage.c
parentb123aff26f580343adf57b5145d8334cd2a4b6b4 (diff)
downloadu-boot-6915dcf35987d654b491524f151e56b91e0d0ec9.zip
u-boot-6915dcf35987d654b491524f151e56b91e0d0ec9.tar.gz
u-boot-6915dcf35987d654b491524f151e56b91e0d0ec9.tar.bz2
tools: zynqmpimage: Add bif support
The officially described way to generate boot.bin files for ZynqMP is to describe the contents of the target binary using a file of the "bif" format. This file then links to other files that all get packed into a bootable image. This patch adds support to read such a .bif file and generate a respective ZynqMP boot.bin file that can include the normal image and pmu files, but also supports image partitions now. This makes it a handy replacement for the proprietary "bootgen" utility that is currently used to generate boot.bin files with FSBL. Signed-off-by: Alexander Graf <agraf@suse.de> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'tools/mkimage.c')
-rw-r--r--tools/mkimage.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/mkimage.c b/tools/mkimage.c
index 64ad131..e0d4d20 100644
--- a/tools/mkimage.c
+++ b/tools/mkimage.c
@@ -515,6 +515,13 @@ int main(int argc, char **argv)
} else if (params.type == IH_TYPE_PBLIMAGE) {
/* PBL has special Image format, implements its' own */
pbl_load_uboot(ifd, &params);
+ } else if (params.type == IH_TYPE_ZYNQMPBIF) {
+ /* Image file is meta, walk through actual targets */
+ int ret;
+
+ ret = zynqmpbif_copy_image(ifd, &params);
+ if (ret)
+ return ret;
} else {
copy_file(ifd, params.datafile, pad_len);
}