2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-03-23 16:49:52 +01:00
|
|
|
#
|
|
|
|
# systemd
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2012-04-04 16:46:59 +02:00
|
|
|
SYSTEMD_VERSION = 44
|
2012-03-23 16:49:52 +01:00
|
|
|
SYSTEMD_SITE = http://www.freedesktop.org/software/systemd/
|
2012-04-04 16:46:59 +02:00
|
|
|
SYSTEMD_SOURCE = systemd-$(SYSTEMD_VERSION).tar.xz
|
2013-10-14 14:25:04 +02:00
|
|
|
SYSTEMD_LICENSE = GPLv2+
|
|
|
|
SYSTEMD_LICENSE_FILES = LICENSE
|
2012-05-20 12:52:49 +02:00
|
|
|
SYSTEMD_INSTALL_STAGING = YES
|
2012-03-23 16:49:52 +01:00
|
|
|
SYSTEMD_DEPENDENCIES = \
|
|
|
|
host-intltool \
|
|
|
|
libcap \
|
|
|
|
udev \
|
|
|
|
dbus
|
|
|
|
|
|
|
|
# Make sure that systemd will always be built after busybox so that we have
|
|
|
|
# a consistent init setup between two builds
|
|
|
|
ifeq ($(BR2_PACKAGE_BUSYBOX),y)
|
|
|
|
SYSTEMD_DEPENDENCIES += busybox
|
|
|
|
endif
|
|
|
|
|
|
|
|
SYSTEMD_CONF_OPT += \
|
|
|
|
--with-distro=other \
|
|
|
|
--disable-selinux \
|
|
|
|
--disable-pam \
|
|
|
|
--disable-libcryptsetup \
|
|
|
|
--disable-gtk \
|
|
|
|
--disable-plymouth \
|
|
|
|
--with-rootdir=/ \
|
|
|
|
--with-dbuspolicydir=/etc/dbus-1/system.d \
|
|
|
|
--with-dbussessionservicedir=/usr/share/dbus-1/services \
|
|
|
|
--with-dbussystemservicedir=/usr/share/dbus-1/system-services \
|
|
|
|
--with-dbusinterfacedir=/usr/share/dbus-1/interfaces \
|
|
|
|
--with-udevrulesdir=/etc/udev/rules.d \
|
|
|
|
--with-sysvinit-path=/etc/init.d/ \
|
2012-04-04 16:46:59 +02:00
|
|
|
--without-sysvrcd-path \
|
|
|
|
--enable-split-usr
|
2012-03-23 16:49:52 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_ACL),y)
|
|
|
|
SYSTEMD_CONF_OPT += --enable-acl
|
|
|
|
SYSTEMD_DEPENDENCIES += acl
|
|
|
|
else
|
|
|
|
SYSTEMD_CONF_OPT += --disable-acl
|
|
|
|
endif
|
|
|
|
|
2012-04-04 16:46:59 +02:00
|
|
|
ifneq ($(BR2_LARGEFILE),y)
|
|
|
|
SYSTEMD_CONF_OPT += --disable-largefile
|
|
|
|
endif
|
|
|
|
|
2012-03-31 23:57:35 +02:00
|
|
|
# mq_getattr needs -lrt
|
|
|
|
SYSTEMD_MAKE_OPT += LIBS=-lrt
|
2012-04-04 16:46:59 +02:00
|
|
|
SYSTEMD_MAKE_OPT += LDFLAGS+=-ldl
|
2012-03-31 23:57:35 +02:00
|
|
|
|
2012-03-23 16:49:52 +01:00
|
|
|
define SYSTEMD_INSTALL_INIT_HOOK
|
2012-04-04 16:46:59 +02:00
|
|
|
ln -fs ../usr/lib/systemd/systemd $(TARGET_DIR)/sbin/init
|
|
|
|
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/halt
|
|
|
|
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/poweroff
|
|
|
|
ln -fs ../usr/bin/systemctl $(TARGET_DIR)/sbin/reboot
|
2012-03-23 16:49:52 +01:00
|
|
|
|
2012-04-04 16:46:59 +02:00
|
|
|
ln -fs ../../../usr/lib/systemd/system/multi-user.target $(TARGET_DIR)/etc/systemd/system/default.target
|
2012-03-23 16:49:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
define SYSTEMD_INSTALL_TTY_HOOK
|
|
|
|
rm -f $(TARGET_DIR)/etc/systemd/system/getty.target.wants/getty@tty1.service
|
2012-04-04 16:46:59 +02:00
|
|
|
ln -fs ../../../../usr/lib/systemd/system/serial-getty@.service $(TARGET_DIR)/etc/systemd/system/getty.target.wants/serial-getty@$(BR2_TARGET_GENERIC_GETTY_PORT).service
|
2012-03-23 16:49:52 +01:00
|
|
|
endef
|
|
|
|
|
|
|
|
SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
|
|
|
SYSTEMD_INSTALL_INIT_HOOK \
|
|
|
|
SYSTEMD_INSTALL_TTY_HOOK \
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|