1 ################################################################################
5 ################################################################################
8 SYSTEMD_SITE
= http
://www.freedesktop.org
/software
/systemd
/
9 SYSTEMD_SOURCE
= systemd-
$(SYSTEMD_VERSION
).
tar.xz
10 SYSTEMD_LICENSE
= LGPLv2.1
+; GPLv2
+ for udev
; MIT-like license for few source files listed in README
11 SYSTEMD_LICENSE_FILES
= LICENSE.GPL2 LICENSE.LGPL2.1 LICENSE.MIT
12 SYSTEMD_INSTALL_STAGING
= YES
13 SYSTEMD_DEPENDENCIES
= \
20 # Make sure that systemd will always be built after busybox so that we have
21 # a consistent init setup between two builds
22 ifeq ($(BR2_PACKAGE_BUSYBOX
),y
)
23 SYSTEMD_DEPENDENCIES
+= busybox
28 --with-rootlibdir
=/lib \
29 --localstatedir
=/var \
34 --disable-libcryptsetup \
35 --with-dbuspolicydir
=/etc
/dbus-1
/system.d \
36 --with-dbussessionservicedir
=/usr
/share
/dbus-1
/services \
37 --with-dbussystemservicedir
=/usr
/share
/dbus-1
/system-services \
38 --with-dbusinterfacedir
=/usr
/share
/dbus-1
/interfaces \
39 --with-firmware-path
=/lib
/firmware \
41 --enable-introspection
=no \
43 --disable-myhostname \
49 ifeq ($(BR2_PACKAGE_SYSTEMD_COMPAT
),y
)
50 SYSTEMD_CONF_OPT
+= --enable-compat-libs
52 SYSTEMD_CONF_OPT
+= --disable-compat-libs
55 ifeq ($(BR2_PACKAGE_ACL
),y
)
56 SYSTEMD_CONF_OPT
+= --enable-acl
57 SYSTEMD_DEPENDENCIES
+= acl
59 SYSTEMD_CONF_OPT
+= --disable-acl
62 ifeq ($(BR2_PACKAGE_LIBGLIB2
),y
)
63 SYSTEMD_CONF_OPT
+= --enable-gudev
64 SYSTEMD_DEPENDENCIES
+= libglib2
66 SYSTEMD_CONF_OPT
+= --disable-gudev
69 ifeq ($(BR2_PACKAGE_SYSTEMD_ALL_EXTRAS
),y
)
70 SYSTEMD_DEPENDENCIES
+= \
76 --with-libgcrypt-prefix
=$(STAGING_DIR
)/usr
83 ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY
),y
)
84 SYSTEMD_DEPENDENCIES
+= libmicrohttpd
86 SYSTEMD_CONF_OPT
+= --disable-microhttpd
89 ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD
),y
)
90 SYSTEMD_CONF_OPT
+= --enable-networkd
92 SYSTEMD_CONF_OPT
+= --disable-networkd
95 # mq_getattr needs -lrt
96 SYSTEMD_MAKE_OPT
+= LIBS
=-lrt
97 SYSTEMD_MAKE_OPT
+= LDFLAGS
+=-ldl
99 define SYSTEMD_INSTALL_INIT_HOOK
100 ln
-fs ..
/lib
/systemd
/systemd
$(TARGET_DIR
)/sbin
/init
101 ln
-fs ..
/bin
/systemctl
$(TARGET_DIR
)/sbin
/halt
102 ln
-fs ..
/bin
/systemctl
$(TARGET_DIR
)/sbin
/poweroff
103 ln
-fs ..
/bin
/systemctl
$(TARGET_DIR
)/sbin
/reboot
105 ln
-fs ..
/..
/..
/lib
/systemd
/system
/multi-user.target
$(TARGET_DIR
)/etc
/systemd
/system
/default.target
108 define SYSTEMD_INSTALL_TTY_HOOK
109 rm -f
$(TARGET_DIR
)/etc
/systemd
/system
/getty.target.wants
/getty@tty1.service
110 ln
-fs ..
/..
/..
/..
/lib
/systemd
/system
/serial-getty@.service
$(TARGET_DIR
)/etc
/systemd
/system
/getty.target.wants
/serial-getty@
$(BR2_TARGET_GENERIC_GETTY_PORT
).service
113 define SYSTEMD_INSTALL_MACHINEID_HOOK
114 touch
$(TARGET_DIR
)/etc
/machine-id
117 define SYSTEMD_SANITIZE_PATH_IN_UNITS
118 find
$(TARGET_DIR
)/lib
/systemd
/system
-name
'*.service' \
119 -exec
$(SED
) 's,$(HOST_DIR),,g' {} \
;
122 SYSTEMD_POST_INSTALL_TARGET_HOOKS
+= \
123 SYSTEMD_INSTALL_INIT_HOOK \
124 SYSTEMD_INSTALL_TTY_HOOK \
125 SYSTEMD_INSTALL_MACHINEID_HOOK \
126 SYSTEMD_SANITIZE_PATH_IN_UNITS
129 systemd-journal
-1 systemd-journal
-1 * /var
/log
/journal
- - Journal
130 systemd-journal-gateway
-1 systemd-journal-gateway
-1 * /var
/log
/journal
- - Journal Gateway
133 $(eval
$(autotools-package
))