Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
94 lines (72 loc) · 3.08 KB
/
Copy pathMakefile
File metadata and controls
94 lines (72 loc) · 3.08 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
#
# Copyright(c) 2011-2025 Intel Corporation
#
# SPDX-License-Identifier: BSD-3-Clause
#
CUR_MKFILE:= $(lastword $(MAKEFILE_LIST))
TOPDIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST))))
include $(TOPDIR)/QuoteGeneration/version.mk
.PHONY: all clean rebuild ThirdParty QuoteGeneration QuoteVerification \
PCKCertSelection PCKRetrievalTool SGXPlatformRegistration \
PckClientTool WinPle WinPleIntel PoeTools SampleCode
ifeq ($(BUILD_SAMPLECODE), 1)
all: QuoteGeneration QuoteVerification PCKCertSelection PCKRetrievalTool SGXPlatformRegistration PckClientTool WinPle WinPleIntel ThirdParty SampleCode PoeTools
else
all: QuoteGeneration QuoteVerification PCKCertSelection PCKRetrievalTool SGXPlatformRegistration PckClientTool WinPle WinPleIntel ThirdParty PoeTools
endif
ThirdParty:
+$(MAKE) -C external
QuoteGeneration: QuoteVerification
+$(MAKE) -C QuoteGeneration
QuoteVerification:
+$(MAKE) -C QuoteVerification
PCKCertSelection:
+$(MAKE) -C tools/PCKCertSelection
PCKRetrievalTool: QuoteGeneration
+$(MAKE) -C tools/PCKRetrievalTool
SGXPlatformRegistration: ThirdParty
+$(MAKE) -C tools/SGXPlatformRegistration
PckClientTool:
+$(MAKE) -C tools/PcsClientTool
PoeTools: ThirdParty
+$(MAKE) -C tools/PoeTools POE_VERSION=$(DCAP_VER)
.PHONY: PoeTools_deb PoeTools_rpm
PoeTools_deb:
+$(MAKE) -C tools/PoeTools deb POE_VERSION=$(DCAP_VER)
PoeTools_rpm:
+$(MAKE) -C tools/PoeTools rpm POE_VERSION=$(DCAP_VER)
WinPle:
+$(MAKE) -C driver/win/PLE
WinPleIntel: WinPle
+$(MAKE) -C driver/win/PLE INTEL_SIGNED=1
SampleCode: QuoteGeneration
export DCAP_LINUX_BUILD_DIR=$(TOPDIR)/QuoteGeneration/build/linux/ && $(MAKE) -C SampleCode/QuoteGenerationSample/
export DCAP_LINUX_BUILD_DIR=$(TOPDIR)/QuoteGeneration/build/linux/ && $(MAKE) -C SampleCode/QuoteVerificationSample/
clean:
+$(MAKE) -C external clean
+$(MAKE) -C QuoteGeneration clean
+$(MAKE) -C QuoteVerification clean
+$(MAKE) -C tools/PCKCertSelection clean
+$(MAKE) -C tools/PCKRetrievalTool clean
+$(MAKE) -C tools/SGXPlatformRegistration clean
+$(MAKE) -C tools/PcsClientTool clean
+$(MAKE) -C tools/PoeTools clean
+$(MAKE) -C driver/win/PLE clean
+$(MAKE) -C driver/win/PLE INTEL_SIGNED=1 clean
+$(MAKE) -C SampleCode/QuoteGenerationSample clean
+$(MAKE) -C SampleCode/QuoteVerificationSample clean
rebuild:
+$(MAKE) -f $(CUR_MKFILE) clean
+$(MAKE) -f $(CUR_MKFILE) all
# Repo-wide `test` and `coverage`. Included down here, not next to version.mk:
# the file defines a `coverage` target, which would become the default goal.
include $(TOPDIR)/coverage-report.mk
# `all` also drives the Windows drivers and the rpm/deb packaging, neither of
# which has anything to do with the measurement.
COV_GOALS := QuoteGeneration QuoteVerification PCKCertSelection PCKRetrievalTool SGXPlatformRegistration
# Spelled out here rather than in the include: CI greps this file for the target.
.PHONY: test
test:
# Discovery reads the git index, so a tree without one would pass silently.
@test -n "$(UT_DIRS)" || { echo "no directory declares a 'test' target"; exit 1; }
@set -e; for d in $(UT_DIRS); do echo "=== test: $$d"; $(MAKE) -C $$d test; done