Files
rpi-buildroot/package/bcusdk/bcusdk.mk
Thomas Petazzoni e4109c1d2d package/bcusdk: fix build with host GCC 14.x
With GCC 14.x as the host compiler, bcusdk fails to build as follows:

configure: error: Specified CC_FOR_BUILD doesn't seem to work

This is due to missing includes in the test programs used in the
configure script to check the host compiler. We fix this with patch
0003.

However, this patch requires to autoreconf the package, and autoreconf
would need the definition of AM_PATH_XML2, which would require libxml2
even though we don't have libxml2 as a dependency of this package (we
don't enable the features that requires libxml2). As it turns out that
the AM_PATH_XML2 macro is in fact deprecated, we replaced it by its
equivalent using PKG_CHECK_MODULES(), which is in fact exactly how
AM_PATH_XML2 is implemented in upstream libxml2.

Fixes:

  http://autobuild.buildroot.net/results/458880bd6c207e5bb7afce1a1186f204c30c0941/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2024-08-02 19:50:00 +02:00

42 lines
1.2 KiB
Makefile

################################################################################
#
# bcusdk
#
################################################################################
BCUSDK_VERSION = 0.0.5
BCUSDK_SOURCE = bcusdk_$(BCUSDK_VERSION).tar.gz
BCUSDK_SITE = http://www.auto.tuwien.ac.at/~mkoegler/eib
BCUSDK_LICENSE = GPL-2.0+
BCUSDK_LICENSE_FILES = COPYING
BCUSDK_INSTALL_STAGING = YES
# 0003-m4-ccforbuild.m4-include-stdlib.h-in-test-program.patch
# 0004-configure.in-replace-obsolete-AM_PATH_XML2-by-PKG_CH.patch
BCUSDK_AUTORECONF = YES
BCUSDK_CONF_OPTS = \
--enable-onlyeibd \
--enable-ft12 \
--enable-pei16 \
--enable-tpuarts \
--enable-eibnetip \
--enable-eibnetipserver \
--enable-eibnetiptunnel \
--without-pth-test \
--with-pth=$(STAGING_DIR)/usr
# host-pkgconf is only needed because of autoreconf
BCUSDK_DEPENDENCIES = libpthsem host-pkgconf
ifeq ($(BR2_PACKAGE_ARGP_STANDALONE),y)
BCUSDK_DEPENDENCIES += argp-standalone $(TARGET_NLS_DEPENDENCIES)
BCUSDK_CONF_ENV += LIBS=$(TARGET_NLS_LIBS)
endif
define BCUSDK_REMOVE_EXAMPLES
$(RM) -rf $(TARGET_DIR)/usr/share/bcusdk
endef
BCUSDK_POST_INSTALL_TARGET_HOOKS += BCUSDK_REMOVE_EXAMPLES
$(eval $(autotools-package))