[package] add tunslip6

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.

Signed-off-by: Markus Becker <mab@comnets.uni-bremen.de>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@31165 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2012-04-02 16:20:06 +00:00
parent 0d80796377
commit c3bef2edd6

52
ipv6/tunslip6/Makefile Normal file
View File

@ -0,0 +1,52 @@
#
# Copyright (C) 2012 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:=ipv6
CATEGORY:=IPv6
DEPENDS:=+kmod-slip
TITLE:=tunslip6 from Contiki OS
URL:=http://www.contiki-os.org/
endef
define Package/tun6slip/description
SLIP utility tool for connecting to Contiki 6LoWPAN devices.
endef
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))