From d74176dee9b7d36258c5c69fe63dcbf4d795d6ff Mon Sep 17 00:00:00 2001 From: Lucas Stach Date: Sat, 9 Nov 2019 15:28:21 +0100 Subject: ARM: zynq: add trivial image build mechanism Currently this just calls the zynq_mkimage script to stamp in the header checksum. Can be extended to a proper multi-image build later on. This requires a PBL to be build, but as the only supported Zynq board already selects the PBL option in the defconfig there is no big change to the previous status Signed-off-by: Lucas Stach Signed-off-by: Sascha Hauer --- images/Makefile | 3 ++- images/Makefile.zynq | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 images/Makefile.zynq (limited to 'images') diff --git a/images/Makefile b/images/Makefile index ceb00618d2..34b7a56101 100644 --- a/images/Makefile +++ b/images/Makefile @@ -161,6 +161,7 @@ include $(srctree)/images/Makefile.tegra include $(srctree)/images/Makefile.vexpress include $(srctree)/images/Makefile.xburst include $(srctree)/images/Makefile.at91 +include $(srctree)/images/Makefile.zynq include $(srctree)/images/Makefile.zynqmp include $(srctree)/images/Makefile.layerscape @@ -208,5 +209,5 @@ $(flash-list): $(image-y-path) clean-files := *.pbl *.pblb *.map start_*.imximg *.img barebox.z start_*.kwbimg \ start_*.kwbuartimg *.socfpgaimg *.mlo *.t20img *.t20img.cfg *.t30img \ *.t30img.cfg *.t124img *.t124img.cfg *.mlospi *.mlo *.mxsbs *.mxssd \ - start_*.simximg start_*.usimximg *.image + start_*.simximg start_*.usimximg *.zynqimg *.image clean-files += pbl.lds diff --git a/images/Makefile.zynq b/images/Makefile.zynq new file mode 100644 index 0000000000..e162aafae3 --- /dev/null +++ b/images/Makefile.zynq @@ -0,0 +1,12 @@ +# +# barebox image generation Makefile for Xilinx Zynq images +# +quiet_cmd_zynq_image = ZYNQIMG $@ + cmd_zynq_image = $(objtree)/scripts/zynq_mkimage $(subst .zynqimg,,$@) $@ +$(obj)/%.zynqimg: $(obj)/% FORCE + $(call if_changed,zynq_image) + +#------------------------------------------------------------------------------ + +FILE_barebox-avnet-zedboard.img = start_pbl.pblb.zynqimg +image-$(CONFIG_MACH_ZEDBOARD) += barebox-avnet-zedboard.img -- cgit v1.2.3