mirror of
https://git.yoctoproject.org/poky
synced 2026-02-23 18:09:40 +01:00
Introduce a new variable INIT_MANAGER and create 4 init-manager-*.inc files to configure init manager settings. Available values of INIT_MANAGER are sysvinit, systemd, mdev-busybox and a default of none. 'none' provides backwards compatibility. The settings of various VIRTUAL-RUNTIME variables are moved into these files from the packagegroups. [YOCTO #13031] [Modifications by RP for backwards compatibility] (From OE-Core rev: 8d0b4704a526a48cd5e67df61b613424bbbdccde) Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
48 lines
1.5 KiB
BlitzBasic
48 lines
1.5 KiB
BlitzBasic
#
|
|
# Copyright (C) 2007 OpenedHand Ltd.
|
|
#
|
|
|
|
SUMMARY = "Minimal boot requirements"
|
|
DESCRIPTION = "The minimal set of packages required to boot the system"
|
|
PR = "r17"
|
|
|
|
PACKAGE_ARCH = "${MACHINE_ARCH}"
|
|
|
|
inherit packagegroup
|
|
|
|
#
|
|
# Set by the machine configuration with packages essential for device bootup
|
|
#
|
|
MACHINE_ESSENTIAL_EXTRA_RDEPENDS ?= ""
|
|
MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS ?= ""
|
|
|
|
# Distro can override the following VIRTUAL-RUNTIME providers:
|
|
VIRTUAL-RUNTIME_dev_manager ?= "udev"
|
|
VIRTUAL-RUNTIME_keymaps ?= "keymaps"
|
|
|
|
EFI_PROVIDER ??= "grub-efi"
|
|
|
|
SYSVINIT_SCRIPTS = "${@bb.utils.contains('MACHINE_FEATURES', 'rtc', '${VIRTUAL-RUNTIME_base-utils-hwclock}', '', d)} \
|
|
modutils-initscripts \
|
|
init-ifupdown \
|
|
${VIRTUAL-RUNTIME_initscripts} \
|
|
"
|
|
|
|
RDEPENDS_${PN} = "\
|
|
base-files \
|
|
base-passwd \
|
|
${VIRTUAL-RUNTIME_base-utils} \
|
|
${@bb.utils.contains("DISTRO_FEATURES", "sysvinit", "${SYSVINIT_SCRIPTS}", "", d)} \
|
|
${@bb.utils.contains("MACHINE_FEATURES", "keyboard", "${VIRTUAL-RUNTIME_keymaps}", "", d)} \
|
|
${@bb.utils.contains("MACHINE_FEATURES", "efi", "${EFI_PROVIDER} kernel", "", d)} \
|
|
netbase \
|
|
${VIRTUAL-RUNTIME_login_manager} \
|
|
${VIRTUAL-RUNTIME_init_manager} \
|
|
${VIRTUAL-RUNTIME_dev_manager} \
|
|
${VIRTUAL-RUNTIME_update-alternatives} \
|
|
${MACHINE_ESSENTIAL_EXTRA_RDEPENDS}"
|
|
|
|
RRECOMMENDS_${PN} = "\
|
|
${VIRTUAL-RUNTIME_base-utils-syslog} \
|
|
${MACHINE_ESSENTIAL_EXTRA_RRECOMMENDS}"
|