]> rtime.felk.cvut.cz Git - fpga/zynq/canbench-sw.git/blobdiff - Makefile
bootscript: changed IPs, updated paths
[fpga/zynq/canbench-sw.git] / Makefile
index 6339ccf11c747ac699b29f270fd910e9bcec4fc7..444e90d37fd27780b568d2eea5d75ab0aaebd0fa 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,12 +2,24 @@
 # 2. peta linux
 # 3. apps (latester)
 
+TFTPROOT := /tftpboot/uzedcan
+
 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: