From: Alexander Aring <alex.aring@gmail.com>
To: ptxdist@pengutronix.de
Cc: Alexander Aring <alex.aring@gmail.com>
Subject: [ptxdist] [PATCHv3] lowpan-tools: new package
Date: Wed, 30 Jan 2013 23:34:00 +0100 [thread overview]
Message-ID: <1359585240-12722-1-git-send-email-alex.aring@gmail.com> (raw)
This package provides utils to set up ieee802.15.4 devices.
Add option do not install test-utils. These test-utils depends
on python.
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
---
v3:
- change commit msg.
v2:
- fixed missing @ in install_copy call.
- fixed spelling in lowpan-tests help text.
- add ac_cv_path_PYTHON env.
- change list handling of lowpan-tests.
rules/lowpan-tools.in | 21 ++++++++++++
rules/lowpan-tools.make | 87 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 108 insertions(+)
create mode 100644 rules/lowpan-tools.in
create mode 100644 rules/lowpan-tools.make
diff --git a/rules/lowpan-tools.in b/rules/lowpan-tools.in
new file mode 100644
index 0000000..e23c626
--- /dev/null
+++ b/rules/lowpan-tools.in
@@ -0,0 +1,21 @@
+## SECTION=networking
+
+menuconfig LOWPAN_TOOLS
+ tristate
+ prompt "lowpan-tools "
+ select LIBNL3
+ select PYTHON if LOWPAN_TOOLS_TESTS
+ help
+ This is a set of utils to manage the Linux LoWPAN stack.
+ The LoWPAN stack aims for IEEE 802.15.4-2003 (and for
+ lesser extent IEEE 802.15.4-2006) compatibility.
+
+if LOWPAN_TOOLS
+
+config LOWPAN_TOOLS_TESTS
+ bool
+ prompt "lowpan-tests"
+ help
+ Install lowpan-test suites in /usr/libexec/lowpan-tools.
+
+endif # LOWPAN_TOOLS
diff --git a/rules/lowpan-tools.make b/rules/lowpan-tools.make
new file mode 100644
index 0000000..a4919bd
--- /dev/null
+++ b/rules/lowpan-tools.make
@@ -0,0 +1,87 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2012 by Alexander Aring <aar@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_LOWPAN_TOOLS) += lowpan-tools
+
+#
+# Paths and names
+#
+LOWPAN_TOOLS_VERSION := 0.3
+LOWPAN_TOOLS_MD5 := 564bdf163de5b33232d751383495a65c
+LOWPAN_TOOLS := lowpan-tools-$(LOWPAN_TOOLS_VERSION)
+LOWPAN_TOOLS_SUFFIX := tar.gz
+LOWPAN_TOOLS_URL := $(call ptx/mirror, SF, linux-zigbee/$(LOWPAN_TOOLS).$(LOWPAN_TOOLS_SUFFIX))
+LOWPAN_TOOLS_SOURCE := $(SRCDIR)/$(LOWPAN_TOOLS).$(LOWPAN_TOOLS_SUFFIX)
+LOWPAN_TOOLS_DIR := $(BUILDDIR)/$(LOWPAN_TOOLS)
+LOWPAN_TOOLS_LICENSE := GPLv2
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+LOWPAN_TOOLS_CONF_ENV = \
+ $(CROSS_ENV)
+
+ifdef PTXCONF_LOWPAN_TOOLS_TESTS
+LOWPAN_TOOLS_CONF_ENV += ac_cv_path_PYTHON=$(CROSS_PYTHON)
+else
+LOWPAN_TOOLS_CONF_ENV += ac_cv_path_PYTHON=:
+endif
+
+#
+# autoconf
+#
+LOWPAN_TOOLS_CONF_TOOL := autoconf
+LOWPAN_TOOLS_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --disable-manpages \
+ --enable-shared \
+ --disable-static \
+ --with-gnu-ld
+
+LOWPAN_TOOLS_INSTALL_FILES := \
+ gnl izlisten listen-packet test1 test2 test3 test4 test5 \
+ test6 test7 test_edscan.py test_packets.py test_recv.py \
+ test_trx.py
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/lowpan-tools.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, lowpan-tools)
+ @$(call install_fixup, lowpan-tools,PRIORITY,optional)
+ @$(call install_fixup, lowpan-tools,SECTION,base)
+ @$(call install_fixup, lowpan-tools,AUTHOR,"Alexander Aring <aar@pengutronix.de>")
+ @$(call install_fixup, lowpan-tools,DESCRIPTION,missing)
+
+ @$(call install_copy, lowpan-tools, 0, 0, 0755, -, /usr/bin/izchat)
+ @$(call install_copy, lowpan-tools, 0, 0, 0755, -, /usr/sbin/iz)
+ @$(call install_copy, lowpan-tools, 0, 0, 0755, -, /usr/sbin/izattach)
+ @$(call install_copy, lowpan-tools, 0, 0, 0755, -, /usr/sbin/izcoordinator)
+
+ifdef PTXCONF_LOWPAN_TOOLS_TESTS
+ @$(call install_copy, lowpan-tools, 0, 0, 0644, -, $(PYTHON_SITEPACKAGES)/test_DQ.pyc)
+
+ @$(foreach tool,$(LOWPAN_TOOLS_INSTALL_FILES), \
+ $(call install_copy, lowpan-tools, 0, 0, 0755, -, \
+ /usr/libexec/lowpan-tools/$(tool));)
+endif
+
+ @$(call install_finish, lowpan-tools)
+
+ @$(call touch)
+
+# vim: syntax=make
--
1.8.1.2
--
ptxdist mailing list
ptxdist@pengutronix.de
next reply other threads:[~2013-01-30 22:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-30 22:34 Alexander Aring [this message]
2013-02-03 10:14 ` Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1359585240-12722-1-git-send-email-alex.aring@gmail.com \
--to=alex.aring@gmail.com \
--cc=ptxdist@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox