gluon/package/gluon-mesh-batman-adv/Makefile
Linus Lüssing d05c93517c gluon-mesh-batman-adv-14: remove CONFLICTs line with v15
batman-adv-legacy now uses its own namespaces. And whether to use v14 or
v15 is determined by the routing algorithm specified in the site
configuration. Which means both the batman-adv and batman-adv-legacy
kernel modules as well as the according glue code provided by
gluon-mesh-batman-adv-14 and gluon-mesh-batman-adv-15 can be installed
at the same time.

Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
2019-07-27 07:40:29 +02:00

59 lines
1.4 KiB
Makefile

include $(TOPDIR)/rules.mk
PKG_NAME:=gluon-mesh-batman-adv
PKG_VERSION:=1
include ../gluon.mk
define Package/gluon-mesh-batman-adv-common
TITLE:=Gluon scripts for batman-adv and batman-adv-legacy
DEPENDS:= \
+gluon-core \
+libgluonutil \
+gluon-client-bridge \
+gluon-ebtables \
+firewall \
+libiwinfo \
+kmod-dummy \
+libnl-tiny \
+libbatadv \
+batctl \
+@GLUON_SPECIALIZE_KERNEL:KERNEL_DUMMY
endef
define Package/gluon-mesh-batman-adv-14
PROVIDES:=gluon-mesh-batman-adv
TITLE:=Support for batman-adv meshing (compat level 14)
DEPENDS+= \
+gluon-mesh-batman-adv-common \
+kmod-batman-adv-legacy \
+@GLUON_SPECIALIZE_KERNEL:KERNEL_CRC16 \
+@GLUON_SPECIALIZE_KERNEL:KERNEL_LIBCRC32C
endef
define Package/gluon-mesh-batman-adv-15
PROVIDES:=gluon-mesh-batman-adv
TITLE:=Support for batman-adv meshing (compat level 15)
DEPENDS+= \
+gluon-mesh-batman-adv-common \
+kmod-batman-adv \
+@GLUON_SPECIALIZE_KERNEL:KERNEL_CRC16 \
+@GLUON_SPECIALIZE_KERNEL:KERNEL_LIBCRC32C
endef
define Package/gluon-mesh-batman-adv-common/install
$(Gluon/Build/Install)
endef
define Package/gluon-mesh-batman-adv-14/install
$(Gluon/Build/Prepare)
endef
define Package/gluon-mesh-batman-adv-15/install
$(Gluon/Build/Prepare)
endef
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-common))
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-14))
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-15))