-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathfpga_ip.mk
41 lines (32 loc) · 1.16 KB
/
fpga_ip.mk
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
include $(OSCIMP_DIGITAL_IP)/boards.def
# convert all files in absolute
V_SRC = $(realpath $(V_LIST))
V_SRC += $(realpath $(V_LIST_$(BOARD_NAME)))
VHDL_SRC = $(realpath $(VHDL_LIST))
VHDL_SRC += $(realpath $(VHDL_LIST_$(BOARD_NAME)))
REAL_CONSTR = $(realpath $(CONSTR))
REAL_CONSTR += $(realpath $(CONSTR_$(BOARD_NAME)))
TCL_SRC = $(realpath $(TCL_LIST))
TCL_SRC += $(realpath $(TCL_LIST_$(BOARD_NAME)))
# files
SRC = $(V_SRC) $(VHDL_SRC)
# to generate ipx file with all IPs available
# in all repositories we need to provides a list with ','
# to ip-make-ipx
IP_REPO += $(OSCIMP_DIGITAL_IP)
IP_TMP = $(shell realpath --relative-to=. $(IP_REPO))
IP_PATH = $(shell echo $(IP_TMP) | tr ' ' ',')
INSTALL_DIR = $(OSCIMP_DIGITAL_NFS)/$(BOARD_NAME)/$(PRJ)/bitstreams/
-include $(OSCIMP_DIGITAL_IP)/$(TOOLS).mk
tmp:
mkdir -p $@
force_install:
install:$(BIN_FILE)
if [ ! -d $(INSTALL_DIR) ]; then mkdir -p $(INSTALL_DIR); fi
cp $(TARGET_BIN) $(INSTALL_DIR)
force_install:
if [ ! -d $(INSTALL_DIR) ]; then mkdir -p $(INSTALL_DIR); fi
cp $(TARGET_BIN) $(INSTALL_DIR)
clean:
@rm -rf tmp
@rm -rf $(CLEAN_FILES) *.$(OUT_BIN)