summaryrefslogtreecommitdiffstats
path: root/package/linux-zigbee/linux-zigbee.mk
diff options
context:
space:
mode:
authorMaxime Hadjinlian <maxime.hadjinlian@gmail.com>2014-05-03 19:48:00 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-06-09 14:21:06 +0200
commitdf3125737b95e66f8ef6a3c3574ce6a3cf138998 (patch)
tree291b9a2972ccfa230ecc3a218dedb54a5679f98e /package/linux-zigbee/linux-zigbee.mk
parent51bc99a485730e563fee7571ec82f96eeb7b2139 (diff)
downloadbuildroot-df3125737b95e66f8ef6a3c3574ce6a3cf138998.tar.gz
buildroot-df3125737b95e66f8ef6a3c3574ce6a3cf138998.zip
linux-zigbee: new package
linux-zigbee is a mix of utility tools that implements a 802.15.4 stack along with a usefull library for any program that would need to use this stack. Note that the name is mislead, for licensing reason, this does *NOT* implement the ZigBee protocol. [Thomas: - add dependency on threads, propagated from libnl - improve the Config.in description by borrowing more text from the upstream website - fix the prompt of sub-options to be more consistent, and add help texts where appropriate - fix indentation of the BR2_PACKAGE_LINUX_ZIGBEE_TESTS option help text - add missing dependencies on host-pkgconf, host-flex and host-bison - add missing SoB line in the patch disabling test-serial. Maxime is a well-known contributor, so I assumed we had his SoB. - fix indentation of <pkg>_CONF_OPT. - remove <pkg>_INSTALL_STAGING = YES since the package does not install any library, and the two headers it installs are available through the toolchain kernel headers. - add comment to explain <pkg>_AUTORECONF = YES.] Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/linux-zigbee/linux-zigbee.mk')
-rw-r--r--package/linux-zigbee/linux-zigbee.mk30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/linux-zigbee/linux-zigbee.mk b/package/linux-zigbee/linux-zigbee.mk
new file mode 100644
index 0000000000..3001eefa61
--- /dev/null
+++ b/package/linux-zigbee/linux-zigbee.mk
@@ -0,0 +1,30 @@
+################################################################################
+#
+# linux-zigbee
+#
+################################################################################
+
+LINUX_ZIGBEE_VERSION = v0.3.1
+LINUX_ZIGBEE_SITE = git://linux-zigbee.git.sourceforge.net/gitroot/linux-zigbee/linux-zigbee
+LINUX_ZIGBEE_LICENSE = GPLv2
+LINUX_ZIGBEE_LICENSE_FILES = COPYING
+LINUX_ZIGBEE_DEPENDENCIES = libnl host-pkgconf host-flex host-bison
+
+# We patch configure.ac/Makefile.am
+LINUX_ZIGBEE_AUTORECONF = YES
+
+LINUX_ZIGBEE_CONF_OPT = \
+ --disable-manpages \
+ --with-leasefile="$(call qstrip,$(BR2_PACKAGE_LINUX_ZIGBEE_LEASEFILE))"
+
+ifeq ($(BR2_PACKAGE_LINUX_ZIGBEE_TESTS),y)
+LINUX_ZIGBEE_CONF_OPT += --with-zbtestdir='/usr/sbin/'
+else
+LINUX_ZIGBEE_CONF_OPT += --with-zbtestdir=''
+endif
+
+ifeq ($(BR2_PACKAGE_LINUX_ZIGBEE_OLD_KERNEL_COMPAT),y)
+LINUX_ZIGBEE_CONF_OPT += --enable-kernel-compat
+endif
+
+$(eval $(autotools-package))
OpenPOWER on IntegriCloud