5ad021da2a
Add two patches to fix musl build and one patch to make the package autoreconfigurable. The first patch adds 'foreign' to 'AUTOMAKE_OPTIONS' to make the package autoreconfigurable. The second patch avoids the redefinition of wchar_t by using autoconf to check for the type wchar_t. Patching configure.ac requires to set AUTORECONF = YES and add a post extract hook to create some missing files needed by autorefonf. The third patch adds missing header include of <linux/params.h> needed for the macro EXEC_PAGESIZE defined in the Linux Kernel headers. All patches send upstream: https://sourceforge.net/p/ipmitool/mailman/message/35004711/ https://sourceforge.net/p/ipmitool/mailman/message/35007331/ https://sourceforge.net/p/ipmitool/mailman/message/35007330/ Fixes: http://autobuild.buildroot.net/results/75f/75fd6f1be0271bb15078c62f3effdbb67ac07427/ http://autobuild.buildroot.net/results/cac/cacf8179a9c8142eef69562462d3c3b0b20c2879/ http://autobuild.buildroot.net/results/c10/c1045882947ff7150c750088ae1981bd99134c54/ http://autobuild.buildroot.net/results/6a7/6a770f8a3dddb15ba4d95555e74b198799278dcf/ .. and more. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
34 lines
886 B
Makefile
34 lines
886 B
Makefile
################################################################################
|
|
#
|
|
# ipmitool
|
|
#
|
|
################################################################################
|
|
|
|
IPMITOOL_VERSION = 1.8.16
|
|
IPMITOOL_SOURCE = ipmitool-$(IPMITOOL_VERSION).tar.bz2
|
|
IPMITOOL_SITE = http://downloads.sourceforge.net/project/ipmitool/ipmitool/$(IPMITOOL_VERSION)
|
|
IPMITOOL_LICENSE = BSD-3c
|
|
IPMITOOL_LICENSE_FILES = COPYING
|
|
|
|
# Patching configure.ac
|
|
IPMITOOL_AUTORECONF = YES
|
|
|
|
ifeq ($(BR2_PACKAGE_IPMITOOL_LANPLUS),y)
|
|
IPMITOOL_DEPENDENCIES += openssl
|
|
else
|
|
IPMITOOL_CONF_OPTS += --disable-intf-lanplus
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
IPMITOOL_DEPENDENCIES += readline
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_IPMITOOL_IPMIEVD),)
|
|
define IPMITOOL_REMOVE_IPMIEVD
|
|
$(RM) -f $(TARGET_DIR)/usr/sbin/ipmievd
|
|
endef
|
|
IPMITOOL_POST_INSTALL_TARGET_HOOKS += IPMITOOL_REMOVE_IPMIEVD
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|