From 3e27b548ae201bbde34e6fe9e89552da773ca177 Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Fri, 1 Jun 2018 15:17:36 +0200 Subject: [PATCH] Create empty file if no FPGA bitstream is provided --- build/xlnx_4.9/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 $@ -- 2.39.2