-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
58 lines (43 loc) · 1.58 KB
/
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
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
PLAT ?= virt
out := out
.PHONY: all
all: hypervisor-firmware html-docs
$(out):
mkdir -p $@
.PHONY: clean
clean:
rm -rf $(out)
.PHONY: hypervisor-firmware
hypervisor-firmware: | $(out)
nix-build -A hypervisor.framework.pkgs.none.icecap.configured.$(PLAT).icecapFirmware.display -o $(out)/$@-$(PLAT)
.PHONY: html-docs
html-docs: check-generated-sources | $(out)
nix-build -A framework.generatedDocs.external.html -o $(out)/$@
.PHONY: complete-html-docs
complete-html-docs: check-generated-sources | $(out)
nix-build -A framework.generatedDocs.complete.html -o $(out)/$@
.PHONY: show-tcb-size
show-hypervisor-tcb-size:
report=$$(nix-build -A hypervisor.tcbSize --no-out-link) && cat $$report
.PHONY: everything
everything: check-generated-sources
nix-build -A everything.all --no-out-link
.PHONY: everything-pure
everything-pure:
nix-build -A everything.pure --no-out-link
.PHONY: everything-cached
everything-cached:
nix-build -A everything.cached --no-out-link
.PHONY: everything-with-excess
everything-with-excess: check-generated-sources
nix-build -A everything.allWithExcess --no-out-link
.PHONY: check-generated-sources
check-generated-sources:
script=$$(nix-build -A framework.generatedSources.check --no-out-link) && $$script
.PHONY: update-generated-sources
update-generated-sources:
script=$$(nix-build -A framework.generatedSources.update --no-out-link) && $$script
.PHONY: run-automated-tests
run-automated-tests:
script=$$(nix-build -A framework.automatedTests.runAll --no-out-link) && $$script
script=$$(nix-build -A hypervisor.automatedTests.runAll --no-out-link) && $$script