]>
Commit | Line | Data |
---|---|---|
62946980 | 1 | PROJECT := dhwk |
eca4cd1b | 2 | CLEANFILES := dhwk_fifo* fifo_generator_* param.opt |
377c0242 | 3 | |
12bc1626 | 4 | dhwk_all: ip all |
5 | ||
86bcba6a | 6 | ip: icon.edn ila.edn dhwk_fifo.ngc |
12bc1626 | 7 | |
8 | icon.edn: icon.arg | |
9 | $(CHIPSCOPE)/bin/lin/generate.sh icon -f=$< | |
10 | ||
11 | ila.edn: ila.arg | |
12 | $(CHIPSCOPE)/bin/lin/generate.sh ila -f=$< | |
13 | ||
078adaa6 | 14 | dhwk_fifo.ngc: fifo.xco |
12bc1626 | 15 | coregen -b $< |
48eafd87 | 16 | -rmdir -p tmp/_cg |
12bc1626 | 17 | |
71031cf5 | 18 | test: |
164bcfa1 | 19 | grep -q dhwk /proc/modules || (cd driver; ./build; sudo insmod dhwk.ko) |
71031cf5 | 20 | dd if=/dev/urandom of=/tmp/in bs=1024 count=1024 |
da252321 | 21 | (dd if=/dev/dhwk of=/tmp/out bs=1024 count=1024; md5sum /tmp/in /tmp/out)& |
71031cf5 | 22 | dd if=/tmp/in of=/dev/dhwk bs=1024 count=1024 |
71031cf5 | 23 | |
377c0242 | 24 | include ../common/Makefile.common |