From: Michal Sojka Date: Fri, 1 Jun 2018 13:17:36 +0000 (+0200) Subject: Create empty file if no FPGA bitstream is provided X-Git-Url: https://rtime.felk.cvut.cz/gitweb/zynq/linux-build.git/commitdiff_plain/3e27b548ae201bbde34e6fe9e89552da773ca177 Create empty file if no FPGA bitstream is provided --- diff --git a/build/xlnx_4.9/Makefile b/build/xlnx_4.9/Makefile index 1aec701..a04badb 100644 --- a/build/xlnx_4.9/Makefile +++ b/build/xlnx_4.9/Makefile @@ -3,8 +3,13 @@ all: image.ub microzed.dtb: microzed.dts linux/source/arch/arm/boot/dts/zynq-7000.dtsi dtc -I dts -O dtb -o $@ $< -image.ub: uboot-image.its linux/arch/arm/boot/zImage microzed.dtb ../buildroot/images/rootfs.cpio +image.ub: uboot-image.its linux/arch/arm/boot/zImage microzed.dtb ../buildroot/images/rootfs.cpio ../../fs-overlay/fpga.bit mkimage -f uboot-image.its image.ub linux/arch/arm/boot/zImage linux/source/arch/arm/boot/dts/zynq-7000.dtsi: $(MAKE) -C linux + +# Create empty file if no FPGA bitstream is provided +../../fs-overlay/fpga.bit: + mkdir -p $(@D) + touch $@