summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-10 19:06:45 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2017-04-23 21:47:27 -0400
commit3131bfe302d3d2657576499a86827ca979846b81 (patch)
tree2b8774b8a20dd04cf41df13ee2064228975ba8c2
parentb2fc5836b2a9030ef6b33e62bb27ac0ed414777b (diff)
meson: add a few forgotten substitutions
v2: - a few more
-rw-r--r--meson.build16
-rw-r--r--meson_options.txt5
2 files changed, 19 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 82ec599537..57e439e733 100644
--- a/meson.build
+++ b/meson.build
@@ -107,6 +107,7 @@ bootlibdir = prefixdir + '/lib/systemd/boot/efi'
testsdir = prefixdir + '/lib/systemd/tests'
systemdstatedir = localstatedir + '/lib/systemd'
catalogstatedir = systemdstatedir + '/catalog'
+randomseeddir = localstatedir + '/lib/systemd/'
dbuspolicydir = get_option('dbuspolicydir')
if dbuspolicydir == ''
@@ -151,8 +152,8 @@ conf.set_quoted('SYSTEMCTL_BINARY_PATH', rootbindir + '/sys
conf.set_quoted('SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH', rootbindir + '/systemd-tty-ask-password-agent')
conf.set_quoted('SYSTEMD_STDIO_BRIDGE_BINARY_PATH', bindir + '/systemd-stdio-bridge')
conf.set_quoted('ROOTPREFIX', rootprefixdir)
-conf.set_quoted('RANDOM_SEED_DIR', localstatedir + '/lib/systemd/')
-conf.set_quoted('RANDOM_SEED', localstatedir + '/lib/systemd/random-seed')
+conf.set_quoted('RANDOM_SEED_DIR', randomseeddir)
+conf.set_quoted('RANDOM_SEED', randomseeddir + '/random-seed')
conf.set_quoted('SYSTEMD_CRYPTSETUP_PATH', rootlibexecdir + '/systemd-cryptsetup')
conf.set_quoted('SYSTEM_GENERATOR_PATH', systemgeneratordir)
conf.set_quoted('USER_GENERATOR_PATH', usergeneratordir)
@@ -179,7 +180,13 @@ conf.set_quoted('ABS_BUILD_DIR', meson.build_root()
conf.set_quoted('ABS_SRC_DIR', meson.source_root())
substs.set('prefix', prefixdir)
+substs.set('exec_prefix', prefixdir)
+substs.set('libdir', libdir)
+substs.set('rootlibdir', rootlibdir)
+substs.set('includedir', includedir)
substs.set('pkgsysconfdir', pkgsysconfdir)
+substs.set('bindir', bindir)
+substs.set('rootbindir', rootbindir)
substs.set('rootlibexecdir', rootlibexecdir)
substs.set('systemunitdir', systemunitdir)
substs.set('userunitdir', userunitdir)
@@ -187,6 +194,7 @@ substs.set('systempresetdir', systempresetdir)
substs.set('userpresetdir', userpresetdir)
substs.set('udevhwdbdir', udevhwdbdir)
substs.set('udevrulesdir', udevrulesdir)
+substs.set('udevlibexecdir', udevlibexecdir)
substs.set('catalogdir', catalogdir)
substs.set('tmpfilesdir', tmpfilesdir)
substs.set('sysusersdir', sysusersdir)
@@ -200,6 +208,7 @@ substs.set('userenvgeneratordir', userenvgeneratordi
substs.set('systemshutdowndir', systemshutdowndir)
substs.set('systemsleepdir', systemsleepdir)
substs.set('SYSTEMCTL', rootbindir + '/systemctl')
+substs.set('RANDOM_SEED', randomseeddir + '/random-seed')
#####################################################################
@@ -536,6 +545,9 @@ conf.set_quoted('NTP_SERVERS', get_option('ntp-servers'))
conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
+substs.set('SUSHELL', get_option('debug-shell'))
+substs.set('DEBUGTTY', get_option('debug-tty'))
+
#####################################################################
threads = dependency('threads')
diff --git a/meson_options.txt b/meson_options.txt
index 981eace590..5b3d37ce9e 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -22,6 +22,11 @@ option('umount-path', type : 'string', description : 'path to umount')
option('loadkeys-path', type : 'string', description : 'path to loadkeys')
option('setfont-path', type : 'string', description : 'path to setfont')
+option('debug-shell', type : 'string', value : '/bin/sh',
+ description : 'path to debug shell binary')
+option('debug-tty', type : 'string', value : '/dev/tty9',
+ description : 'specify the tty device for debug shell')
+
option('utmp', type : 'boolean',
description : 'support for utmp/wtmp log handling')
option('hibernate', type : 'boolean',