forked from QubesOS/qubes-builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuilder.conf
390 lines (337 loc) · 10.8 KB
/
builder.conf
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
# Based on https://github.com/nrgaway/qubes-kvm-dev/blob/master/builder.conf
################################################################################
#
# ISSUES
# ======
#
# FEDORA DOM0 + VM
# chroot-dom0-fc31/etc/dnf/dnf.conf:
# chroot-vm-fc31/etc/dnf/dnf.conf: (linux-scrypt-vm-fc31)
# ERROR: Failed to download metadata for repo 'xxx':
# Checksum error...: Unable to read zchunk lead
# FIX: Added 'zchunk=false' to 'dnf.conf'
# OR: Change root to <chroot-dir> and run 'dnf clean all'
#
# LIBVIRT:
# Build fails due to too many processors (too fast)?
#
# cp -fp ~/.rpmmacros chroot-dom0-fc32/home/user/.rpmmacros
#
################################################################################
INCLUDE_OVERRIDE_CONF ?= false
#INCLUDE_OVERRIDE_CONF := true
RELEASE := 4.1
NOSIGN := 1
SSH_ACCESS := 0
GIT_BASEURL := https://github.com
GIT_PREFIX := qubes-ppc64le/qubes-
# Fetch repositories with depth=1
GIT_CLONE_FAST ?= 0
# A Qubes master configuration file will be included based on selected RELEASE
#
# A copy of BUILDER_PLUGINS will be made and restored since the BUILDER_PLUGIN
# variable gets over-written in qubes-os-master.conf.
#_ORIGINAL_BUILDER_PLUGINS := $(BUILDER_PLUGINS)
#ifeq ($(RELEASE), 2)
# -include example-configs/qubes-os-r2.conf
#else ifeq ($(RELEASE), 3)
# -include example-configs/qubes-os-r3.0.conf
#else ifeq ($(RELEASE), 3.1)
# -include example-configs/qubes-os-r3.1.conf
#else ifeq ($(RELEASE), 3.2)
# -include example-configs/qubes-os-r3.2.conf
#else ifeq ($(RELEASE), 4.0)
# -include example-configs/qubes-os-r4.0.conf
#else
# -include example-configs/qubes-os-master.conf
#endif
#BUILDER_PLUGINS := $(_ORIGINAL_BUILDER_PLUGINS) $(BUILDER_PLUGINS)
#BACKEND_VMM := kvm
# [=setup plugins start=]
# Additional BUILDER_PLUGINS
##BUILDER_PLUGINS += template-whonix
# [=setup plugins stop=]
# Put all the enabled plugins into components to download them. But avoid
# duplicates
#_temp_components := $(COMPONENTS)
#COMPONENTS += $(filter-out $(_temp_components), $(BUILDER_PLUGINS))
################################################################################
##
## KVM CONFIGURATION
##
# NOTE: TEMP: Remove vmm-xen component from XEN-COMPONENTS on first build to
# satisfy build depends in other components that have not yet been
# removed.
#XEN_COMPONENTS = \
# vmm-xen \
# intel-microcode \
# linux-firmware \
# gui-agent-xen-hvm-stubdom \
# seabios \
# vmm-xen-stubdom-legacy \
# vmm-xen-stubdom-linux
#
#ISO_COMPONENTS = \
# installer-qubes-os \
# qubes-release \
# pykickstart \
# blivet \
# lorax \
# lorax-templates \
# pungi \
# anaconda \
# anaconda-addon \
# linux-yum \
# linux-deb \
# tpm-extra \
# trousers-changer \
# antievilmaid
#
## Remove Xen and Qubes ISO only components
#COMPONENTS := $(filter-out $(XEN_COMPONENTS),$(COMPONENTS))
#COMPONENTS := $(filter-out $(ISO_COMPONENTS),$(COMPONENTS))
#
## Replace xen with kvm components
#COMPONENTS := $(subst core-vchan-xen, core-vchan-libkvmchan core-vchan-kvm,$(COMPONENTS))
#COMPONENTS := vmm-kvm $(COMPONENTS)
####################################################################################
# PASTE START
####################################################################################
GIT_BASEURL ?= https://github.com
GIT_PREFIX ?= QubesOS/qubes-
NO_SIGN ?= 1
BACKEND_VMM=kvm
DIST_DOM0 ?= fc32
#DISTS_VM ?= fc32 fc33 buster
DISTS_VM ?= fc32
MGMT_COMPONENTS = \
mgmt-salt \
mgmt-salt-base \
mgmt-salt-base-topd \
mgmt-salt-base-config \
mgmt-salt-dom0-qvm \
mgmt-salt-dom0-virtual-machines \
mgmt-salt-dom0-update
COMPONENTS ?= \
vmm-kvm \
core-libvirt \
core-libkvmchan \
core-vchan-kvm \
core-qubesdb \
core-qrexec \
linux-utils \
python-cffi \
python-xcffib \
python-objgraph \
python-hid \
python-u2flib-host \
python-qasync \
python-panflute \
core-admin \
core-admin-client \
core-admin-addon-whonix \
core-admin-linux \
core-agent-linux \
linux-kernel \
artwork \
grub2 \
grub2-theme \
gui-common \
gui-daemon \
gui-agent-linux \
app-linux-split-gpg \
app-thunderbird \
app-linux-pdf-converter \
app-linux-img-converter \
app-linux-input-proxy \
app-linux-usb-proxy \
app-linux-snapd-helper \
app-shutdown-idle \
app-yubikey \
app-u2f \
screenshot-helper \
$(MGMT_COMPONENTS) \
infrastructure \
repo-templates \
meta-packages \
manager \
desktop-linux-common \
desktop-linux-kde \
desktop-linux-xfce4 \
desktop-linux-xfce4-xfwm4 \
desktop-linux-i3 \
desktop-linux-i3-settings-qubes \
desktop-linux-awesome \
desktop-linux-manager \
grubby-dummy \
dummy-psu \
dummy-backlight \
xorg-x11-drv-intel \
linux-pvgrub2 \
linux-gbulb \
linux-scrypt \
librepo \
libcomps \
libdnf \
dnf \
linux-template-builder \
installer-qubes-os \
qubes-release \
pykickstart \
blivet \
lorax \
lorax-templates \
anaconda \
anaconda-addon \
linux-yum \
linux-deb \
tpm-extra \
trousers-changer \
antievilmaid \
builder \
builder-debian \
builder-rpm
BUILDER_PLUGINS = builder-rpm builder-debian
BUILDER_PLUGINS += mgmt-salt
BRANCH_linux_kernel = stable-5.4
TEMPLATE_ROOT_WITH_PARTITIONS = 1
TEMPLATE_LABEL ?=
TEMPLATE_LABEL += fc30:fedora-30
TEMPLATE_LABEL += fc31:fedora-31
TEMPLATE_LABEL += fc32:fedora-32
TEMPLATE_LABEL += fc33:fedora-33
TEMPLATE_LABEL += fc30+minimal:fedora-30-minimal
TEMPLATE_LABEL += fc31+minimal:fedora-31-minimal
TEMPLATE_LABEL += fc32+minimal:fedora-32-minimal
TEMPLATE_LABEL += fc33+minimal:fedora-33-minimal
TEMPLATE_LABEL += fc30+xfce:fedora-30-xfce
TEMPLATE_LABEL += fc31+xfce:fedora-31-xfce
TEMPLATE_LABEL += fc32+xfce:fedora-32-xfce
TEMPLATE_LABEL += fc33+xfce:fedora-33-xfce
TEMPLATE_LABEL += stretch:debian-9
TEMPLATE_LABEL += stretch+standard:debian-9
TEMPLATE_LABEL += stretch+xfce:debian-9-xfce
TEMPLATE_LABEL += buster:debian-10
TEMPLATE_LABEL += buster+standard:debian-10
TEMPLATE_LABEL += buster+xfce:debian-10-xfce
TEMPLATE_LABEL += bullseye:debian-11
TEMPLATE_LABEL += bullseye+standard:debian-11
TEMPLATE_LABEL += bullseye+xfce:debian-11-xfce
TEMPLATE_LABEL += stretch+whonix-gateway+minimal+no-recommends:whonix-gw-14
TEMPLATE_LABEL += stretch+whonix-workstation+minimal+no-recommends:whonix-ws-14
TEMPLATE_LABEL += buster+whonix-gateway+minimal+no-recommends:whonix-gw-15
TEMPLATE_LABEL += buster+whonix-workstation+minimal+no-recommends:whonix-ws-15
TEMPLATE_LABEL += centos7:centos-7
TEMPLATE_LABEL += centos7+minimal:centos-7-minimal
TEMPLATE_LABEL += centos7+xfce:centos-7-xfce
TEMPLATE_LABEL += centos8:centos-8
TEMPLATE_LABEL += centos8+minimal:centos-8-minimal
TEMPLATE_LABEL += centos8+xfce:centos-8-xfce
TEMPLATE_ALIAS ?=
TEMPLATE_ALIAS += stretch:stretch+standard
TEMPLATE_ALIAS += stretch+gnome:stretch+gnome+standard
TEMPLATE_ALIAS += stretch+minimal:stretch+minimal+no-recommends
TEMPLATE_ALIAS += buster:buster+standard
TEMPLATE_ALIAS += buster+gnome:buster+gnome+standard
TEMPLATE_ALIAS += buster+minimal:buster+minimal+no-recommends
TEMPLATE_ALIAS += bullseye:bullseye+standard
TEMPLATE_ALIAS += bullseye+gnome:bullseye+gnome+standard
TEMPLATE_ALIAS += bullseye+minimal:bullseye+minimal+no-recommends
TEMPLATE_ALIAS += whonix-gateway-14:stretch+whonix-gateway+minimal+no-recommends
TEMPLATE_ALIAS += whonix-workstation-14:stretch+whonix-workstation+minimal+no-recommends
TEMPLATE_ALIAS += whonix-gateway-15:buster+whonix-gateway+minimal+no-recommends
TEMPLATE_ALIAS += whonix-workstation-15:buster+whonix-workstation+minimal+no-recommends
####################################################################################
# PASTE END
####################################################################################
INSECURE_SKIP_CHECKING := vmm-kvm \
core-libvirt \
core-libkvmchan \
core-vchan-kvm \
core-qubesdb \
core-qrexec \
linux-utils \
core-admin \
core-agent-linux \
gui-daemon \
gui-agent-linux
BRANCH_core_libvirt = kvm
BRANCH_core_vchan_libkvmchan = master
BRANCH_core_vchan_kvm = master
BRANCH_core_qubesdb = kvm
BRANCH_core_qrexec = kvm
BRANCH_linux_utils = kvm
BRANCH_core_admin = kvm
BRANCH_core_agent_linux = kvm
BRANCH_gui_daemon = kvm
BRANCH_gui_agent_linux = kvm
#BRANCH_linux_kernel = vfio_noiommu
#BRANCH_builder_debian = nrgaway
#BRANCH_builder = nrgaway
#BRANCH_kvm_dev = nrgaway
#BRANCH_gui_common = kvm
#BRANCH_gui_daemon = kvm
#BRANCH_gui_agent_linux = kvm
##
################################################################################
BUILDER_TURBO_MODE = 0
#DEBUG = 0
#VERBOSE = 1
DEBUG = 2
VERBOSE = 2
NO_SIGN = 1
DIST_DOM0 ?= fc32
# Only build templates (comment out or set to '0' to build all of Qubes).
TEMPLATE_ONLY ?= 0
################################################################################
# L I S T O F D I S T V M ' S
################################################################################
# Available template flavors may be added the the template build by appending
# `+flavor_name`
# [=setup dists start=]
ifneq "$(SETUP_MODE)" "1"
# Enabled DISTS_VMs
DISTS_VM :=
DISTS_VM += fc32
#DISTS_VM += buster
endif
# [=setup dists stop=]
## USE_DIST_BUILD_TOOLS
## Need to install 'mock' install depend
USE_DIST_BUILD_TOOLS := 0
#DISTS_VM += bullseye+gnome
#DISTS_VM += whonix-gateway-15
#DISTS_VM += whonix-workstation-15
#COMPONENTS += linux-kernel-latest
#GIT_URL_linux_kernel_latest = $(GIT_BASEURL)/$(GIT_PREFIX)linux-kernel
#BRANCH_linux_kernel_latest = master
##
################################################################################
################################################################################
# M I S C E L L A N E O U S
################################################################################
# Qubes-builder deps
DEPENDENCIES ?=
DEPENDENCIES += git rpmdevtools rpm-build createrepo perl-Digest-MD5 perl-Digest-SHA
# For USE_DIST_BUILD_TOOLS
DEPENDENCIES += mock
# Additional for debian template
DEPENDENCIES += debootstrap dpkg-dev
# for ./setup
DEPENDENCIES += python3-sh dialog
# TEMP KVM depend for core-vchan-libkvmchan
# https://github.com/ingydotnet/git-subrepo
DEPENDENCIES += git-subrepo
# Uncomment the the following to enable override.conf include. Setup will
# automatically enable it only if an override is available and selected by
# user to enable.
#INCLUDE_OVERRIDE_CONF ?= true
#ifdef INCLUDE_OVERRIDE_CONF
# -include override.conf
#endif
.PHONY: about release
about::
@echo "builder.conf"
release:
@echo "$(RELEASE)"
# vim: filetype=make