2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
9 include $(INCLUDE_DIR
)/kernel.mk
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
20 include $(INCLUDE_DIR
)/package.mk
22 define Download
/firmware
27 $(eval
$(call Download
,firmware
))
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
)
40 define Package
/lqtapi-firmware-danube
42 CATEGORY
:=Kernel modules
43 SUBMENU
:=Voice over IP
44 TITLE
:=Danube firmware
48 include $(INCLUDE_DIR
)/kernel-defaults.mk
50 define KernelPackage
/lqtapi
/description
51 FOSS drivers for Lantiq SoC voip core
55 mkdir
-p
$(PKG_BUILD_DIR
)
56 $(CP
) src
/* $(PKG_BUILD_DIR
)/
60 $(MAKE
) $(KERNEL_MAKEOPTS
) \
61 SUBDIRS
="$(PKG_BUILD_DIR)" \
62 EXTRA_CFLAGS
=-I
$(PKG_BUILD_DIR
)/include/ \
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
)
72 $(eval
$(call KernelPackage
,lqtapi
))
73 $(eval
$(call BuildPackage
,lqtapi-firmware-danube
))