system/Config.in: add new init - openrc
authorMichał Łyszczek <michal.lyszczek@bofc.pl>
Sun, 12 May 2019 19:55:40 +0000 (21:55 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sat, 18 May 2019 21:16:04 +0000 (23:16 +0200)
This is very basic settings for openrc init.

* system/Config.in
  Allows to select openrc as init system (which auto selects
  openrc-skeleton and openrc package).

* package/ifupdown-scripts/Config.in
  openrc has its own service to bring up/down interfaces, so
  ifupdown-scripts should not be enabled when openrc is enabled to
  prevent service clash.

Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl>
[Thomas: take into account the !BR2_STATIC_LIBS dependency]
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/ifupdown-scripts/Config.in
package/openrc/Config.in
system/Config.in

index 2f4b0d54674778030c3dbc919087dffb0d3aee62..4b984bc30c40e7681ba019cac488c4f07493200f 100644 (file)
@@ -1,7 +1,7 @@
 config BR2_PACKAGE_IFUPDOWN_SCRIPTS
        bool "ifupdown scripts"
        default y if BR2_ROOTFS_SKELETON_DEFAULT
-       depends on !BR2_PACKAGE_SYSTEMD_NETWORKD
+       depends on !BR2_PACKAGE_SYSTEMD_NETWORKD && !BR2_PACKAGE_OPENRC
        help
          Set of scripts used by ifupdown (either the standalone one,
          or the busybox one) to bring network up, or tear it down.
index 84c58b20c3ad8a475ea364dfdf17f2641ed81c55..796858f4045cc6aecf42555a3d4ce259edf31566 100644 (file)
@@ -2,6 +2,7 @@ config BR2_PACKAGE_OPENRC
        bool "openrc"
        depends on BR2_USE_MMU # fork()
        depends on !BR2_STATIC_LIBS
+       depends on BR2_INIT_OPENRC
        select BR2_PACKAGE_NCURSES
        help
          Init that works on top of pid 1 (for example
@@ -21,4 +22,5 @@ config BR2_PACKAGE_OPENRC
 
 comment "openrc needs a toolchain w/ dynamic library"
        depends on BR2_USE_MMU
+       depends on BR2_INIT_OPENRC
        depends on BR2_STATIC_LIBS
index 498b56e222aa969a33385496dec3c4440c2392bb..af7d8566d3a46846c43c511877a5db6a76293c86 100644 (file)
@@ -11,6 +11,7 @@ config BR2_ROOTFS_SKELETON_DEFAULT
        bool "default target skeleton"
        select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_SYSV
        select BR2_PACKAGE_SKELETON_INIT_SYSV if BR2_INIT_BUSYBOX
+       select BR2_PACKAGE_SKELETON_INIT_OPENRC if BR2_INIT_OPENRC
        select BR2_PACKAGE_SKELETON_INIT_SYSTEMD if BR2_INIT_SYSTEMD
        select BR2_PACKAGE_SKELETON_INIT_NONE if BR2_INIT_NONE
        help
@@ -98,6 +99,16 @@ config BR2_INIT_SYSV
        select BR2_PACKAGE_INITSCRIPTS
        select BR2_PACKAGE_SYSVINIT
 
+config BR2_INIT_OPENRC
+       bool "OpenRC"
+       depends on BR2_USE_MMU
+       depends on !BR2_STATIC_LIBS
+       select BR2_PACKAGE_OPENRC
+
+comment "openrc needs a toolchain w/ dynamic library"
+       depends on BR2_USE_MMU
+       depends on BR2_STATIC_LIBS
+
 # In Buildroot, we decided not to support a split-usr when systemd is
 # used as an init system. This is a design decision, not a systemd
 # issue. Thus the select is with BR2_INIT_SYSTEMD (below) rather than