generated from gaoyang3513/SDK_RK3288
[Mod] First commit
This commit is contained in:
@ -0,0 +1,54 @@
|
||||
From 98187a5238939edc889fdaad93b00628b55d1e08 Mon Sep 17 00:00:00 2001
|
||||
From: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
|
||||
Date: Sat, 3 May 2014 19:43:20 +0200
|
||||
Subject: [PATCH] test-serial: Remove test-serial
|
||||
|
||||
This folders only contains python tests scripts which would force us to
|
||||
enable a dependency to host-python which seems kind of silly since
|
||||
theses are only tests scripts.
|
||||
|
||||
Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com>
|
||||
---
|
||||
Makefile.am | 2 +-
|
||||
configure.ac | 6 ------
|
||||
2 files changed, 1 insertion(+), 7 deletions(-)
|
||||
|
||||
diff --git a/Makefile.am b/Makefile.am
|
||||
index 265f0d7..e7bb1a1 100644
|
||||
--- a/Makefile.am
|
||||
+++ b/Makefile.am
|
||||
@@ -2,7 +2,7 @@ include $(top_srcdir)/Makefile.common
|
||||
|
||||
ACLOCAL_AMFLAGS = -I m4
|
||||
|
||||
-SUBDIRS = lib addrdb src tests test-serial
|
||||
+SUBDIRS = lib addrdb src tests
|
||||
|
||||
include_HEADERS = include/ieee802154.h include/nl802154.h
|
||||
noinst_HEADERS = include/libcommon.h include/addrdb.h include/logging.h
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index 17658af..506b289 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -77,11 +77,6 @@ AC_PROG_LIBTOOL
|
||||
AM_PROG_LEX
|
||||
AC_PROG_YACC
|
||||
AC_SUBST(LIBTOOL_DEPS)
|
||||
-# Currently the scripts works with python2.x only
|
||||
-# Check for this at first
|
||||
-AC_PATH_PROG(PYTHON, python2 python2.7 python2.6 python2.5 python)
|
||||
-AM_PATH_PYTHON(,, [:])
|
||||
-py_CHECK_MAJOR_VERSION([PYTHON_VERSION], [2])
|
||||
AM_MISSING_PROG(HELP2MAN, help2man, $missing_dir)
|
||||
|
||||
# Checks for libraries.
|
||||
@@ -135,6 +130,5 @@ AC_CONFIG_FILES([
|
||||
addrdb/Makefile
|
||||
src/Makefile
|
||||
tests/Makefile
|
||||
- test-serial/Makefile
|
||||
])
|
||||
AC_OUTPUT
|
||||
--
|
||||
1.9.2
|
||||
|
||||
@ -0,0 +1,43 @@
|
||||
From 8cc60d618f81f2eeaa926cd60ed9b55ee6cda6ea Mon Sep 17 00:00:00 2001
|
||||
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
Date: Mon, 8 Aug 2016 15:42:46 +0200
|
||||
Subject: [PATCH] addrdb/coord-config-parse.y: add missing <time.h> include
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
The %union definition uses the time_t structure. In order to use this
|
||||
structure, the <time.h> header has to be included. Otherwise, the build
|
||||
breaks with some C libraries, such as musl:
|
||||
|
||||
In file included from coord-config-lex.l:23:0:
|
||||
coord-config-parse.y:107:2: error: unknown type name ‘time_t’
|
||||
time_t timestamp;
|
||||
^
|
||||
|
||||
This patch includes <time.h> using the '%code requires' directive of
|
||||
Yacc.
|
||||
|
||||
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
||||
---
|
||||
addrdb/coord-config-parse.y | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/addrdb/coord-config-parse.y b/addrdb/coord-config-parse.y
|
||||
index 2e10a88..85ee058 100644
|
||||
--- a/addrdb/coord-config-parse.y
|
||||
+++ b/addrdb/coord-config-parse.y
|
||||
@@ -102,6 +102,10 @@
|
||||
|
||||
%}
|
||||
|
||||
+%code requires {
|
||||
+#include <time.h>
|
||||
+}
|
||||
+
|
||||
%union {
|
||||
unsigned long number;
|
||||
time_t timestamp;
|
||||
--
|
||||
2.7.4
|
||||
|
||||
55
package/linux-zigbee/Config.in
Normal file
55
package/linux-zigbee/Config.in
Normal file
@ -0,0 +1,55 @@
|
||||
comment "linux-zigbee needs a toolchain w/ threads"
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_USE_MMU
|
||||
|
||||
config BR2_PACKAGE_LINUX_ZIGBEE
|
||||
bool "linux-zigbee"
|
||||
depends on BR2_USE_MMU # fork()
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS # libnl
|
||||
select BR2_PACKAGE_LIBNL
|
||||
help
|
||||
IEEE 802.15.4 is a standard for communication in small
|
||||
low-rate wireless personal area networks (WPAN). While
|
||||
802.15.4 is a MAC- and PHY- layer standard only, several
|
||||
common protocols commonly sit on top of it such as ZigBee,
|
||||
MiWi, and 6LoWPAN. The goal of this project is to create an
|
||||
implementation of 802.15.4 and several of the protocols
|
||||
which run on top of it (primarily 6LoWPAN) for Linux.
|
||||
|
||||
It's worth noting that the name linux-zigbee is somewhat of
|
||||
a misnomer. While this project was originally started to
|
||||
create a ZigBee implementation for Linux, licensing
|
||||
restrictions put in place by the ZigBee Alliance make it
|
||||
impossible for an implementation of ZigBee to ever become
|
||||
part of the Linux kernel. Once this licensing issue was
|
||||
discovered, this project's primary focus shifted to IEEE
|
||||
802.15.4 and 6LoWPAN. Other higher-layer standards may be
|
||||
added at a future time.
|
||||
|
||||
The 802.15.4 stack contains kernel components, which are
|
||||
part of the mainline Linux kernel, and userspace components,
|
||||
available in this package.
|
||||
|
||||
http://sourceforge.net/apps/trac/linux-zigbee/
|
||||
|
||||
if BR2_PACKAGE_LINUX_ZIGBEE
|
||||
|
||||
config BR2_PACKAGE_LINUX_ZIGBEE_TESTS
|
||||
bool "tests programs"
|
||||
help
|
||||
Enable this option to install the Linux-ZigBee test programs
|
||||
to the target.
|
||||
|
||||
config BR2_PACKAGE_LINUX_ZIGBEE_OLD_KERNEL_COMPAT
|
||||
bool "compatibility with older kernels"
|
||||
help
|
||||
Enable this option to get compatibility of the Linux-ZigBee
|
||||
userspace tools with old kernels. Recent kernels know the
|
||||
802.15.4 line discipline as N_IEEE802154 with the value 25,
|
||||
but some older kernels had it with the values 22 or 19.
|
||||
|
||||
config BR2_PACKAGE_LINUX_ZIGBEE_LEASEFILE
|
||||
string "path for persistent lease storage"
|
||||
default "/var/run/izcoordinator.leases"
|
||||
|
||||
endif
|
||||
3
package/linux-zigbee/linux-zigbee.hash
Normal file
3
package/linux-zigbee/linux-zigbee.hash
Normal file
@ -0,0 +1,3 @@
|
||||
# Locally computed:
|
||||
sha256 92fbefdf18d45147c2b78ca2ce2d899d4d1da5a3391a4ff6c51a5b14c6d6f87c lowpan-tools-0.3.1.tar.gz
|
||||
sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
|
||||
33
package/linux-zigbee/linux-zigbee.mk
Normal file
33
package/linux-zigbee/linux-zigbee.mk
Normal file
@ -0,0 +1,33 @@
|
||||
################################################################################
|
||||
#
|
||||
# linux-zigbee
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LINUX_ZIGBEE_VERSION = 0.3.1
|
||||
LINUX_ZIGBEE_SOURCE = lowpan-tools-$(LINUX_ZIGBEE_VERSION).tar.gz
|
||||
LINUX_ZIGBEE_SITE = \
|
||||
http://downloads.sourceforge.net/project/linux-zigbee/linux-zigbee-sources/$(LINUX_ZIGBEE_VERSION)
|
||||
LINUX_ZIGBEE_LICENSE = GPL-2.0
|
||||
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_OPTS = \
|
||||
--disable-manpages \
|
||||
--disable-werror \
|
||||
--with-leasefile="$(call qstrip,$(BR2_PACKAGE_LINUX_ZIGBEE_LEASEFILE))"
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LINUX_ZIGBEE_TESTS),y)
|
||||
LINUX_ZIGBEE_CONF_OPTS += --with-zbtestdir='/usr/sbin/'
|
||||
else
|
||||
LINUX_ZIGBEE_CONF_OPTS += --with-zbtestdir=''
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_LINUX_ZIGBEE_OLD_KERNEL_COMPAT),y)
|
||||
LINUX_ZIGBEE_CONF_OPTS += --enable-kernel-compat
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user