-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·49 lines (36 loc) · 1.45 KB
/
Makefile
File metadata and controls
executable file
·49 lines (36 loc) · 1.45 KB
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
46
47
48
49
include ThunderGP.mk
.PHONY: all clean exe hwemuprepare
INTERFACE := 3 ## using interface 0 and 1
NETLAYERDIR = NetLayers/
CMACDIR = Ethernet/
NETLAYERHLS = 100G-fpga-network-stack-core
TEMP_DIR := _x
BINARY_CONTAINER_OBJS = $(NETLAYERDIR)$(TEMP_DIR)/networklayer.xo
ifeq ($(NODE_TYPE), GAS)
CONFIGFLAGS += --config ./connection_GAS.ini
else ifeq ($(NODE_TYPE), GS)
CONFIGFLAGS += --config ./connection_GS.ini
else
@echo "NODE TYPE not match"
exit 1
endif
CONFIGFLAGS += --advanced.param compiler.userPostSysLinkOverlayTcl=$(CMACDIR)post_sys_link.tcl
#CONFIGFLAGS += --kernel_frequency 280
# Include cmac kernel depending on the interface
BINARY_CONTAINER_OBJS += $(CMACDIR)$(TEMP_DIR)/cmac_1.xo
BINARY_CONTAINER_OBJS += $(CMACDIR)$(TEMP_DIR)/cmac_0.xo
# Linker parameters
# Linker userPostSysLinkTcl param
ifeq (u5,$(findstring u5, $(DEVICES)))
HLS_IP_FOLDER = $(shell readlink -f ./$(NETLAYERDIR)$(NETLAYERHLS)/synthesis_results_HBM)
else ifeq (u280,$(findstring u280, $(DEVICES)))
HLS_IP_FOLDER = $(shell readlink -f ./$(NETLAYERDIR)$(NETLAYERHLS)/synthesis_results_HBM)
else ifeq (u2,$(findstring u2, $(DEVICES)))
HLS_IP_FOLDER = $(shell readlink -f ./$(NETLAYERDIR)$(NETLAYERHLS)/synthesis_results_noHBM)
endif
LIST_REPOS = --user_ip_repo_paths $(HLS_IP_FOLDER)
$(CMACDIR)$(TEMP_DIR)/%.xo:
make -C $(CMACDIR) all DEVICES=$(DEVICES) INTERFACE=$(INTERFACE)
$(NETLAYERDIR)$(TEMP_DIR)/%.xo:
make -C $(NETLAYERDIR) all DEVICES=$(DEVICES)
include utils/main.mk