-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·119 lines (86 loc) · 2.19 KB
/
Copy pathMakefile
File metadata and controls
executable file
·119 lines (86 loc) · 2.19 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
ifneq (x$(DEVOPS_ENV),x__JAIL__)
include jail/cntrjail.mk
.DEFAULT_GOAL := help
.PHONY: help
help::
$(Q)echo "PROJECT=XXXX centos9-jail Create CentOS9 jail"
$(Q)echo "PROJECT=XXXX enter Configure and enter jail"
$(Q)echo "clean-all-cntr Clean all running containers"
$(Q)echo "clean-dangling-img Clean all dangling docker images"
else
# CUBE SDK
include build.mk
# HEX SDK
SUBDIRS += hex
# Core SDK
SUBDIRS += core
# Convenience targets
help::
$(Q)echo "testhotfixes Build test hotfixes"
.PHONY: testhotfixes
testhotfixes:
$(Q)$(MAKE) -C hex/test_hotfixes full
$(Q)$(MAKE) -C core/main testhotfixes
help::
$(Q)echo "usb Build USB image"
.PHONY: usb
usb: all
$(Q)$(MAKE) -C core/main usb
help::
$(Q)echo "iso Build ISO image"
# Must enable here since its not enabled by default
.PHONY: iso
iso: all
$(Q)$(MAKE) -C core/main iso
help::
$(Q)echo "pxedeploy Deply image to a PXE Server"
.PHONY: pxedeploy
pxedeploy: all
$(Q)$(MAKE) -C core/main pxe pxedeploy
help::
$(Q)echo "pxeserver Build PXE Server image"
.PHONY: pxeserver
pxeserver: all
$(Q)$(MAKE) -C core/main pxe pxeserver
help::
$(Q)echo "pxeserveriso Build PXE Server ISO image"
.PHONY: pxeserveriso
pxeserveriso: all
$(Q)$(MAKE) -C core/main pxe pxeserveriso
help::
$(Q)echo "liveusb Build live USB image"
.PHONY: liveusb
liveusb: all
$(Q)$(MAKE) -C core/main liveusb
help::
$(Q)echo "pxe Build PXE image"
.PHONY: pxe
pxe: all
$(Q)$(MAKE) -C core/main pxe
help::
$(Q)echo "ova Build OVA image"
.PHONY: ova vmware
ova vmware: all
$(Q)$(MAKE) -C core/main ova
help::
$(Q)echo "vagrant Build vagrant box."
.PHONY: vagrant
vagrant: all
$(Q)$(MAKE) -C core/main vagrant
help::
$(Q)echo "sbom Build SBOM artifacts"
.PHONY: sbom
sbom:
$(Q)$(MAKE) -C core/main sbom
help::
$(Q)echo "masqon turn on iptables masquerade, allowing VMs to Internet"
.PHONY: masqon
masqon:
$(Q)iptables -t nat -I POSTROUTING -o eth0 -j MASQUERADE
help::
$(Q)echo "masqoff turn off iptables masquerade, prohibiting VMs to Internet"
.PHONY: masqoff
masqoff:
$(Q)iptables -t nat -F POSTROUTING
include $(HEX_MAKEDIR)/hex_sdk.mk
endif