* Update buildroot-patches for 2020.11-rc1 buildroot * Update buildroot to 2020.11-rc1 Signed-off-by: Stefan Agner <stefan@agner.ch> * Don't rely on sfdisk --list-free output The --list-free (-F) argument does not allow machine readable mode. And it seems that the output format changes over time (different spacing, using size postfixes instead of raw blocks). Use sfdisk json output and calculate free partition space ourselfs. This works for 2.35 and 2.36 and is more robust since we rely on output which is meant for scripts to parse. * Migrate defconfigs for Buildroot 2020.11-rc1 In particular, rename BR2_TARGET_UBOOT_BOOT_SCRIPT(_SOURCE) to BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT(_SOURCE). * Rebase/remove systemd patches for systemd 246 * Drop apparmor/libapparmor from buildroot-external * hassos-persists: use /run as directory for lockfiles The U-Boot tools use /var/lock by default which is not created any more by systemd by default (it is under tmpfiles legacy.conf, which we no longer install). * Disable systemd-update-done.service The service is not suited for pure read-only systems. In particular the service needs to be able to write a file in /etc and /var. Remove the service. Note: This is a static service and cannot be removed using systemd-preset. * Disable apparmor.service for now The service loads all default profiles. Some might actually cause problems. E.g. the profile for ping seems not to match our setup for /etc/resolv.conf: [85503.634653] audit: type=1400 audit(1605286002.684:236): apparmor="DENIED" operation="open" profile="ping" name="/run/resolv.conf" pid=27585 comm="ping" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
90 lines
3.3 KiB
Makefile
90 lines
3.3 KiB
Makefile
################################################################################
|
|
#
|
|
# util-linux-libs
|
|
#
|
|
################################################################################
|
|
|
|
# Please keep this file as similar as possible to util-linux.mk
|
|
|
|
UTIL_LINUX_LIBS_VERSION = $(UTIL_LINUX_VERSION)
|
|
UTIL_LINUX_LIBS_SOURCE = $(UTIL_LINUX_SOURCE)
|
|
UTIL_LINUX_LIBS_SITE = $(UTIL_LINUX_SITE)
|
|
UTIL_LINUX_LIBS_DL_SUBDIR = $(UTIL_LINUX_DL_SUBDIR)
|
|
|
|
# README.licensing claims that some files are GPL-2.0 only, but this is not
|
|
# true. Some files are GPL-3.0+ but only in tests and optionally in hwclock
|
|
# (but we disable that option). rfkill uses an ISC-style license.
|
|
UTIL_LINUX_LIBS_LICENSE = LGPL-2.1+ (libblkid, libfdisk, libmount), BSD-3-Clause (libuuid)
|
|
UTIL_LINUX_LIBS_LICENSE_FILES = README.licensing \
|
|
Documentation/licenses/COPYING.BSD-3-Clause \
|
|
Documentation/licenses/COPYING.LGPL-2.1-or-later
|
|
|
|
UTIL_LINUX_LIBS_INSTALL_STAGING = YES
|
|
UTIL_LINUX_LIBS_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
$(TARGET_NLS_DEPENDENCIES)
|
|
UTIL_LINUX_LIBS_CONF_OPTS += \
|
|
--disable-rpath \
|
|
--disable-makeinstall-chown
|
|
|
|
UTIL_LINUX_LIBS_LINK_LIBS = $(TARGET_NLS_LIBS)
|
|
|
|
# Prevent the installation from attempting to move shared libraries from
|
|
# ${usrlib_execdir} (/usr/lib) to ${libdir} (/lib), since both paths are
|
|
# the same when merged usr is in use.
|
|
ifeq ($(BR2_ROOTFS_MERGED_USR),y)
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --bindir=/usr/bin --sbindir=/usr/sbin --libdir=/usr/lib
|
|
endif
|
|
|
|
# systemd depends on util-linux-libs so we disable systemd support
|
|
UTIL_LINUX_LIBS_CONF_OPTS += \
|
|
--without-systemd \
|
|
--with-systemdsystemunitdir=no
|
|
|
|
# systemd/eudev depend on util-linux-libs so we disable udev support
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --without-udev
|
|
|
|
# No libs use wchar
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --disable-widechar
|
|
|
|
# No libs use ncurses
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --without-ncursesw --without-ncurses
|
|
|
|
# Unfortunately, the util-linux does LIBS="" at the end of its
|
|
# configure script. So we have to pass the proper LIBS value when
|
|
# calling the configure script to make configure tests pass properly,
|
|
# and then pass it again at build time.
|
|
UTIL_LINUX_LIBS_CONF_ENV += LIBS="$(UTIL_LINUX_LIBS_LINK_LIBS)"
|
|
UTIL_LINUX_LIBS_MAKE_OPTS += LIBS="$(UTIL_LINUX_LIBS_LINK_LIBS)"
|
|
|
|
# libmount optionally uses selinux
|
|
ifeq ($(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT)$(BR2_PACKAGE_LIBSELINUX),yy)
|
|
UTIL_LINUX_LIBS_DEPENDENCIES += libselinux
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --with-selinux
|
|
else
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --without-selinux
|
|
endif
|
|
|
|
# Disable utilities
|
|
UTIL_LINUX_LIBS_CONF_OPTS += \
|
|
--disable-all-programs \
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBBLKID),--enable-libblkid,--disable-libblkid) \
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBFDISK),--enable-libfdisk,--disable-libfdisk) \
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBMOUNT),--enable-libmount,--disable-libmount) \
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBSMARTCOLS),--enable-libsmartcols,--disable-libsmartcols) \
|
|
$(if $(BR2_PACKAGE_UTIL_LINUX_LIBUUID),--enable-libuuid,--disable-libuuid)
|
|
|
|
# libmount python bindings are separate, will be installed by full util-linux
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --without-python --disable-pylibmount
|
|
|
|
# No libs use readline
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --without-readline
|
|
|
|
# No libs use audit
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --without-audit
|
|
|
|
# No libs use libmagic
|
|
UTIL_LINUX_LIBS_CONF_OPTS += --without-libmagic
|
|
|
|
$(eval $(autotools-package))
|