-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefileRecovery
55 lines (39 loc) · 1.4 KB
/
MakefileRecovery
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
55
all: os
# Update LOKI_DIR to the loki submodule root
LOKI_DIR=./
# Update APPLICATION_DIR to your application root
APPLICATION_DIR=./loki-recovery/
# Update LOKI_ENV_DIR to the location of repo.env and machine.env
LOKI_ENV_DIR=./loki-recovery/
# If using custom constraints, set the absolute path here
export CONSTRAINTS_SOURCE_DIR
undefine CONSTRAINTS_SOURCE_DIR
#CONSTRAINTS_SOURCE_DIR=$(shell pwd)/CUSTOM-constraints
# If using a pre-build hardware file (XSA) or software (FSBL, PMUFW), set the absolute export path
export HW_EXPORT_DIR
export SW_EXPORT_DIR
undefine HW_EXPORT_DIR
undefine SW_EXPORT_DIR
# Include recipes to take the environment and run the configuration using the autoconf params
# Provides loki-configure-hw, loki-configure-sw, loki-configure-os
include ${LOKI_DIR}/config.mk
.PHONY: all os hardware software project constraints
constraints: loki-configure-hw
$(MAKE) -C ${LOKI_DIR} constraints
project: loki-configure-hw constraints
# Instead of actually building the hardware, just make the project in Vivado and stop
$(MAKE) -C ${LOKI_DIR} project
hardware:
$(MAKE) -C ${LOKI_DIR} hardware
software: loki-configure-sw hardware
$(MAKE) -C ${LOKI_DIR} software
os: loki-configure-os software
$(MAKE) -C ${LOKI_DIR} os
mostlyclean:
$(MAKE) -C ${LOKI_DIR} mostlyclean
clean:
$(MAKE) -C ${LOKI_DIR} clean
distclean:
$(MAKE) -C ${LOKI_DIR} distclean
clobber:
$(MAKE) -C ${LOKI_DIR} clobber