浏览代码

package/systemd: support new v246 options

This adds switches for new options:

initrd: Installs services if systemd is used on an initramfs,
useless otherwise

kernel-install: helper scripts to update kernel with an
systemd-boot partition

analyze: tool to analyze bootup and dependencies

Signed-off-by: Norbert Lange <nolange79@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Norbert Lange 5 年之前
父节点
当前提交
9854f5ba5a
共有 2 个文件被更改,包括 43 次插入0 次删除
  1. 25 0
      package/systemd/Config.in
  2. 18 0
      package/systemd/systemd.mk

+ 25 - 0
package/systemd/Config.in

@@ -112,6 +112,30 @@ config BR2_PACKAGE_SYSTEMD_BOOT
 
 
 	  https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/
 	  https://www.freedesktop.org/wiki/Software/systemd/systemd-boot/
 
 
+config BR2_PACKAGE_SYSTEMD_INITRD
+	bool "Services for booting from initrd"
+	help
+	  Install various services that are only useful if systemd is
+	  run from an initrd.
+
+config BR2_PACKAGE_SYSTEMD_KERNELINSTALL
+	bool "install kernel-install and related files"
+	help
+	  kernel-install is used to install and remove kernel and
+	  initramfs images to and from the boot loader partition.
+	  The boot loader partition will usually be one of
+	  /boot, /efi, or /boot/efi.
+
+config BR2_PACKAGE_SYSTEMD_ANALYZE
+	bool "systemd-analyze"
+	help
+	  systemd-analyze may be used to determine system boot-up
+	  performance statistics and retrieve other state and tracing
+	  information from the system and service manager, and to
+	  verify the correctness of unit files.
+	  It is also used to access special functions useful for
+	  advanced system manager debugging.
+
 config BR2_PACKAGE_SYSTEMD_BOOT_EFI_ARCH
 config BR2_PACKAGE_SYSTEMD_BOOT_EFI_ARCH
 	string
 	string
 	default "ia32"  if BR2_i386
 	default "ia32"  if BR2_i386
@@ -187,6 +211,7 @@ config BR2_PACKAGE_SYSTEMD_FIRSTBOOT
 
 
 config BR2_PACKAGE_SYSTEMD_HIBERNATE
 config BR2_PACKAGE_SYSTEMD_HIBERNATE
 	bool "enable hibernation support"
 	bool "enable hibernation support"
+	select BR2_PACKAGE_SYSTEMD_INITRD
 	help
 	help
 	  When this features is enabled, additional tools and services
 	  When this features is enabled, additional tools and services
 	  are built to support suspending and resuming the system.
 	  are built to support suspending and resuming the system.

+ 18 - 0
package/systemd/systemd.mk

@@ -208,6 +208,24 @@ else
 SYSTEMD_CONF_OPTS += -Dpcre2=false
 SYSTEMD_CONF_OPTS += -Dpcre2=false
 endif
 endif
 
 
+ifeq ($(BR2_PACKAGE_SYSTEMD_INITRD),y)
+SYSTEMD_CONF_OPTS += -Dinitrd=true
+else
+SYSTEMD_CONF_OPTS += -Dinitrd=false
+endif
+
+ifeq ($(BR2_PACKAGE_SYSTEMD_KERNELINSTALL),y)
+SYSTEMD_CONF_OPTS += -Dkernel-install=true
+else
+SYSTEMD_CONF_OPTS += -Dkernel-install=false
+endif
+
+ifeq ($(BR2_PACKAGE_SYSTEMD_ANALYZE),y)
+SYSTEMD_CONF_OPTS += -Danalyze=true
+else
+SYSTEMD_CONF_OPTS += -Danalyze=false
+endif
+
 ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY),y)
 ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY),y)
 SYSTEMD_DEPENDENCIES += libmicrohttpd
 SYSTEMD_DEPENDENCIES += libmicrohttpd
 SYSTEMD_CONF_OPTS += -Dmicrohttpd=true
 SYSTEMD_CONF_OPTS += -Dmicrohttpd=true