2016-05-25 02:35:02 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# batman-adv
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2022-10-30 19:20:27 +01:00
|
|
|
BATMAN_ADV_VERSION = 2022.2
|
2016-05-25 02:35:02 +02:00
|
|
|
BATMAN_ADV_SITE = https://downloads.open-mesh.org/batman/stable/sources/batman-adv
|
2019-08-15 16:01:43 +02:00
|
|
|
BATMAN_ADV_LICENSE = GPL-2.0, MIT (batman_adv.h)
|
2019-08-15 16:01:44 +02:00
|
|
|
BATMAN_ADV_LICENSE_FILES = LICENSES/preferred/GPL-2.0 LICENSES/preferred/MIT
|
2016-05-25 02:35:02 +02:00
|
|
|
|
|
|
|
BATMAN_ADV_CFLAGS = \
|
|
|
|
-I$(@D)/compat-include/ \
|
2019-08-15 16:01:44 +02:00
|
|
|
-I$(@D)/include/ \
|
2016-05-25 02:35:02 +02:00
|
|
|
-include $(@D)/compat.h \
|
|
|
|
-DBATADV_SOURCE_VERSION=\"\\\"$(BATMAN_ADV_VERSION)\\\"\"
|
2021-03-14 23:32:06 +01:00
|
|
|
|
|
|
|
# Bridge Loop Avoidance, Distributed Arp Table are always enabled
|
2016-05-25 02:35:02 +02:00
|
|
|
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 \
|
2021-03-16 19:14:27 +01:00
|
|
|
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)
|
2021-03-14 23:32:06 +01:00
|
|
|
|
2016-05-25 02:35:02 +02:00
|
|
|
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
|
|
|
|
|
2021-03-16 19:14:28 +01:00
|
|
|
define BATMAN_ADV_LINUX_CONFIG_FIXUPS
|
2022-04-19 20:58:21 +02:00
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_CRC16)
|
2021-03-16 19:14:28 +01:00
|
|
|
$(call KCONFIG_ENABLE_OPT,CONFIG_LIBCRC32C)
|
|
|
|
endef
|
|
|
|
|
2016-05-25 02:35:02 +02:00
|
|
|
$(eval $(kernel-module))
|
|
|
|
$(eval $(generic-package))
|