-
Notifications
You must be signed in to change notification settings - Fork 210
/
Copy pathutils.mk
executable file
·54 lines (41 loc) · 1.37 KB
/
utils.mk
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
53
54
#+-------------------------------------------------------------------------------
# The following parameters are assigned with default values. These parameters can
# be overridden through the make command line
#+-------------------------------------------------------------------------------
PROFILE := no
#Generates profile summary report
ifeq ($(PROFILE), yes)
LDCLFLAGS += --profile_kernel data:all:all:all
endif
DEBUG := no
#Generates debug summary report
ifeq ($(DEBUG), yes)
CLFLAGS += --dk protocol:all:all:all
endif
#Checks for XILINX_SDX
ifndef XILINX_SDX
$(error XILINX_SDX variable is not set, please set correctly and rerun)
endif
#Checks for XILINX_XRT
check-xrt:
ifndef XILINX_XRT
$(error XILINX_XRT variable is not set, please set correctly and rerun)
endif
check-devices:
ifndef DEVICE
$(error DEVICE not set. Please set the DEVICE properly and rerun. Run "make help" for more details.)
endif
check-aws_repo:
ifndef SDACCEL_DIR
$(error SDACCEL_DIR not set. Please set it properly and rerun. Run "make help" for more details.)
endif
# device2dsa - create a filesystem friendly name from device name
# $(1) - full name of device
device2dsa = $(strip $(patsubst %.xpfm, % , $(shell basename $(DEVICE))))
# Cleaning stuff
RM = rm -f
RMDIR = rm -rf
ECHO:= @echo
docs: README.md
README.md: description.json
$(ABS_COMMON_REPO)/utility/readme_gen/readme_gen.py description.json