Apply ASLR for send-booting-done and wait-target-done
[platform/upstream/systemd.git] / meson_options.txt
1 # -*- mode: meson -*-
2 # SPDX-License-Identifier: LGPL-2.1+
3
4 option('version-tag', type : 'string',
5        description : 'override the git version string')
6
7 option('split-usr', type : 'combo', choices : ['auto', 'true', 'false'],
8        description : '''/bin, /sbin aren't symlinks into /usr''')
9 option('split-bin', type : 'combo', choices : ['auto', 'true', 'false'],
10        description : '''sbin is not a symlink to bin''')
11 option('rootlibdir', type : 'string',
12        description : '''[/usr]/lib/x86_64-linux-gnu or such''')
13 option('rootprefix', type : 'string',
14        description : '''override the root prefix [default '/' if split-usr and '/usr' otherwise]''')
15 option('link-udev-shared', type : 'boolean',
16        description : 'link systemd-udev and its helpers to libsystemd-shared.so')
17 option('link-systemctl-shared', type: 'boolean',
18        description : 'link systemctl against libsystemd-shared.so')
19 option('static-libsystemd', type : 'combo',
20        choices : ['false', 'true', 'pic', 'no-pic'],
21        description : '''install a static library for libsystemd''')
22 option('static-libudev', type : 'combo',
23        choices : ['false', 'true', 'pic', 'no-pic'],
24        description : '''install a static library for libudev''')
25
26 option('sysvinit-path', type : 'string', value : '/etc/init.d',
27        description : 'the directory where the SysV init scripts are located')
28 option('sysvrcnd-path', type : 'string', value : '/etc/rc.d',
29        description : 'the base directory for SysV rcN.d directories')
30 option('telinit-path', type : 'string', value : '/lib/sysvinit/telinit',
31        description : 'path to telinit')
32 option('rc-local', type : 'string',
33        value : '/etc/rc.local')
34
35 option('quotaon-path', type : 'string', description : 'path to quotaon')
36 option('quotacheck-path', type : 'string', description : 'path to quotacheck')
37 option('kmod-path', type : 'string', description : 'path to kmod')
38 option('kexec-path', type : 'string', description : 'path to kexec')
39 option('sulogin-path', type : 'string', description : 'path to sulogin')
40 option('mount-path', type : 'string', description : 'path to mount')
41 option('umount-path', type : 'string', description : 'path to umount')
42 option('loadkeys-path', type : 'string', description : 'path to loadkeys')
43 option('setfont-path', type : 'string', description : 'path to setfont')
44 option('nologin-path', type : 'string', description : 'path to nologin')
45
46 option('debug-shell', type : 'string', value : '/bin/sh',
47        description : 'path to debug shell binary')
48 option('debug-tty', type : 'string', value : '/dev/tty9',
49        description : 'specify the tty device for debug shell')
50 option('debug-extra', type : 'array', choices : ['hashmap', 'mmap-cache', 'siphash'], value : [],
51        description : 'enable extra debugging')
52 option('memory-accounting-default', type : 'boolean',
53        description : 'enable MemoryAccounting= by default')
54 option('bump-proc-sys-fs-file-max', type : 'boolean',
55        description : 'bump /proc/sys/fs/file-max to ULONG_MAX')
56 option('bump-proc-sys-fs-nr-open', type : 'boolean',
57        description : 'bump /proc/sys/fs/nr_open to INT_MAX')
58 option('valgrind', type : 'boolean', value : false,
59        description : 'do extra operations to avoid valgrind warnings')
60 option('log-trace', type : 'boolean', value : false,
61        description : 'enable low level debug logging')
62 option('user-path', type : 'string',
63        description : '$PATH to use for user sessions')
64
65 option('utmp', type : 'boolean',
66        description : 'support for utmp/wtmp log handling')
67 option('hibernate', type : 'boolean',
68        description : 'support for hibernation')
69 option('ldconfig', type : 'boolean',
70        description : 'support for dynamic linker cache creation')
71 option('resolve', type : 'boolean',
72        description : 'systemd-resolved stack')
73 option('efi', type : 'boolean',
74        description : 'enable systemd-boot and bootctl')
75 option('tpm', type : 'boolean',
76        description : 'TPM should be used to log events and extend the registers')
77 option('environment-d', type : 'boolean',
78        description : 'support for environment.d')
79 option('binfmt', type : 'boolean',
80        description : 'support for custom binary formats')
81 option('coredump', type : 'boolean',
82        description : 'install the coredump handler')
83 option('pstore', type : 'boolean',
84        description : 'install the pstore archival tool')
85 option('logind', type : 'boolean',
86        description : 'install the systemd-logind stack')
87 option('hostnamed', type : 'boolean',
88        description : 'install the systemd-hostnamed stack')
89 option('localed', type : 'boolean',
90        description : 'install the systemd-localed stack')
91 option('machined', type : 'boolean',
92        description : 'install the systemd-machined stack')
93 option('portabled', type : 'boolean',
94        description : 'install the systemd-portabled stack')
95 option('networkd', type : 'boolean',
96        description : 'install the systemd-networkd stack')
97 option('timedated', type : 'boolean',
98        description : 'install the systemd-timedated daemon')
99 option('timesyncd', type : 'boolean',
100        description : 'install the systemd-timesyncd daemon')
101 option('remote', type : 'combo', choices : ['auto', 'true', 'false'],
102        description : 'support for "journal over the network"')
103 option('create-log-dirs', type : 'boolean',
104        description : 'create /var/log/journal{,/remote}')
105 option('nss-myhostname', type : 'boolean',
106        description : 'install nss-myhostname module')
107 option('nss-mymachines', type : 'combo', choices : ['auto', 'true', 'false'],
108        description : 'install nss-mymachines module')
109 option('nss-resolve', type : 'combo', choices : ['auto', 'true', 'false'],
110        description : 'install nss-resolve module')
111 option('nss-systemd', type : 'boolean',
112        description : 'install nss-systemd module')
113 option('firstboot', type : 'boolean',
114        description : 'support for firstboot mechanism')
115 option('randomseed', type : 'boolean',
116        description : 'support for restoring random seed')
117 option('backlight', type : 'boolean',
118        description : 'support for restoring backlight state')
119 option('vconsole', type : 'boolean',
120        description : 'support for vconsole configuration')
121 option('quotacheck', type : 'boolean',
122        description : 'support for the quotacheck tools')
123 option('sysusers', type : 'boolean',
124        description : 'support for the sysusers configuration')
125 option('tmpfiles', type : 'boolean',
126        description : 'support for tmpfiles.d')
127 option('importd', type : 'combo', choices : ['auto', 'true', 'false'],
128        description : 'install the systemd-importd daemon')
129 option('hwdb', type : 'boolean',
130        description : 'support for the hardware database')
131 option('rfkill', type : 'boolean',
132        description : 'support for the rfkill tools')
133 option('man', type : 'combo', choices : ['auto', 'true', 'false'],
134        value : 'false',
135        description : 'build and install man pages')
136 option('html', type : 'combo', choices : ['auto', 'true', 'false'],
137        value : 'false',
138        description : 'build and install html pages')
139
140 option('certificate-root', type : 'string', value : '/etc/ssl',
141        description : 'the prefix for TLS certificates')
142 option('dbuspolicydir', type : 'string',
143        description : 'D-Bus policy directory')
144 option('dbussessionservicedir', type : 'string',
145        description : 'D-Bus session service directory')
146 option('dbussystemservicedir', type : 'string',
147        description : 'D-Bus system service directory')
148 option('pkgconfigdatadir', type : 'string', value : '',
149        description : 'directory for arch-independent pkg-config files')
150 option('pkgconfiglibdir', type : 'string', value : '',
151        description : 'directory for standard pkg-config files')
152 option('rpmmacrosdir', type : 'string', value : 'lib/rpm/macros.d',
153        description : 'directory for rpm macros ["no" disables]')
154 option('pamlibdir', type : 'string',
155        description : 'directory for PAM modules')
156 option('pamconfdir', type : 'string',
157        description : 'directory for PAM configuration ["no" disables]')
158 option('docdir', type : 'string',
159        description : 'documentation directory')
160
161 option('fallback-hostname', type : 'string', value : 'localhost',
162        description : 'the hostname used if none configured')
163 option('compat-gateway-hostname', type : 'boolean', value : 'false',
164        description : 'allow "gateway" as the symbolic name for default gateway')
165 option('default-hierarchy', type : 'combo',
166        choices : ['legacy', 'hybrid', 'unified'], value : 'unified',
167        description : 'default cgroup hierarchy')
168 option('default-net-naming-scheme', type : 'combo',
169        choices : ['latest', 'v238', 'v239', 'v240'],
170        description : 'default net.naming-scheme= value')
171 option('status-unit-format-default', type : 'combo',
172        choices : ['description', 'name'],
173        description : 'use unit name or description in messages by default')
174 option('time-epoch', type : 'integer', value : '-1',
175        description : 'time epoch for time clients')
176 option('system-uid-max', type : 'integer', value : '-1',
177        description : 'maximum system UID')
178 option('system-gid-max', type : 'integer', value : '-1',
179        description : 'maximum system GID')
180 option('dynamic-uid-min', type : 'integer', value : 0x0000EF00,
181        description : 'minimum dynamic UID')
182 option('dynamic-uid-max', type : 'integer', value : 0x0000FFEF,
183        description : 'maximum dynamic UID')
184 option('container-uid-base-min', type : 'integer', value : 0x00080000,
185        description : 'minimum container UID base')
186 option('container-uid-base-max', type : 'integer', value : 0x6FFF0000,
187        description : 'maximum container UID base')
188 option('tty-gid', type : 'integer', value : 5,
189        description : 'the numeric GID of the "tty" group')
190 option('users-gid', type : 'integer', value : '-1',
191        description : 'the numeric GID of the "users" group')
192 option('adm-group', type : 'boolean',
193        description : 'the ACL for adm group should be added')
194 option('wheel-group', type : 'boolean',
195        description : 'the ACL for wheel group should be added')
196 option('nobody-user', type : 'string',
197        description : 'The name of the nobody user (the one with UID 65534)',
198        value : 'nobody')
199 option('nobody-group', type : 'string',
200        description : 'The name of the nobody group (the one with GID 65534)',
201        value : 'nobody')
202 option('dev-kvm-mode', type : 'string', value : '0666',
203        description : '/dev/kvm access mode')
204 option('group-render-mode', type : 'string', value : '0666',
205        description : 'Access mode for devices owned by render group (e.g. /dev/dri/renderD*, /dev/kfd).')
206 option('default-kill-user-processes', type : 'boolean',
207        description : 'the default value for KillUserProcesses= setting')
208 option('gshadow', type : 'boolean',
209        description : 'support for shadow group')
210 option('default-locale', type : 'string', value : '',
211        description : 'default locale used when /etc/locale.conf does not exist')
212 option('service-watchdog', type : 'string', value : '3min',
213        description : 'default watchdog setting for systemd services')
214
215 option('default-dnssec', type : 'combo',
216        description : 'default DNSSEC mode',
217        choices : ['yes', 'allow-downgrade', 'no'],
218        value : 'allow-downgrade')
219 option('default-dns-over-tls', type : 'combo',
220        description : 'default DNS-over-TLS mode',
221        choices : ['yes', 'opportunistic', 'no'],
222        value : 'no')
223 option('dns-over-tls', type : 'combo', choices : ['auto', 'gnutls', 'openssl', 'true', 'false'],
224        description : 'DNS-over-TLS support')
225 option('dns-servers', type : 'string',
226        description : 'space-separated list of default DNS servers',
227        value : '1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4 2606:4700:4700::1111 2001:4860:4860::8888 2606:4700:4700::1001 2001:4860:4860::8844')
228 option('ntp-servers', type : 'string',
229        description : 'space-separated list of default NTP servers',
230        value : 'time1.google.com time2.google.com time3.google.com time4.google.com')
231 option('support-url', type : 'string',
232        description : 'the support URL to show in catalog entries included in systemd',
233        value : 'https://lists.freedesktop.org/mailman/listinfo/systemd-devel')
234 option('www-target', type : 'string',
235        description : 'the address and dir to upload docs too',
236        value : 'www.freedesktop.org:/srv/www.freedesktop.org/www/software/systemd')
237
238 option('seccomp', type : 'combo', choices : ['auto', 'true', 'false'],
239        description : 'SECCOMP support')
240 option('selinux', type : 'combo', choices : ['auto', 'true', 'false'],
241        description : 'SELinux support')
242 option('apparmor', type : 'combo', choices : ['auto', 'true', 'false'],
243        description : 'AppArmor support')
244 option('smack', type : 'boolean',
245        description : 'SMACK support')
246 option('smack-run-label', type : 'string',
247        description : 'run systemd --system itself with a specific SMACK label')
248 option('polkit', type : 'combo', choices : ['auto', 'true', 'false'],
249        description : 'polkit support')
250 option('ima', type : 'boolean',
251        description : 'IMA support')
252
253 option('acl', type : 'combo', choices : ['auto', 'true', 'false'],
254        description : 'libacl support')
255 option('audit', type : 'combo', choices : ['auto', 'true', 'false'],
256        description : 'libaudit support')
257 option('blkid', type : 'combo', choices : ['auto', 'true', 'false'],
258        description : 'libblkid support')
259 option('kmod', type : 'combo', choices : ['auto', 'true', 'false'],
260        description : 'support for loadable modules')
261 option('pam', type : 'combo', choices : ['auto', 'true', 'false'],
262        description : 'PAM support')
263 option('microhttpd', type : 'combo', choices : ['auto', 'true', 'false'],
264        description : 'libµhttpd support')
265 option('libcryptsetup', type : 'combo', choices : ['auto', 'true', 'false'],
266        description : 'libcryptsetup support')
267 option('libcurl', type : 'combo', choices : ['auto', 'true', 'false'],
268        description : 'libcurl support')
269 option('idn', type : 'boolean',
270        description : 'use IDN when printing host names')
271 option('libidn2', type : 'combo', choices : ['auto', 'true', 'false'],
272        description : 'libidn2 support')
273 option('libidn', type : 'combo', choices : ['auto', 'true', 'false'],
274        description : 'libidn support')
275 option('libiptc', type : 'combo', choices : ['auto', 'true', 'false'],
276        description : 'libiptc support')
277 option('qrencode', type : 'combo', choices : ['auto', 'true', 'false'],
278        description : 'libqrencode support')
279 option('gcrypt', type : 'combo', choices : ['auto', 'true', 'false'],
280        description : 'gcrypt support')
281 option('gnutls', type : 'combo', choices : ['auto', 'true', 'false'],
282        description : 'gnutls support')
283 option('openssl', type : 'combo', choices : ['auto', 'true', 'false'],
284        description : 'openssl support')
285 option('elfutils', type : 'combo', choices : ['auto', 'true', 'false'],
286        description : 'elfutils support')
287 option('zlib', type : 'combo', choices : ['auto', 'true', 'false'],
288        description : 'zlib compression support')
289 option('bzip2', type : 'combo', choices : ['auto', 'true', 'false'],
290        description : 'bzip2 compression support')
291 option('xz', type : 'combo', choices : ['auto', 'true', 'false'],
292        description : 'xz compression support')
293 option('lz4', type : 'combo', choices : ['auto', 'true', 'false'],
294        description : 'lz4 compression support')
295 option('xkbcommon', type : 'combo', choices : ['auto', 'true', 'false'],
296        description : 'xkbcommon keymap support')
297 option('pcre2', type : 'combo', choices : ['auto', 'true', 'false'],
298        description : 'regexp matching support using pcre2')
299 option('glib', type : 'combo', choices : ['auto', 'true', 'false'],
300        description : 'libglib support (for tests only)')
301 option('dbus', type : 'combo', choices : ['auto', 'true', 'false'],
302        description : 'libdbus support (for tests only)')
303
304 option('gnu-efi', type : 'combo', choices : ['auto', 'true', 'false'],
305        description : 'gnu-efi support for sd-boot')
306 option('efi-cc', type : 'array',
307        description : 'the compiler to use for EFI modules')
308 option('efi-ld', type : 'string',
309        description : 'the linker to use for EFI modules')
310 option('efi-libdir', type : 'string',
311        description : 'path to the EFI lib directory')
312 option('efi-ldsdir', type : 'string',
313        description : 'path to the EFI lds directory')
314 option('efi-includedir', type : 'string', value : '/usr/include/efi',
315        description : 'path to the EFI header directory')
316 option('tpm-pcrindex', type : 'integer', value : 8,
317        description : 'TPM PCR register number to use')
318
319 option('kdbus', type : 'boolean', value : 'false',
320        description : 'kdbus support')
321
322 option('bashcompletiondir', type : 'string',
323        description : 'directory for bash completion scripts ["no" disables]')
324 option('zshcompletiondir', type : 'string',
325        description : 'directory for zsh completion scripts ["no" disables]')
326
327 option('tests', type : 'combo', choices : ['true', 'unsafe', 'false'],
328        description : 'enable extra tests with =unsafe')
329 option('slow-tests', type : 'boolean', value : 'false',
330        description : 'run the slow tests by default')
331 option('install-tests', type : 'boolean', value : 'false',
332        description : 'install test executables')
333
334 option('ok-color', type: 'combo',
335        choices : ['black', 'red', 'green', 'yellow', 'blue', 'magenta', 'cyan',
336                   'white', 'highlight-black', 'highlight-red', 'highlight-green',
337                   'highlight-yellow', 'highlight-blue', 'highlight-magenta',
338                   'highlight-cyan', 'highlight-white'],
339        value : 'green',
340        description: 'color of the "OK" status message')
341
342 option('oss-fuzz', type : 'boolean', value : 'false',
343        description : 'build against oss-fuzz')
344 option('llvm-fuzz', type : 'boolean', value : 'false',
345        description : 'build against LLVM libFuzzer')
346 option('fuzzbuzz', type : 'boolean', value : 'false',
347        description : 'build against FuzzBuzz')
348 option('fuzzbuzz-engine', type : 'string',
349        description : 'the name of the FuzzBuzz fuzzing engine')
350 option('fuzzbuzz-engine-dir', type : 'string',
351        description : 'the directory where the FuzzBuzz fuzzing engine is')