| 1 | # |
| 2 | # Copyright (C) 2010 OpenWrt.org |
| 3 | # |
| 4 | # This is free software, licensed under the GNU General Public License v2. |
| 5 | # See /LICENSE for more information. |
| 6 | # |
| 7 | |
| 8 | include $(TOPDIR)/rules.mk |
| 9 | include $(INCLUDE_DIR)/kernel.mk |
| 10 | |
| 11 | PKG_NAME:=drv_kpi2udp |
| 12 | PKG_VERSION:=2.2.0 |
| 13 | PKG_RELEASE:=1 |
| 14 | |
| 15 | PKG_SOURCE:=drv_kpi2udp-$(PKG_VERSION).tar.gz |
| 16 | PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources |
| 17 | PKG_MD5SUM:=af3855609554c7f3d2c3df8c597f50a7 |
| 18 | |
| 19 | include $(INCLUDE_DIR)/package.mk |
| 20 | |
| 21 | define KernelPackage/ltq-kpi2udp |
| 22 | SUBMENU:=Voice over IP |
| 23 | TITLE:=TAPI KPI2UDP plug-in |
| 24 | URL:=http://www.lantiq.com/ |
| 25 | DEPENDS:=+kmod-ltq-tapi @TARGET_lantiq |
| 26 | FILES:=$(PKG_BUILD_DIR)/drv_kpi2udp.ko |
| 27 | AUTOLOAD:=$(call AutoLoad,26,drv_kpi2udp) |
| 28 | MAINTAINER:=John Crispin <blogic@openwrt.org> |
| 29 | endef |
| 30 | |
| 31 | define KernelPackage/ltq-kpi2udp/description |
| 32 | RTP packet path accelleration into IP stack (strongly recommended) |
| 33 | endef |
| 34 | |
| 35 | CONFIGURE_ARGS += --enable-kernelincl="$(LINUX_DIR)/include" \ |
| 36 | --enable-tapiincl="$(STAGING_DIR)/usr/include/drv_tapi" \ |
| 37 | --with-ifxos-incl=$(STAGING_DIR)/usr/include/ifxos \ |
| 38 | --enable-warning \ |
| 39 | --enable-linux-26 \ |
| 40 | --enable-kernelbuild="$(LINUX_DIR)" \ |
| 41 | ARCH=$(LINUX_KARCH) |
| 42 | |
| 43 | define Build/Configure |
| 44 | (cd $(PKG_BUILD_DIR); aclocal && autoconf && automake) |
| 45 | $(call Build/Configure/Default) |
| 46 | endef |
| 47 | |
| 48 | $(eval $(call KernelPackage,ltq-kpi2udp)) |
| 49 | |