@@ -32,10 +32,10 @@ CARD_CFG ?= accelerator_card.cfg
3232PLATFORM ?= $(shell awk -F '=' '/platform=/ {print $$2}' $(CARD_CFG ) )
3333
3434# Board Type (determines whether design will go through packaging step)
35- BOARD_TYPE :=
35+ BOARD_TYPE :=
3636
3737# Kernel name
38- KERNEL_NAME := myproject
38+ KERNEL_NAME := # PRJNAME
3939
4040# Wrapper name
4141WRAPPER_NAME := kernel_wrapper
@@ -86,14 +86,8 @@ hls: $(BUILD_DIR)/$(KERNEL_NAME)_kernel.xo
8686
8787# Kernel linking & packaging ##################################################
8888
89- ifeq ($(BOARD_TYPE ) ,alveo)
90- # For Standard Alveo, a single step is required for linking and packaging
91- # This is standard Alveo linking and packaging
92- $(BUILD_DIR ) /$(WRAPPER_NAME ) .xclbin : $(BUILD_DIR ) /$(KERNEL_NAME ) _kernel.xo
93- mkdir -p $(XCLBIN_DIR )
94- v++ -l $(XOLDFLAGS ) --temp_dir $(XCLBIN_DIR ) --log_dir $(XCLBIN_DIR ) -o $@ $^
89+ ifneq (,$(findstring versal,$(BOARD_TYPE ) ) )
9590
96- else ifeq ($(BOARD_TYPE),alveo-versal) || ($(BOARD_TYPE),versal)
9791# For Versal architecture, linking and packaging are separate steps
9892$(BUILD_DIR ) /$(WRAPPER_NAME ) .xsa : $(BUILD_DIR ) /$(KERNEL_NAME ) _kernel.xo
9993 mkdir -p $(XCLBIN_DIR )
@@ -105,7 +99,12 @@ $(BUILD_DIR)/$(WRAPPER_NAME).xclbin: $(BUILD_DIR)/$(WRAPPER_NAME).xsa
10599 v++ -p $(XOCCPFLAGS ) --temp_dir $(XCLBIN_DIR ) --log_dir $(XCLBIN_DIR ) -o $@ $^
106100
107101else
108- @echo "$(BOARD_TYPE) board type is currently unsupported"
102+
103+ # For Standard Alveo, a single step is required for linking and packaging
104+ # This is standard Alveo linking and packaging
105+ $(BUILD_DIR ) /$(WRAPPER_NAME ) .xclbin : $(BUILD_DIR ) /$(KERNEL_NAME ) _kernel.xo
106+ mkdir -p $(XCLBIN_DIR )
107+ v++ -l $(XOLDFLAGS ) --temp_dir $(XCLBIN_DIR ) --log_dir $(XCLBIN_DIR ) -o $@ $^
109108
110109endif
111110
@@ -134,7 +133,6 @@ cleanhls:
134133
135134clean : cleanxclbin cleanhls
136135
137- ultraclean :
136+ ultraclean :
138137 rm -rf host tb_data/hw_results.dat tb_data/tb_input_features.dat * .log
139138 rm -rf $(BUILD_DIR )
140-
0 commit comments