batctl: new package
PATCH 1/1 batctl: new package
Signed-off-by Jens Zettelmeyer <[email protected]>
--- package/Config.in | 1 + package/batctl/Config.in | 12 ++++++++++++ package/batctl/batctl.hash | 2 ++ package/batctl/batctl.mk | 21 +++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 package/batctl/Config.in create mode 100644 package/batctl/batctl.hash create mode 100644 package/batctl/batctl.mk
package/Config.in +1 -0
@@ -1055,6 +1055,7 @@ menu "Networking applications" source "package/avahi/Config.in" source "package/axel/Config.in" source "package/bandwidthd/Config.in" + source "package/batctl/Config.in" source "package/bcusdk/Config.in" source "package/bind/Config.in" source "package/bluez_utils/Config.in"
package/batctl/Config.in new file +12 -0
@@ -0,0 +1,12 @@ +config BR2_PACKAGE_BATCTL + bool "batctl" + depends on BR2_INET_IPV6 + depends on BR2_TOOLCHAIN_HAS_THREADS # libnl + select BR2_PACKAGE_LIBNL + help + Batctl is the configuration and debugging tool for batman-adv. + + http://www.open-mesh.org/projects/batman-adv/wiki/Using-batctl + +comment "batctl needs a toolchain w/ IPv6, threads" + depends on !BR2_INET_IPV6 || !BR2_TOOLCHAIN_HAS_THREADS # libnl
package/batctl/batctl.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally calculated +sha256 77509ed70232ebc0b73e2fa9471ae13b12d6547d167dda0a82f7a7fad7252c36 batctl-2014.4.0.tar.gz
package/batctl/batctl.mk new file +21 -0
@@ -0,0 +1,21 @@ +################################################################################ +# +# batctl +# +################################################################################ + +BATCTL_VERSION = 2014.4.0 +BATCTL_SOURCE = batctl-$(BATCTL_VERSION).tar.gz +BATCTL_SITE = http://downloads.open-mesh.org/batman/releases/batman-adv-$(BATCTL_VERSION) +BATCTL_LICENSE = GPLv2 +BATCTL_DEPENDENCIES = libnl host-pkgconf + +define BATCTL_BUILD_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) all +endef + +define BATCTL_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) PREFIX=/usr DESTDIR=$(TARGET_DIR) install +endef + +$(eval $(generic-package))
Signature · 1 line
2.0.5
PATCH 1/1 batctl: new package
Dear Jens Zettelmeyer,
Quoted 10 lines · Jens Zettelmeyer
Signed-off-by Jens Zettelmeyer <[email protected]>--- package/Config.in | 1 + package/batctl/Config.in | 12 ++++++++++++ package/batctl/batctl.hash | 2 ++ package/batctl/batctl.mk | 21 +++++++++++++++++++++ 4 files changed, 36 insertions(+) create mode 100644 package/batctl/Config.in create mode 100644 package/batctl/batctl.hash create mode 100644 package/batctl/batctl.mk
Thanks, I've applied your patch to the next branch, with a small number of modifications:
[Thomas:
- remove trailing whitespace
- remove "# libnl" comment in Config.in
- remove BATCTL_SOURCE, which is not needed, since the default value is used
- pass $(TARGET_CONFIGURE_OPTS) in the make environment, not as a make option, otherwise the CFLAGS += lines of batctl Makefile do not have any effect, and lead to not have the proper include path to the libnl header files.]
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com