# 2. peta linux
# 3. apps (latester)
+TFTPROOT := /tftpboot
+
system_project:
cd system/script && vivado -mode batch -nolog -nojournal -source recreate.tcl
-system/system.hdf:
+system/system.hdf system/system.bit:
cd system/script && vivado -mode batch -nolog -nojournal -source build.tcl
+petalinux/bootscript: FORCE
+ $(MAKE) -C petalinux bootscript
+petalinux/images/linux/BOOT.BIN: FORCE
+ $(MAKE) -C petalinux images/linux/BOOT.BIN
+
+.PHONY: dist
+dist: system/system.hdf system/system.bit petalinux/bootscript petalinux/images/linux/BOOT.BIN
+ cp -t $(TFTPROOT) $^
petalinux_config: system/system.hdf
$(MAKE) -C petalinux config
petalinux_build:
$(MAKE) -C petalinux build bootscript
+
+FORCE:
setenv tftp_dir ''
-setenv bitstream_image top_wrapper.bit
+setenv bitstream_image system.bit
setenv dtb_img system.dtb
setenv kernel_img image.ub
launch_runs impl_1 -jobs $jobs -to_step write_bitstream
wait_on_run impl_1
file copy -force ../project/canbench.runs/impl_1/top_wrapper.sysdef ../system.hdf
+file copy -force ../project/canbench.runs/impl_1/top_wrapper.bit ../system.bit