summaryrefslogtreecommitdiff
path: root/tools/zynqmpimage.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/zynqmpimage.c
parentb123aff26f580343adf57b5145d8334cd2a4b6b4 (diff)
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/zynqmpimage.c')
-rw-r--r--tools/zynqmpimage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/zynqmpimage.c b/tools/zynqmpimage.c
index 870a6b5710..19b2f02ff1 100644
--- a/tools/zynqmpimage.c
+++ b/tools/zynqmpimage.c
@@ -86,7 +86,7 @@ static uint32_t zynqmpimage_checksum(struct zynqmp_header *ptr)
return cpu_to_le32(checksum);
}
-static void zynqmpimage_default_header(struct zynqmp_header *ptr)
+void zynqmpimage_default_header(struct zynqmp_header *ptr)
{
int i;
@@ -209,7 +209,7 @@ static void print_partition(const void *ptr, const struct partition_header *ph)
printf(" Checksum : 0x%08x\n", le32_to_cpu(ph->checksum));
}
-static void zynqmpimage_print_header(const void *ptr)
+void zynqmpimage_print_header(const void *ptr)
{
struct zynqmp_header *zynqhdr = (struct zynqmp_header *)ptr;
int i;