summaryrefslogtreecommitdiffstats
path: root/meta/conf/distro
diff options
context:
space:
mode:
Diffstat (limited to 'meta/conf/distro')
-rw-r--r--meta/conf/distro/defaultsetup.conf3
-rw-r--r--meta/conf/distro/include/init-manager-mdev-busybox.inc7
-rw-r--r--meta/conf/distro/include/init-manager-none.inc3
-rw-r--r--meta/conf/distro/include/init-manager-systemd.inc6
-rw-r--r--meta/conf/distro/include/init-manager-sysvinit.inc6
5 files changed, 25 insertions, 0 deletions
diff --git a/meta/conf/distro/defaultsetup.conf b/meta/conf/distro/defaultsetup.conf
index 20e61232e9..9b1ee20aaa 100644
--- a/meta/conf/distro/defaultsetup.conf
+++ b/meta/conf/distro/defaultsetup.conf
@@ -23,3 +23,6 @@ PACKAGE_CLASSES ?= "package_ipk"
23INHERIT_BLACKLIST = "blacklist" 23INHERIT_BLACKLIST = "blacklist"
24INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool" 24INHERIT_DISTRO ?= "debian devshell sstate license remove-libtool"
25INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST}" 25INHERIT += "${PACKAGE_CLASSES} ${USER_CLASSES} ${INHERIT_DISTRO} ${INHERIT_BLACKLIST}"
26
27INIT_MANAGER ??= "none"
28require conf/distro/include/init-manager-${INIT_MANAGER}.inc
diff --git a/meta/conf/distro/include/init-manager-mdev-busybox.inc b/meta/conf/distro/include/init-manager-mdev-busybox.inc
new file mode 100644
index 0000000000..4e3be14a82
--- /dev/null
+++ b/meta/conf/distro/include/init-manager-mdev-busybox.inc
@@ -0,0 +1,7 @@
1# enable mdev/busybox for init
2DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " systemd sysvinit"
3VIRTUAL-RUNTIME_dev_manager ??= "busybox-mdev"
4VIRTUAL-RUNTIME_init_manager ??= "busybox"
5VIRTUAL-RUNTIME_initscripts ??= "initscripts"
6VIRTUAL-RUNTIME_keymaps ??= "keymaps"
7VIRTUAL-RUNTIME_login_manager ??= "busybox"
diff --git a/meta/conf/distro/include/init-manager-none.inc b/meta/conf/distro/include/init-manager-none.inc
new file mode 100644
index 0000000000..bbedf898f7
--- /dev/null
+++ b/meta/conf/distro/include/init-manager-none.inc
@@ -0,0 +1,3 @@
1VIRTUAL-RUNTIME_init_manager ??= "sysvinit"
2VIRTUAL-RUNTIME_initscripts ??= "initscripts"
3VIRTUAL-RUNTIME_login_manager ??= "busybox"
diff --git a/meta/conf/distro/include/init-manager-systemd.inc b/meta/conf/distro/include/init-manager-systemd.inc
new file mode 100644
index 0000000000..1558b85250
--- /dev/null
+++ b/meta/conf/distro/include/init-manager-systemd.inc
@@ -0,0 +1,6 @@
1# Use systemd for system initialization
2DISTRO_FEATURES_append = " systemd"
3DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " sysvinit"
4VIRTUAL-RUNTIME_init_manager ??= "systemd"
5VIRTUAL-RUNTIME_initscripts ??= "systemd-compat-units"
6VIRTUAL-RUNTIME_login_manager ??= "shadow-base"
diff --git a/meta/conf/distro/include/init-manager-sysvinit.inc b/meta/conf/distro/include/init-manager-sysvinit.inc
new file mode 100644
index 0000000000..6b662d60bb
--- /dev/null
+++ b/meta/conf/distro/include/init-manager-sysvinit.inc
@@ -0,0 +1,6 @@
1# Use sysvinit for system initialization
2DISTRO_FEATURES_append = " sysvinit"
3DISTRO_FEATURES_BACKFILL_CONSIDERED_append = " systemd"
4VIRTUAL-RUNTIME_init_manager ??= "sysvinit"
5VIRTUAL-RUNTIME_initscripts ??= "initscripts"
6VIRTUAL-RUNTIME_login_manager ??= "busybox"