Update buidlroot to version 2016.08.1
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
SYSTEMD_VERSION = 228
|
||||
SYSTEMD_VERSION = 231
|
||||
SYSTEMD_SITE = $(call github,systemd,systemd,v$(SYSTEMD_VERSION))
|
||||
SYSTEMD_LICENSE = LGPLv2.1+, GPLv2+ (udev), Public Domain (few source files, see README)
|
||||
SYSTEMD_LICENSE_FILES = LICENSE.GPL2 LICENSE.LGPL2.1 README
|
||||
@@ -27,15 +27,19 @@ endif
|
||||
|
||||
SYSTEMD_CONF_OPTS += \
|
||||
--with-rootprefix= \
|
||||
--enable-blkid \
|
||||
--enable-static=no \
|
||||
--disable-manpages \
|
||||
--disable-selinux \
|
||||
--disable-pam \
|
||||
--disable-ima \
|
||||
--disable-libcryptsetup \
|
||||
--disable-efi \
|
||||
--disable-gnuefi \
|
||||
--disable-ldconfig \
|
||||
--disable-tests \
|
||||
--disable-coverage \
|
||||
--with-default-dnssec=no \
|
||||
--without-python
|
||||
|
||||
SYSTEMD_CFLAGS = $(TARGET_CFLAGS) -fno-lto
|
||||
@@ -50,12 +54,6 @@ define SYSTEMD_RUN_INTLTOOLIZE
|
||||
endef
|
||||
SYSTEMD_PRE_CONFIGURE_HOOKS += SYSTEMD_RUN_INTLTOOLIZE
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_COMPAT),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-compat-libs
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-compat-libs
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ACL),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-acl
|
||||
SYSTEMD_DEPENDENCIES += acl
|
||||
@@ -63,6 +61,20 @@ else
|
||||
SYSTEMD_CONF_OPTS += --disable-acl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_AUDIT),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-audit
|
||||
SYSTEMD_DEPENDENCIES += audit
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-audit
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBIDN),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-libidn
|
||||
SYSTEMD_DEPENDENCIES += libidn
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-libidn
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-seccomp
|
||||
SYSTEMD_DEPENDENCIES += libseccomp
|
||||
@@ -70,32 +82,195 @@ else
|
||||
SYSTEMD_CONF_OPTS += --disable-seccomp
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBXKBCOMMON),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-xkbcommon
|
||||
SYSTEMD_DEPENDENCIES += libxkbcommon
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-xkbcommon
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_KDBUS),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-kdbus
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-kdbus
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_ALL_EXTRAS),y)
|
||||
SYSTEMD_DEPENDENCIES += xz libgcrypt
|
||||
SYSTEMD_CONF_OPTS += \
|
||||
--enable-xz \
|
||||
--enable-gcrypt \
|
||||
--with-libgcrypt-prefix=$(STAGING_DIR)/usr
|
||||
ifeq ($(BR2_PACKAGE_BZIP2),y)
|
||||
SYSTEMD_DEPENDENCIES += bzip2
|
||||
SYSTEMD_CONF_OPTS += --enable-bzip2
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-bzip2
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LZ4),y)
|
||||
SYSTEMD_DEPENDENCIES += lz4
|
||||
SYSTEMD_CONF_OPTS += --enable-lz4
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-lz4
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XZ),y)
|
||||
SYSTEMD_DEPENDENCIES += xz
|
||||
SYSTEMD_CONF_OPTS += --enable-xz
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-xz
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
SYSTEMD_DEPENDENCIES += zlib
|
||||
SYSTEMD_CONF_OPTS += --enable-zlib
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-zlib
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
||||
SYSTEMD_DEPENDENCIES += libcurl
|
||||
SYSTEMD_CONF_OPTS += --enable-libcurl
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-libcurl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
|
||||
SYSTEMD_DEPENDENCIES += libgcrypt
|
||||
SYSTEMD_CONF_OPTS += \
|
||||
--disable-xz \
|
||||
--disable-gcrypt
|
||||
--enable-gcrypt \
|
||||
--with-libgcrypt-prefix=$(STAGING_DIR)/usr \
|
||||
--with-libgpg-error-prefix=$(STAGING_DIR)/usr
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-gcrypt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_JOURNAL_GATEWAY),y)
|
||||
SYSTEMD_DEPENDENCIES += libmicrohttpd
|
||||
SYSTEMD_CONF_OPTS += --enable-microhttpd
|
||||
ifeq ($(BR2_PACKAGE_LIBQRENCODE),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-qrencode
|
||||
SYSTEMD_DEPENDENCIES += libqrencode
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-microhttpd
|
||||
SYSTEMD_CONF_OPTS += --disable-qrencode
|
||||
endif
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-microhttpd --disable-qrencode
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_HWDB),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-hwdb
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-hwdb
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_BINFMT),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-binfmt
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-binfmt
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_VCONSOLE),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-vconsole
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-vconsole
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_QUOTACHECK),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-quotacheck
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-quotacheck
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_TMPFILES),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-tmpfiles
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-tmpfiles
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_SYSUSERS),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-sysusers
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-sysusers
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_FIRSTBOOT),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-firstboot
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-firstboot
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_RANDOMSEED),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-randomseed
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-randomseed
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_BACKLIGHT),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-backlight
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-backlight
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_RFKILL),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-rfkill
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-rfkill
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_LOGIND),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-logind
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-logind
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_MACHINED),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-machined
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-machined
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_IMPORTD),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-importd
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-importd
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_HOSTNAMED),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-hostnamed
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-hostnamed
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_MYHOSTNAME),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-myhostname
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-myhostname
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_TIMEDATED),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-timedated
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-timedated
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_LOCALED),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-localed
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-localed
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_COREDUMP),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-coredump
|
||||
SYSTEMD_COREDUMP_USER = systemd-coredump -1 systemd-coredump -1 * /var/lib/systemd/coredump - - Core Dumper
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-coredump
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_POLKIT),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-polkit
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-polkit
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_NETWORKD),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-networkd
|
||||
SYSTEMD_NETWORKD_USER = systemd-network -1 systemd-network -1 * - - - Network Manager
|
||||
define SYSTEMD_INSTALL_RESOLVCONF_HOOK
|
||||
ln -sf ../run/systemd/resolve/resolv.conf \
|
||||
$(TARGET_DIR)/etc/resolv.conf
|
||||
@@ -111,8 +286,16 @@ define SYSTEMD_INSTALL_SERVICE_NETWORK
|
||||
endef
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_RESOLVED),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-resolved
|
||||
SYSTEMD_RESOLVED_USER = systemd-resolve -1 systemd-resolve -1 * - - - Network Name Resolution Manager
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-resolved
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_TIMESYNCD),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-timesyncd
|
||||
SYSTEMD_TIMESYNCD_USER = systemd-timesync -1 systemd-timesync -1 * - - - Network Time Synchronization
|
||||
define SYSTEMD_INSTALL_SERVICE_TIMESYNC
|
||||
mkdir -p $(TARGET_DIR)/etc/systemd/system/sysinit.target.wants
|
||||
ln -sf ../../../../lib/systemd/system/systemd-timesyncd.service \
|
||||
@@ -128,9 +311,11 @@ else
|
||||
SYSTEMD_CONF_OPTS += --disable-smack
|
||||
endif
|
||||
|
||||
# mq_getattr needs -lrt
|
||||
SYSTEMD_MAKE_OPTS += LIBS=-lrt
|
||||
SYSTEMD_MAKE_OPTS += LDFLAGS+=-ldl
|
||||
ifeq ($(BR2_PACKAGE_SYSTEMD_HIBERNATE),y)
|
||||
SYSTEMD_CONF_OPTS += --enable-hibernate
|
||||
else
|
||||
SYSTEMD_CONF_OPTS += --disable-hibernate
|
||||
endif
|
||||
|
||||
define SYSTEMD_INSTALL_INIT_HOOK
|
||||
ln -fs ../lib/systemd/systemd $(TARGET_DIR)/sbin/init
|
||||
@@ -152,15 +337,16 @@ SYSTEMD_POST_INSTALL_TARGET_HOOKS += \
|
||||
SYSTEMD_INSTALL_RESOLVCONF_HOOK
|
||||
|
||||
define SYSTEMD_USERS
|
||||
systemd-journal -1 systemd-journal -1 * /var/log/journal - - Journal
|
||||
- - input -1 * - - - Input device group
|
||||
- - systemd-journal -1 * - - - Journal
|
||||
systemd-bus-proxy -1 systemd-bus-proxy -1 * - - - Proxy D-Bus messages to/from a bus
|
||||
systemd-journal-gateway -1 systemd-journal-gateway -1 * /var/log/journal - - Journal Gateway
|
||||
systemd-journal-remote -1 systemd-journal-remote -1 * /var/log/journal/remote - - Journal Remote
|
||||
systemd-journal-upload -1 systemd-journal-upload -1 * - - - Journal Upload
|
||||
systemd-resolve -1 systemd-resolve -1 * - - - Network Name Resolution Manager
|
||||
systemd-bus-proxy -1 systemd-bus-proxy -1 * - - - Proxy D-Bus messages to/from a bus
|
||||
systemd-timesync -1 systemd-timesync -1 * - - - Network Time Synchronization
|
||||
systemd-network -1 systemd-network -1 * - - - Network Manager
|
||||
- - input -1 * - - - Input device group
|
||||
$(SYSTEMD_COREDUMP_USER)
|
||||
$(SYSTEMD_NETWORKD_USER)
|
||||
$(SYSTEMD_RESOLVED_USER)
|
||||
$(SYSTEMD_TIMESYNCD_USER)
|
||||
endef
|
||||
|
||||
define SYSTEMD_DISABLE_SERVICE_TTY1
|
||||
@@ -169,6 +355,7 @@ endef
|
||||
|
||||
ifneq ($(call qstrip,$(BR2_TARGET_GENERIC_GETTY_PORT)),)
|
||||
# systemd needs getty.service for VTs and serial-getty.service for serial ttys
|
||||
# also patch the file to use the correct baud-rate, the default baudrate is 115200 so look for that
|
||||
define SYSTEMD_INSTALL_SERVICE_TTY
|
||||
if echo $(BR2_TARGET_GENERIC_GETTY_PORT) | egrep -q 'tty[0-9]*$$'; \
|
||||
then \
|
||||
@@ -177,7 +364,11 @@ define SYSTEMD_INSTALL_SERVICE_TTY
|
||||
SERVICE="serial-getty"; \
|
||||
fi; \
|
||||
ln -fs ../../../../lib/systemd/system/$${SERVICE}@.service \
|
||||
$(TARGET_DIR)/etc/systemd/system/getty.target.wants/$${SERVICE}@$(BR2_TARGET_GENERIC_GETTY_PORT).service
|
||||
$(TARGET_DIR)/etc/systemd/system/getty.target.wants/$${SERVICE}@$(BR2_TARGET_GENERIC_GETTY_PORT).service; \
|
||||
if [ $(call qstrip,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE)) -gt 0 ] ; \
|
||||
then \
|
||||
$(SED) 's,115200,$(BR2_TARGET_GENERIC_GETTY_BAUDRATE),' $(TARGET_DIR)/lib/systemd/system/$${SERVICE}@.service; \
|
||||
fi
|
||||
endef
|
||||
endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user