Lantiq TAPI driver also build for other platforms

thanks	Matthias Buecher

SVN-Revision: 27494
owl
John Crispin 2011-07-06 13:41:16 +00:00
parent a832965eff
commit 295da57040
1 changed files with 5 additions and 3 deletions

View File

@ -22,7 +22,7 @@ define KernelPackage/ltq-tapi
SUBMENU:=Voice over IP SUBMENU:=Voice over IP
TITLE:=Lantiq TAPI subsystem TITLE:=Lantiq TAPI subsystem
URL:=http://www.lantiq.com/ URL:=http://www.lantiq.com/
DEPENDS:=+kmod-ltq-ifxos @TARGET_lantiq DEPENDS:=+kmod-ltq-ifxos @TARGET_lantiq_xway
FILES:=$(PKG_BUILD_DIR)/src/drv_tapi.ko FILES:=$(PKG_BUILD_DIR)/src/drv_tapi.ko
AUTOLOAD:=$(call AutoLoad,20,drv_tapi) AUTOLOAD:=$(call AutoLoad,20,drv_tapi)
MAINTAINER:=John Crispin <blogic@openwrt.org> MAINTAINER:=John Crispin <blogic@openwrt.org>
@ -60,10 +60,12 @@ define Build/Configure
$(call Build/Configure/Default) $(call Build/Configure/Default)
endef endef
ifdef CONFIG_TARGET_lantiq
define Build/InstallDev define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include/drv_tapi $(INSTALL_DIR) $(1)/usr/include/drv_tapi
$(CP) --dereference $(PKG_BUILD_DIR)/include/* $(1)/usr/include/drv_tapi $(CP) --dereference $(PKG_BUILD_DIR)/include/* $(1)/usr/include/drv_tapi
(cd $(1)/usr/include/drv_tapi && ln -s . include && ln -s ../ifxos/ifx_types.h .) (cd $(1)/usr/include/drv_tapi && ln -s . include && ln -s ../ifxos/ifx_types.h .)
endef endef
endif
$(eval $(call KernelPackage,ltq-tapi)) $(eval $(call KernelPackage,ltq-tapi))