-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathMakefile
executable file
·33 lines (22 loc) · 969 Bytes
/
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
# Copyright (C) 2022 Xilinx, Inc
# SPDX-License-Identifier: BSD-3-Clause
ROOT_PATH := $(abspath $(dir $(firstword $(MAKEFILE_LIST))))
PREBUILT_IMAGE := ${ROOT_PATH}/pynq/sdbuild/prebuilt/pynq_rootfs.aarch64.tar.gz
PREBUILT_SDIST := ${ROOT_PATH}/pynq/sdbuild/prebuilt/pynq_sdist.tar.gz
all: gitsubmodule base image
echo ${ROOT_PATH}
image: gitsubmodule ${PREBUILT_SDIST} ${PREBUILT_IMAGE}
cd ${ROOT_PATH}/pynq/sdbuild/ && make BOARDDIR=${ROOT_PATH}/ BOARDS=Pynq-ZU PYNQ_SDIST=${PREBUILT_SDIST} PYNQ_ROOTFS=${PREBUILT_IMAGE}
base: ${BOARD_FILES} ${ROOT_PATH}/Pynq-ZU/base/base.bit
${ROOT_PATH}/Pynq-ZU/base/base.bit:
cd ${ROOT_PATH}/Pynq-ZU/base && make
gitsubmodule:
git submodule init && git submodule update
${PREBUILT_IMAGE}:
wget https://bit.ly/pynq_aarch64_v3 -O $@
@echo "Got $@"
${PREBUILT_SDIST}:
wget https://github.com/Xilinx/PYNQ/releases/download/v3.0.0/pynq-3.0.0.tar.gz -O $@
@echo "Got $@"
cleanbuild:
sudo make -C pynq/sdbuild/ clean