Hello,

this adds a package for utility tool called tunslip6 from the Contiki OS for 
estabilishing a SLIP connection over USB to an attached Contiki device for 
6LoWPAN connectivity.

Would be nice, if it could be applied upstream.

Thanks,
Markus

Signed-off-by: Markus Becker <[email protected]>
---
 package/tunslip6/Makefile |   68 +++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 68 insertions(+), 0 deletions(-)
 create mode 100644 package/tunslip6/Makefile

diff --git a/package/tunslip6/Makefile b/package/tunslip6/Makefile
new file mode 100644
index 0000000..f29c707
--- /dev/null
+++ b/package/tunslip6/Makefile
@@ -0,0 +1,68 @@
+# 
+# Copyright (C) 2008 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# This Makefile is a skeleton
+#
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=contiki
+PKG_VERSION:=2.5
+
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
+PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/contiki/Contiki/Contiki%20$(PKG_VERSION)/
+PKG_MD5SUM:=e2dbc5a42a899177d20d285c13bb3702
+
+#PKG_BUILD_DIR:=$(BUILD_DIR)/tools
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/tunslip6
+  SECTION:=net
+  CATEGORY:=Network
+  TITLE:=tunslip6 from Contiki OS
+  URL:=http://www.contiki-os.org/
+endef
+# DEPENDS on kmod-slip
+
+
+define Package/tun6slip/description
+  SLIP utility tool for connecting to Contiki 6LoWPAN devices.
+endef
+
+#CONFIGURE_ARGS += \
+#      --enable-static \
+#      --enable-shared
+
+# If you wish to link against uclibc++ consider using the
+# following variables :
+#CONFIGURE_VARS += \
+#      CXXFLAGS="$$$$CXXFLAGS -fno-builtin -fno-rtti -nostdinc++"  \
+#      CPPFLAGS="$$$$CPPFLAGS -I$(STAGING_DIR)/usr/include/uClibc++ -
I$(LINUX_DIR)/include" \
+#      LDFLAGS="$$$$LDFLAGS" \
+#      LIBS="-nodefaultlibs -luClibc++ -lm -lnotimpl" \
+
+MAKE_FLAGS += \
+       CFLAGS="$(TARGET_CFLAGS)"
+
+define Build/Compile
+       # pass CFLAGS again to override -O2 set by configure
+       $(MAKE) -C $(PKG_BUILD_DIR)/tools \
+                CROSS_COMPILE="$(KERNEL_CROSS)" \
+                ARCH="$(LINUX_KARCH)" \
+                KERNELDIR=$(LINUX_DIR) \
+                CC="$(TARGET_CC)" \
+               CFLAGS="$(TARGET_CFLAGS)" \
+               tunslip6
+endef
+
+define Package/tunslip6/install
+       $(INSTALL_DIR) $(1)/usr/sbin
+       $(CP) $(PKG_BUILD_DIR)/tools/tunslip6 $(1)/usr/sbin/
+endef
+
+$(eval $(call BuildPackage,tunslip6))
-- 
1.7.0.4

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to