|
@@ -4,7 +4,7 @@
|
|
|
#
|
|
|
################################################################################
|
|
|
|
|
|
-SYSTEMD_VERSION = 241
|
|
|
+SYSTEMD_VERSION = 243
|
|
|
SYSTEMD_SITE = $(call github,systemd,systemd,v$(SYSTEMD_VERSION))
|
|
|
SYSTEMD_LICENSE = LGPL-2.1+, GPL-2.0+ (udev), Public Domain (few source files, see README)
|
|
|
SYSTEMD_LICENSE_FILES = LICENSE.GPL2 LICENSE.LGPL2.1 README
|
|
@@ -24,7 +24,6 @@ SYSTEMD_CONF_OPTS += \
|
|
|
-Dblkid=true \
|
|
|
-Dman=false \
|
|
|
-Dima=false \
|
|
|
- -Dlibcryptsetup=false \
|
|
|
-Dldconfig=false \
|
|
|
-Ddefault-dnssec=no \
|
|
|
-Dtests=false \
|
|
@@ -52,6 +51,12 @@ endif
|
|
|
ifeq ($(BR2_PACKAGE_AUDIT),y)
|
|
|
SYSTEMD_DEPENDENCIES += audit
|
|
|
SYSTEMD_CONF_OPTS += -Daudit=true
|
|
|
+define SYSTEMD_INSTALL_SERVICE_AUDIT
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../usr/lib/systemd/system/auditd.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/auditd.service
|
|
|
+endef
|
|
|
+
|
|
|
else
|
|
|
SYSTEMD_CONF_OPTS += -Daudit=false
|
|
|
endif
|
|
@@ -59,6 +64,11 @@ endif
|
|
|
ifeq ($(BR2_PACKAGE_CRYPTSETUP),y)
|
|
|
SYSTEMD_DEPENDENCIES += cryptsetup
|
|
|
SYSTEMD_CONF_OPTS += -Dlibcryptsetup=true
|
|
|
+define SYSTEMD_INSTALL_TARGET_CRYPTSETUP
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../usr/lib/systemd/system/remote-cryptsetup.target \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/remote-cryptsetup.target
|
|
|
+endef
|
|
|
else
|
|
|
SYSTEMD_CONF_OPTS += -Dlibcryptsetup=false
|
|
|
endif
|
|
@@ -259,6 +269,11 @@ endif
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_MACHINED),y)
|
|
|
SYSTEMD_CONF_OPTS += -Dmachined=true
|
|
|
+define SYSTEMD_INSTALL_TARGET_MACHINED
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../lib/systemd/system/machines.target \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/machines.target
|
|
|
+endef
|
|
|
else
|
|
|
SYSTEMD_CONF_OPTS += -Dmachined=false
|
|
|
endif
|
|
@@ -300,6 +315,17 @@ else
|
|
|
SYSTEMD_CONF_OPTS += -Dcoredump=false
|
|
|
endif
|
|
|
|
|
|
+ifeq ($(BR2_PACKAGE_SYSTEMD_PSTORE),y)
|
|
|
+SYSTEMD_CONF_OPTS += -Dpstore=true
|
|
|
+define SYSTEMD_INSTALL_SERVICE_PSTORE
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/systemd-remount-fs.service.wants
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-pstore.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/systemd-remount-fs.service.wants/systemd-pstore.service
|
|
|
+endef
|
|
|
+else
|
|
|
+SYSTEMD_CONF_OPTS += -Dpstore=false
|
|
|
+endif
|
|
|
+
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_POLKIT),y)
|
|
|
SYSTEMD_CONF_OPTS += -Dpolkit=true
|
|
|
SYSTEMD_DEPENDENCIES += polkit
|
|
@@ -310,6 +336,24 @@ endif
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
|
|
|
SYSTEMD_CONF_OPTS += -Dnetworkd=true
|
|
|
SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - Network Manager
|
|
|
+define SYSTEMD_INSTALL_SOCKET_NETWORKD
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/sockets.target.wants
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-networkd.socket \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/sockets.target.wants/systemd-networkd.socket
|
|
|
+endef
|
|
|
+define SYSTEMD_INSTALL_SERVICE_NETWORKD
|
|
|
+ ln -sf ../../../lib/systemd/system/systemd-networkd.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.network1.service
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-networkd.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/systemd-networkd.service
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/network-online.target.wants
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-networkd-wait-online.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/network-online.target.wants/systemd-networkd-wait-online.service
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/network-pre.target.wants
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-network-generator.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/network-pre.target.wants/systemd-network-generator.service
|
|
|
+endef
|
|
|
define SYSTEMD_INSTALL_RESOLVCONF_HOOK
|
|
|
ln -sf ../run/systemd/resolve/resolv.conf \
|
|
|
$(TARGET_DIR)/etc/resolv.conf
|
|
@@ -329,6 +373,13 @@ endif
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_RESOLVED),y)
|
|
|
SYSTEMD_CONF_OPTS += -Dresolve=true
|
|
|
SYSTEMD_RESOLVED_USER = systemd-resolve -1 systemd-resolve -1 * - - - Network Name Resolution Manager
|
|
|
+define SYSTEMD_INSTALL_SERVICE_RESOLVED
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../lib/systemd/system/systemd-resolved.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.resolve1.service
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-resolved.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/systemd-resolved.service
|
|
|
+endef
|
|
|
else
|
|
|
SYSTEMD_CONF_OPTS += -Dresolve=false
|
|
|
endif
|
|
@@ -336,10 +387,14 @@ endif
|
|
|
ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
|
|
|
SYSTEMD_CONF_OPTS += -Dtimesyncd=true
|
|
|
SYSTEMD_TIMESYNCD_USER = systemd-timesync -1 systemd-timesync -1 * - - - Network Time Synchronization
|
|
|
-define SYSTEMD_INSTALL_SERVICE_TIMESYNC
|
|
|
+define SYSTEMD_INSTALL_SERVICE_TIMESYNCD
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
|
|
|
ln -sf ../../../../lib/systemd/system/systemd-timesyncd.service \
|
|
|
$(TARGET_DIR)/etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-time-wait-sync.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants/systemd-time-wait-sync.service
|
|
|
+ ln -sf ../../../lib/systemd/system/systemd-timesyncd.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/dbus-org.freedesktop.timesync1.service
|
|
|
endef
|
|
|
else
|
|
|
SYSTEMD_CONF_OPTS += -Dtimesyncd=false
|
|
@@ -398,6 +453,11 @@ define SYSTEMD_INSTALL_INIT_HOOK
|
|
|
ln -fs ../bin/systemctl $(TARGET_DIR)/sbin/shutdown
|
|
|
ln -fs ../../../lib/systemd/system/multi-user.target \
|
|
|
$(TARGET_DIR)/etc/systemd/system/default.target
|
|
|
+ ln -fs ../../../lib/systemd/system/reboot.target \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/ctrl-alt-del.target
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
|
|
+ ln -sf ../../../../lib/systemd/system/remote-fs.target \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/remote-fs.target
|
|
|
endef
|
|
|
|
|
|
define SYSTEMD_INSTALL_MACHINEID_HOOK
|
|
@@ -405,6 +465,9 @@ define SYSTEMD_INSTALL_MACHINEID_HOOK
|
|
|
endef
|
|
|
|
|
|
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
|
|
+ SYSTEMD_INSTALL_TARGET_CRYPTSETUP \
|
|
|
+ SYSTEMD_INSTALL_TARGET_MACHINED \
|
|
|
+ SYSTEMD_INSTALL_SOCKET_NETWORKD \
|
|
|
SYSTEMD_INSTALL_INIT_HOOK \
|
|
|
SYSTEMD_INSTALL_MACHINEID_HOOK \
|
|
|
SYSTEMD_INSTALL_RESOLVCONF_HOOK
|
|
@@ -449,6 +512,7 @@ define SYSTEMD_INSTALL_SERVICE_TTY
|
|
|
TARGET="serial-getty@.service"; \
|
|
|
LINK_NAME="serial-getty@$(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)).service"; \
|
|
|
fi; \
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/getty.target.wants/; \
|
|
|
ln -fs ../../../../lib/systemd/system/$${TARGET} \
|
|
|
$(TARGET_DIR)/etc/systemd/system/getty.target.wants/$${LINK_NAME}; \
|
|
|
if [ $(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE)) -gt 0 ] ; \
|
|
@@ -458,11 +522,28 @@ define SYSTEMD_INSTALL_SERVICE_TTY
|
|
|
endef
|
|
|
endif
|
|
|
|
|
|
+define SYSTEMD_INSTALL_SERVICE_AUTOVT
|
|
|
+ ln -sf ../../../lib/systemd/system/getty@.service \
|
|
|
+ $(TARGET_DIR)/lib/systemd/system/autovt@.service
|
|
|
+endef
|
|
|
+
|
|
|
+define SYSTEMD_INSTALL_SERVICE_BOOT_CHECK
|
|
|
+ mkdir -p $(TARGET_DIR)/etc/systemd/system/boot-complete.target.requires
|
|
|
+ ln -sf ../../../../lib/systemd/system/systemd-boot-check-no-failures.service \
|
|
|
+ $(TARGET_DIR)/etc/systemd/system/boot-complete.target.requires/systemd-boot-check-no-failures.service
|
|
|
+endef
|
|
|
+
|
|
|
define SYSTEMD_INSTALL_INIT_SYSTEMD
|
|
|
$(SYSTEMD_DISABLE_SERVICE_TTY1)
|
|
|
$(SYSTEMD_INSTALL_SERVICE_TTY)
|
|
|
- $(SYSTEMD_INSTALL_SERVICE_TIMESYNC)
|
|
|
+ $(SYSTEMD_INSTALL_SERVICE_AUTOVT)
|
|
|
+ $(SYSTEMD_INSTALL_SERVICE_RESOLVED)
|
|
|
+ $(SYSTEMD_INSTALL_SERVICE_TIMESYNCD)
|
|
|
$(SYSTEMD_INSTALL_NETWORK_CONFS)
|
|
|
+ $(SYSTEMD_INSTALL_SERVICE_PSTORE)
|
|
|
+ $(SYSTEMD_INSTALL_SERVICE_NETWORKD)
|
|
|
+ $(SYSTEMD_INSTALL_SERVICE_AUDIT)
|
|
|
+ $(SYSTEMD_INSTALL_SERVICE_BOOT_CHECK)
|
|
|
endef
|
|
|
|
|
|
SYSTEMD_CONF_ENV = $(HOST_UTF8_LOCALE_ENV)
|