kumquat-buildroot/package/batman-adv/batman-adv.mk
Fabrice Fontaine 50da16cf94 package/batman-adv: bump to version 2022.2
This bump will fix the following build failure with kernel >= 5.18 thanks to
f07a0c37ab:

/home/buildroot/autobuild/instance-2/output-1/build/batman-adv-2021.4/net/batman-adv/bridge_loop_avoidance.c: In function ‘batadv_bla_send_claim’:
/home/buildroot/autobuild/instance-2/output-1/build/batman-adv-2021.4/net/batman-adv/bridge_loop_avoidance.c:446:9: error: implicit declaration of function ‘netif_rx_any_context’ [-Werror=implicit-function-declaration]
  446 |         netif_rx_any_context(skb);
      |         ^~~~~~~~~~~~~~~~~~~~

Indeed, netif_rx_any_context has been dropped since kernel 5.18:
2655926aea

https://github.com/open-mesh-mirror/batman-adv/blob/v2022.2/CHANGELOG.rst

Fixes:
 - http://autobuild.buildroot.org/results/542b7b99da7b7a65e6e11e7c73a26856e3222e89

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2022-10-30 19:32:28 +01:00

44 lines
1.4 KiB
Makefile

################################################################################
#
# batman-adv
#
################################################################################
BATMAN_ADV_VERSION = 2022.2
BATMAN_ADV_SITE = https://downloads.open-mesh.org/batman/stable/sources/batman-adv
BATMAN_ADV_LICENSE = GPL-2.0, MIT (batman_adv.h)
BATMAN_ADV_LICENSE_FILES = LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT
BATMAN_ADV_CFLAGS = \
-I$(@D)/compat-include/ \
-I$(@D)/include/ \
-include $(@D)/compat.h \
-DBATADV_SOURCE_VERSION=\"\\\"$(BATMAN_ADV_VERSION)\\\"\"
# Bridge Loop Avoidance, Distributed Arp Table are always enabled
BATMAN_ADV_MODULE_MAKE_OPTS = \
KVER=$(LINUX_VERSION_PROBED) \
INSTALL_MOD_DIR=updates/net/batman-adv \
NOSTDINC_FLAGS="$(BATMAN_ADV_CFLAGS)" \
CONFIG_BATMAN_ADV=m \
CONFIG_BATMAN_ADV_BLA=y \
CONFIG_BATMAN_ADV_DAT=y \
CONFIG_BATMAN_ADV_MCAST=y \
CONFIG_BATMAN_ADV_BATMAN_V=$(if $(BR2_PACKAGE_BATMAN_ADV_BATMAN_V),y,n) \
CONFIG_BATMAN_ADV_DEBUG=$(if $(BR2_PACKAGE_BATMAN_ADV_DEBUG),y,n) \
CONFIG_BATMAN_ADV_NC=$(if $(BR2_PACKAGE_BATMAN_ADV_NC),y,n)
BATMAN_ADV_MODULE_SUBDIRS = net/batman-adv
define BATMAN_ADV_CONFIGURE_CMDS
$(BATMAN_ADV_MODULE_MAKE_OPTS) $(@D)/gen-compat-autoconf.sh $(@D)/compat-autoconf.h
endef
define BATMAN_ADV_LINUX_CONFIG_FIXUPS
$(call KCONFIG_ENABLE_OPT,CONFIG_CRC16)
$(call KCONFIG_ENABLE_OPT,CONFIG_LIBCRC32C)
endef
$(eval $(kernel-module))
$(eval $(generic-package))