-
Notifications
You must be signed in to change notification settings - Fork 615
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·32 lines (26 loc) · 1.12 KB
/
Makefile
File metadata and controls
executable file
·32 lines (26 loc) · 1.12 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
#
# Copyright (C) 2024, Advanced Micro Devices, Inc. All rights reserved.
# SPDX-License-Identifier: MIT
#
# Author: Stephen MacMahon
SHELL := /bin/bash
TOOLS ?= ""
VERSION ?= 2025.2
LINUX_TMP_DIR ?= /tmp/${USER}/${VERSION}/zcu102/petalinux
all: create_xsa sysroots unified_workspace
create_xsa:
$(RM) -rf ./zcu102
vivado -mode tcl -source create_xsa.tcl
sysroots:
$(RM) -rf ./xilinx-zcu102-v2025.2 ${LINUX_TMP_DIR}
petalinux-create project --template zynqMP -n ./xilinx-zcu102-v2025.2 --tmpdir ${LINUX_TMP_DIR}
cd ./xilinx-zcu102-v2025.2 && petalinux-config --get-hw-description=../zcu102/design_1_wrapper.xsa --silentconfig
sed -i 's/template/zcu102-rev1.0/' ./xilinx-zcu102-v2025.2/project-spec/configs/config
cd ./xilinx-zcu102-v2025.2 && petalinux-build
cd ./xilinx-zcu102-v2025.2 && petalinux-build --sdk
cd xilinx-zcu102-v2025.2/images/linux/ && unset LD_LIBRARY_PATH && ./sdk.sh -y -d sysroot
unified_workspace:
$(RM) -rf ./unified_workspace
vitis -s unified_workspace.py ./zcu102/design_1_wrapper.xsa
clean:
$(RM) -rf ./zcu102 ./classic_workspace ./unified_workspace ./xilinx-zcu102-v2025.2