-
Notifications
You must be signed in to change notification settings - Fork 153
/
Makefile
30 lines (18 loc) · 1.03 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
doc:
grip --export && mv README.html docs/README.html
bitstream:
echo Generating download.bit
data2mem -bm sdk/microblaze_hw_platform/system_bd.bmm -bt sdk/microblaze_hw_platform/system.bit -bd sdk/srec_bootloader_0/Debug/srec_bootloader_0.elf tag microblaze_0 -o b sdk/microblaze_hw_platform/download.bit
echo Generating s6_pcie_microblaze.bin
promgen -w -p bin -c FF -o s6_pcie_microblaze -s 8192 -u 0000 sdk/microblaze_hw_platform/download.bit -spi
echo Generating s6_pcie_microblaze.mcs
promgen -w -p mcs -c FF -o s6_pcie_microblaze -s 8192 -u 0000 sdk/microblaze_hw_platform/download.bit -spi
flash:
python flash_to_spi.py linux_spi:dev=/dev/spidev1.0 s6_pcie_microblaze.bin
srec:
echo Generating main_0.srec
mb-objcopy -O srec sdk/main_0/Debug/main_0.elf sdk/main_0/Debug/main_0.srec
echo Generating test_axi_dma_simple_0.srec
mb-objcopy -O srec sdk/test_axi_dma_simple_0/Debug/test_axi_dma_simple_0.elf sdk/test_axi_dma_simple_0/Debug/test_axi_dma_simple_0.srec
test:
cd python && DEBUG_TLP=1 python -m unittest pcie_lib