d90f182b91
This package introduces batman-adv, a kernel module implementation of the B.A.T.M.A.N. IV and V mesh network routing protocols. While batman-adv exists in the mainline kernel tree, it can also be built as an external out-of-tree module. This package adds the flexibility to chose a more up to date version of the module than exists in the official tree, and also allows for compilation against kernels without batman-adv in-tree support. https://www.open-mesh.org/projects/batman-adv/ Signed-off-by: Christian Stewart <christian@paral.in> [Thomas: - remove "default n", since it's the default - fix indentation of Config.in help text - license is GPLv2, not just GPL - remove variable BATMAN_ADV_MAKE_OPTS, name it directly BATMAN_ADV_MODULE_MAKE_OPTS as this is what is expected by the kernel module infrastructure.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
36 lines
1.2 KiB
Makefile
36 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# batman-adv
|
|
#
|
|
################################################################################
|
|
|
|
BATMAN_ADV_VERSION = 2016.1
|
|
BATMAN_ADV_SITE = https://downloads.open-mesh.org/batman/stable/sources/batman-adv
|
|
BATMAN_ADV_SOURCE = batman-adv-$(BATMAN_ADV_VERSION).tar.gz
|
|
BATMAN_ADV_LICENSE = GPLv2
|
|
|
|
# Bridge Loop Avoidance, Distributed Arp Table are always enabled
|
|
BATMAN_ADV_CFLAGS = \
|
|
-I$(@D)/compat-include/ \
|
|
-include $(@D)/compat.h \
|
|
-DBATADV_SOURCE_VERSION=\"\\\"$(BATMAN_ADV_VERSION)\\\"\"
|
|
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_BATMAN_V=$(BR2_PACKAGE_BATMAN_ADV_BATMAN_V) \
|
|
CONFIG_BATMAN_ADV_BLA=y \
|
|
CONFIG_BATMAN_ADV_DAT=y \
|
|
CONFIG_BATMAN_ADV_DEBUG=$(BR2_PACKAGE_BATMAN_ADV_DEBUG) \
|
|
CONFIG_BATMAN_ADV_MCAST=y \
|
|
CONFIG_BATMAN_ADV_NC=$(BR2_PACKAGE_BATMAN_ADV_NC)
|
|
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
|
|
|
|
$(eval $(kernel-module))
|
|
$(eval $(generic-package))
|