-
Notifications
You must be signed in to change notification settings - Fork 551
/
Makefile
52 lines (42 loc) · 1.71 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
46
47
48
49
50
51
52
# Copyright (C) 2023, Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: X11
ECHO=@echo
.PHONY: help build_krnl_aes build_krnl_cbc all
help::
$(ECHO) ""
$(ECHO) "Makefile Usage:"
$(ECHO) " make build_krnl_aes TARGET=<hw/hw_emu> PLATFORM=platform_name"
$(ECHO) " Command to build xclbin file for krnl_aes design"
$(ECHO) ""
$(ECHO) " make build_krnl_cbc TARGET=<hw/hw_emu> PLATFORM=platform_name"
$(ECHO) " Command to build xclbin file for krnl_cbc design"
$(ECHO) ""
$(ECHO) " make all"
$(ECHO) " Command to build both xclbin files for krnl_aes and krnl_cbc designs"
$(ECHO) ""
$(ECHO) "--------------------------------------------------------------------------------------------------------------------------------"
$(ECHO) ""
$(ECHO) "Supported Platform (platform_name):"
$(ECHO) " xilinx_u200_gen3x16_xdma_2_202110_1"
$(ECHO) " xilinx_u250_gen3x16_xdma_4_1_202210_1"
$(ECHO) " xilinx_u50_gen3x16_xdma_5_202210_1"
$(ECHO) " xilinx_u55c_gen3x16_xdma_3_202210_1"
$(ECHO) " xilinx_u280_gen3x16_xdma_1_202211_1"
$(ECHO) ""
PART := xcu200-fsgd2104-2-e
#PART := xcu250-figd2104-2L-e
#PART := xcu50-fsvh2104-2-e
#PART := xcu55c-fsvh2892-2L-e
#PART := xcu280-fsvh2892-2L-e
PLATFORM := xilinx_u200_gen3x16_xdma_2_202110_1
#PLATFORM := xilinx_u250_gen3x16_xdma_4_1_202210_1
#PLATFORM := xilinx_u50_gen3x16_xdma_5_202210_1
#PLATFORM := xilinx_u55c_gen3x16_xdma_3_202210_1
#PLATFORM := xilinx_u280_gen3x16_xdma_1_202211_1
TARGET := hw
# Build hareware (xclbin) objects
build_krnl_aes:
make -C ./krnl_aes all PART=$(PART) PLATFORM=$(PLATFORM) TARGET=$(TARGET)
build_krnl_cbc: build_krnl_aes
make -C ./krnl_cbc all PART=$(PART) PLATFORM=$(PLATFORM) TARGET=$(TARGET)
all: build_krnl_cbc