gluon/package/gluon-mesh-batman-adv/Makefile
Linus Lüssing 348faac87a 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>
2018-12-25 19:02:55 +01:00

41 lines
1.2 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
PROVIDES:=gluon-mesh-batman-adv
DEPENDS:=+gluon-core +libgluonutil +gluon-client-bridge +gluon-ebtables +firewall +libiwinfo +kmod-dummy +libnl-tiny +libbatadv +@GLUON_SPECIALIZE_KERNEL:KERNEL_DUMMY +@GLUON_SPECIALIZE_KERNEL:KERNEL_CRC16 +@GLUON_SPECIALIZE_KERNEL:KERNEL_LIBCRC32C
endef
define Package/gluon-mesh-batman-adv-14
$(Package/gluon-mesh-batman-adv/common)
TITLE:=Support for batman-adv meshing (compat level 14)
DEPENDS+=+kmod-batman-adv-legacy
endef
define Package/gluon-mesh-batman-adv-15
$(Package/gluon-mesh-batman-adv/common)
TITLE:=Support for batman-adv meshing (compat level 15)
DEPENDS+=+kmod-batman-adv +batctl
endef
define Package/gluon-mesh-batman-adv-14/install
$(Gluon/Build/Install)
$(INSTALL_DIR) $(1)/lib/gluon/mesh-batman-adv
echo 14 > $(1)/lib/gluon/mesh-batman-adv/compat
endef
define Package/gluon-mesh-batman-adv-15/install
$(Gluon/Build/Install)
$(INSTALL_DIR) $(1)/lib/gluon/mesh-batman-adv
echo 15 > $(1)/lib/gluon/mesh-batman-adv/compat
endef
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-14))
$(eval $(call BuildPackageGluon,gluon-mesh-batman-adv-15))