8541fc05a3
Add a patch to disable mallinfo statistics with musl toolchains which doesn't have struct mallinfo. Fixes: selinux-util.c: In function ‘mac_selinux_init’: selinux-util.c:70:25: error: storage size of ‘before_mallinfo’ isn’t known struct mallinfo before_mallinfo, after_mallinfo; Add a second patch for strndupa() which is a GNU extension. Fixes: ./.libs/libudev-core.a(selinux-util.o): In function `mac_selinux_bind': selinux-util.c:(.text+0xd94): undefined reference to `strndupa' collect2: error: ld returned 1 exit status Signed-off-by: Romain Naour <romain.naour@openwide.fr> Cc: Clayton Shotwell <clshotwe@rockwellcollins.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
69 lines
1.6 KiB
Makefile
69 lines
1.6 KiB
Makefile
################################################################################
|
|
#
|
|
# eudev
|
|
#
|
|
################################################################################
|
|
|
|
EUDEV_VERSION = 3.1.2
|
|
EUDEV_SOURCE = eudev-$(EUDEV_VERSION).tar.gz
|
|
EUDEV_SITE = http://dev.gentoo.org/~blueness/eudev
|
|
EUDEV_LICENSE = GPLv2+ (programs), LGPLv2.1+ (libraries)
|
|
EUDEV_LICENSE_FILES = COPYING
|
|
EUDEV_INSTALL_STAGING = YES
|
|
|
|
# configure.ac is patched by:
|
|
# 0002-build-sys-check-for-mallinfo.patch
|
|
# 0003-build-sys-check-for-strndupa.patch
|
|
EUDEV_AUTORECONF = YES
|
|
|
|
# mq_getattr is in librt
|
|
EUDEV_CONF_ENV += LIBS=-lrt
|
|
|
|
EUDEV_CONF_OPTS = \
|
|
--disable-manpages \
|
|
--sbindir=/sbin \
|
|
--with-rootlibdir=/lib \
|
|
--libexecdir=/lib \
|
|
--with-firmware-path=/lib/firmware \
|
|
--disable-introspection \
|
|
--enable-split-usr \
|
|
--enable-libkmod
|
|
|
|
EUDEV_DEPENDENCIES = host-gperf host-pkgconf util-linux kmod
|
|
EUDEV_PROVIDES = udev
|
|
|
|
ifeq ($(BR2_PACKAGE_EUDEV_RULES_GEN),y)
|
|
EUDEV_CONF_OPTS += --enable-rule_generator
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_EUDEV_ENABLE_HWDB),y)
|
|
EUDEV_CONF_OPTS += --enable-hwdb
|
|
else
|
|
EUDEV_CONF_OPTS += --disable-hwdb
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBGLIB2),y)
|
|
EUDEV_CONF_OPTS += --enable-gudev
|
|
EUDEV_DEPENDENCIES += libglib2
|
|
else
|
|
EUDEV_CONF_OPTS += --disable-gudev
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
EUDEV_CONF_OPTS += --enable-selinux
|
|
EUDEV_DEPENDENCIES += libselinux
|
|
else
|
|
EUDEV_CONF_OPTS += --disable-selinux
|
|
endif
|
|
|
|
define EUDEV_INSTALL_INIT_SYSV
|
|
$(INSTALL) -m 0755 package/eudev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
|
|
endef
|
|
|
|
# Required by default rules for input devices
|
|
define EUDEV_USERS
|
|
- - input -1 * - - - Input device group
|
|
endef
|
|
|
|
$(eval $(autotools-package))
|