summaryrefslogtreecommitdiff
path: root/package/lqtapi/Makefile
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-03 19:12:34 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2010-11-03 19:12:34 +0000
commit6ea7ec75d2fe0dd52bc3e86135412bfc92c3158c (patch)
tree1b900bd32ce90c62703905c460db950c7c2ba9ec /package/lqtapi/Makefile
parent74f6f2f5a244b9ba7aec5d7114fe763f8c20e96c (diff)
[ifxmips]
* adds a rewrite of the tapi drivers + sip app. this is the result of lars' gsoc 2010 project, Thanks ! git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23840 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/lqtapi/Makefile')
-rw-r--r--package/lqtapi/Makefile73
1 files changed, 73 insertions, 0 deletions
diff --git a/package/lqtapi/Makefile b/package/lqtapi/Makefile
new file mode 100644
index 0000000000..40d114c9d0
--- /dev/null
+++ b/package/lqtapi/Makefile
@@ -0,0 +1,73 @@
+#
+# Copyright (C) 2006-2010 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+
+include $(TOPDIR)/rules.mk
+include $(INCLUDE_DIR)/kernel.mk
+
+PKG_NAME:=lqtapi
+PKG_VERSION:=1
+PKG_RELEASE:=1
+
+FW_SOURCE:=danube_firmware.bin
+FW_URL:=http://www.arcor.de/hilfe/files/pdf/
+FW_FILE=arcor_A800_452CPW_FW_1.02.206(20081201).bin
+FW_MD5SUM:=19d9af4e369287a0f0abaed415cdac10
+
+include $(INCLUDE_DIR)/package.mk
+
+define Download/firmware
+ FILE:=$(FW_FILE)
+ URL:=$(FW_URL)
+ MD5SUM:=$(FW_MD5SUM)
+endef
+$(eval $(call Download,firmware))
+
+define KernelPackage/lqtapi
+ SUBMENU:=Voice over IP
+ TITLE:=Tapi drivers for Lantiq SoC
+ DEPENDS:=@TARGET_ifxmips_danube
+ FILES:=$(PKG_BUILD_DIR)/tapi/tapi.ko \
+ $(PKG_BUILD_DIR)/mps/mps.ko \
+ $(PKG_BUILD_DIR)/mps/vmmc.ko
+ AUTOLOAD:=$(call AutoLoad,80,tapi) \
+ $(call AutoLoad,81,mps)
+endef
+
+define Package/lqtapi-firmware-danube
+ SECTION:=sys
+ CATEGORY:=Kernel modules
+ SUBMENU:=Voice over IP
+ TITLE:=Danube firmware
+ DEPENDS:=+kmod-lqtapi
+endef
+
+include $(INCLUDE_DIR)/kernel-defaults.mk
+
+define KernelPackage/lqtapi/description
+ FOSS drivers for Lantiq SoC voip core
+endef
+
+define Build/Prepare
+ mkdir -p $(PKG_BUILD_DIR)
+ $(CP) src/* $(PKG_BUILD_DIR)/
+endef
+
+define Build/Compile
+ $(MAKE) $(KERNEL_MAKEOPTS) \
+ SUBDIRS="$(PKG_BUILD_DIR)" \
+ EXTRA_CFLAGS=-I$(PKG_BUILD_DIR)/include/ \
+ modules
+endef
+
+define Package/lqtapi-firmware-danube/install
+ $(TOPDIR)/target/linux/$(BOARD)/extract.sh $(DL_DIR) '$(FW_FILE)'
+ $(INSTALL_DIR) $(1)/lib/firmware/
+ $(INSTALL_DATA) $(DL_DIR)/voip.bin $(1)/lib/firmware/$(FW_SOURCE)
+endef
+
+$(eval $(call KernelPackage,lqtapi))
+$(eval $(call BuildPackage,lqtapi-firmware-danube))