diff options
author | Maxime Ripard <maxime.ripard@free-electrons.com> | 2012-07-28 09:21:20 +0200 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2012-07-30 23:12:17 +0200 |
commit | c92aacd330366da803b1cf37ecb3af816bedd7f2 (patch) | |
tree | f36838bbd0555344d625a17130d0b9b575348106 /target/generic | |
parent | 09a29b6a897158070e87493935aba817a58c33fd (diff) |
Rework of the init system
Since we have now two uncompatible init systems, and we want only one of
them at the same time in use in the rootfs, we need to select a
particular init system. This patch also adds $(PKG)_INSTALL_INIT_SYSTEMD
and $(PKG)_INSTALL_INIT_SYSV hooks that are called when the matching
init systems are selected to install properly the init scripts of the
package.
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'target/generic')
-rw-r--r-- | target/generic/Config.in | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/target/generic/Config.in b/target/generic/Config.in index 88f0718e2..a83ba442c 100644 --- a/target/generic/Config.in +++ b/target/generic/Config.in @@ -37,6 +37,35 @@ comment "udev requires a toolchain with LARGEFILE + WCHAR support" endchoice +choice + prompt "Init system" + default BR2_INIT_BUSYBOX + +config BR2_INIT_BUSYBOX + bool "Busybox" + select BR2_PACKAGE_BUSYBOX + +config BR2_INIT_SYSV + bool "systemV" + select BR2_PACKAGE_SYSVINIT + +config BR2_INIT_SYSTEMD + bool "systemd" + depends on BR2_LARGEFILE + depends on BR2_USE_WCHAR + depends on BR2_INET_IPV6 + depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV + depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_DBUS + select BR2_PACKAGE_SYSTEMD + +comment 'systemd requires largefile, wchar, IPv6, threads and udev support' + depends on !(BR2_LARGEFILE && BR2_USE_WCHAR && \ + BR2_INET_IPV6 && BR2_TOOLCHAIN_HAS_THREADS && \ + BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV) + +endchoice + config BR2_ROOTFS_DEVICE_TABLE string "Path to the permission tables" default "target/generic/device_table.txt" |