kernel: do not build gpiolib into the kernel
[openwrt.git] / package / lqtapi / Makefile
1 #
2 # Copyright (C) 2006-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:=lqtapi
12 PKG_VERSION:=1
13 PKG_RELEASE:=1
14
15 FW_SOURCE:=danube_firmware.bin
16 FW_URL:=http://www.arcor.de/hilfe/files/pdf/
17 FW_FILE=arcor_A800_452CPW_FW_1.02.206(20081201).bin
18 FW_MD5SUM:=19d9af4e369287a0f0abaed415cdac10
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Download/firmware
23 FILE:=$(FW_FILE)
24 URL:=$(FW_URL)
25 MD5SUM:=$(FW_MD5SUM)
26 endef
27 $(eval $(call Download,firmware))
28
29 define KernelPackage/lqtapi
30 SUBMENU:=Voice over IP
31 TITLE:=Tapi drivers for Lantiq SoC
32 DEPENDS:=@TARGET_lantiq_xway @BROKEN
33 FILES:=$(PKG_BUILD_DIR)/tapi/tapi.ko \
34 $(PKG_BUILD_DIR)/mps/mps.ko \
35 $(PKG_BUILD_DIR)/mps/vmmc.ko
36 AUTOLOAD:=$(call AutoLoad,80,tapi) \
37 $(call AutoLoad,81,mps)
38 endef
39
40 define Package/lqtapi-firmware-danube
41 SECTION:=sys
42 CATEGORY:=Kernel modules
43 SUBMENU:=Voice over IP
44 TITLE:=Danube firmware
45 DEPENDS:=+kmod-lqtapi
46 endef
47
48 include $(INCLUDE_DIR)/kernel-defaults.mk
49
50 define KernelPackage/lqtapi/description
51 FOSS drivers for Lantiq SoC voip core
52 endef
53
54 define Build/Prepare
55 mkdir -p $(PKG_BUILD_DIR)
56 $(CP) src/* $(PKG_BUILD_DIR)/
57 endef
58
59 define Build/Compile
60 $(MAKE) $(KERNEL_MAKEOPTS) \
61 SUBDIRS="$(PKG_BUILD_DIR)" \
62 EXTRA_CFLAGS=-I$(PKG_BUILD_DIR)/include/ \
63 modules
64 endef
65
66 define Package/lqtapi-firmware-danube/install
67 $(TOPDIR)/target/linux/$(BOARD)/extract.sh $(DL_DIR) '$(FW_FILE)'
68 $(INSTALL_DIR) $(1)/lib/firmware/
69 $(INSTALL_DATA) $(DL_DIR)/voip.bin $(1)/lib/firmware/$(FW_SOURCE)
70 endef
71
72 $(eval $(call KernelPackage,lqtapi))
73 $(eval $(call BuildPackage,lqtapi-firmware-danube))
This page took 0.044989 seconds and 5 git commands to generate.