forked from RedPitaya/RedPitaya
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (35 loc) · 1.14 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# Authors: Matej Oblak, Iztok Jeras
# (C) Red Pitaya 2013-2015
#
# Red Pitaya FPGA/SoC Makefile
#
# Produces:
# 3. FPGA bit file.
# 1. FSBL (First stage bootloader) ELF binary.
# 2. Memtest (stand alone memory test) ELF binary.
# 4. Linux device tree source (dts).
# build artefacts
FPGA_BIT=out/red_pitaya.bit
FSBL_ELF=sdk/fsbl/executable.elf
MEMTEST_ELF=sdk/dram_test/executable.elf
DEVICE_TREE=sdk/dts/system.dts
# Vivado from Xilinx provides IP handling, FPGA compilation
# hsi (hardware software interface) provides software integration
# both tools are run in batch mode with an option to avoid log/journal files
VIVADO = vivado -nolog -nojournal -mode batch
HSI = hsi -nolog -nojournal -mode batch
.PHONY: all clean project
all: $(FPGA_BIT) $(FSBL_ELF) $(MEMTEST_ELF) $(DEVICE_TREE)
clean:
rm -rf out .Xil .srcs sdk
project:
vivado -source red_pitaya_vivado_project.tcl
$(FPGA_BIT):
$(VIVADO) -source red_pitaya_vivado.tcl
$(FSBL_ELF): $(FPGA_BIT)
$(HSI) -source red_pitaya_hsi_fsbl.tcl
$(MEMTEST_ELF): $(FPGA_BIT)
$(HSI) -source red_pitaya_hsi_dram_test.tcl
$(DEVICE_TREE): $(FPGA_BIT)
$(HSI) -source red_pitaya_hsi_dts.tcl