gluon/package/gluon-mesh-batman-adv/Makefile
Linus Lüssing 5ae567dbdd gluon-mesh-batman-adv: move common scripts to own package
Two packages cannot provide the same script files. Therefore move script
files used by both batman-adv and batman-adv-legacy to its own package,
to be able to install both gluon-mesh-batman-adv-14 and
gluon-mesh-batman-adv-15 simultaneously.

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

60 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)
CONFLICTS:=gluon-mesh-batman-adv-15
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))