* rename lqdsl packages to ltq-dsl * small rework of packages * make it work with latest kernel

SVN-Revision: 25274
This commit is contained in:
John Crispin 2011-02-01 14:30:38 +00:00
parent c7bb106433
commit 79b3d8f69a
21 changed files with 49 additions and 58 deletions

View file

@ -1,25 +0,0 @@
choice
prompt "Firmware"
default LANTIQ_ANNEX_B
depends on PACKAGE_kmod-lqdsl
help
This option controls which firmware is loaded
config LANTIQ_ANNEX_A
bool "Annex-A"
help
Annex-A
config LANTIQ_ANNEX_B
bool "Annex-B"
help
Annex-B
endchoice
config LANTIQ_DSL_DEBUG
bool "lqdsl debugging"
depends on PACKAGE_kmod-lqdsl
help
Say Y, if you need lantiq-dsl to display debug messages.

View file

@ -1,10 +1,9 @@
# #
# Copyright (C) 2009-2010 OpenWrt.org # Copyright (C) 2011 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
# #
# ralph / blogic
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
@ -19,16 +18,16 @@ PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/lqdsl-app define Package/ltq-dsl-app
SECTION:=net SECTION:=net
CATEGORY:=Network CATEGORY:=Network
TITLE:=Lantiq DSL userland tool TITLE:=Lantiq DSL userland tool
URL:=http://www.lantiq.com/ URL:=http://www.lantiq.com/
MAINTAINER:=Lantiq DEPENDS:=@TARGET_lantiq_xway +kmod-ltq-dsl +libpthread
DEPENDS:=@TARGET_lantiq_xway +kmod-lqdsl +libpthread MAINTAINER:=John Crispin <blogic@openwrt.org>
endef endef
define Package/lqdsl-app/description define Package/ltq-dsl-app/description
Infineon DSL CPE API for Amazon SE, Danube and Vinax. Infineon DSL CPE API for Amazon SE, Danube and Vinax.
endef endef
@ -70,7 +69,7 @@ endif
TARGET_CFLAGS += -I$(LINUX_DIR)/include TARGET_CFLAGS += -I$(LINUX_DIR)/include
define Package/lqdsl-app/install define Package/ltq-dsl-app/install
$(INSTALL_DIR) $(1)/etc/init.d $(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/ifx_cpe_control_init.sh $(1)/etc/init.d/ $(INSTALL_BIN) ./files/ifx_cpe_control_init.sh $(1)/etc/init.d/
@ -78,4 +77,4 @@ define Package/lqdsl-app/install
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
endef endef
$(eval $(call BuildPackage,lqdsl-app)) $(eval $(call BuildPackage,ltq-dsl-app))

View file

@ -0,0 +1,5 @@
config LANTIQ_DSL_DEBUG
bool "verbose debugging"
depends on PACKAGE_kmod-ltq-dsl
help
Say Y, if you need ltq-dsl to display debug messages.

View file

@ -1,15 +1,14 @@
# #
# Copyright (C) 2009-2010 OpenWrt.org # Copyright (C) 2011 OpenWrt.org
# #
# This is free software, licensed under the GNU General Public License v2. # This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information. # See /LICENSE for more information.
# #
# ralph / blogic
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk include $(INCLUDE_DIR)/kernel.mk
PKG_NAME:=lqdsl PKG_NAME:=ltq-dsl
PKG_BASE_NAME:=drv_dsl_cpe_api_danube PKG_BASE_NAME:=drv_dsl_cpe_api_danube
PKG_VERSION:=3.24.4.4 PKG_VERSION:=3.24.4.4
PKG_RELEASE:=2 PKG_RELEASE:=2
@ -18,10 +17,6 @@ PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/drv_dsl_cpe_api-$(PKG_VERSION)
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/ PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
PKG_MD5SUM:=c45bc531c1ed2ac80f68fb986b63bb87 PKG_MD5SUM:=c45bc531c1ed2ac80f68fb986b63bb87
ifeq ($(DUMP),)
STAMP_CONFIGURED:=$(strip $(STAMP_CONFIGURED))_$(shell grep '^CONFIG_LANTIQ_DSL_' $(TOPDIR)/.config | md5s)
endif
FW_BASE_NAME:=dsl_danube_firmware_adsl FW_BASE_NAME:=dsl_danube_firmware_adsl
FW_A_VER:=02.04.04.00.00.01 FW_A_VER:=02.04.04.00.00.01
FW_B_VER:=02.04.01.07.00.02 FW_B_VER:=02.04.01.07.00.02
@ -30,35 +25,47 @@ FW_B_FILE_VER:=241702
FW_A_MD5:=f717db3067a0049a26e233ab11238710 FW_A_MD5:=f717db3067a0049a26e233ab11238710
FW_B_MD5:=349de7cd20368f4ac9b7e8322114a512 FW_B_MD5:=349de7cd20368f4ac9b7e8322114a512
PATCH_DIR ?= ./patches$(if $(wildcard ./patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define KernelPackage/lqdsl define KernelPackage/ltq-dsl
SECTION:=sys SECTION:=sys
CATEGORY:=Kernel modules CATEGORY:=Kernel modules
SUBMENU:=Network Devices SUBMENU:=Network Devices
TITLE:=Lantiq dsl driver TITLE:=Lantiq dsl driver
URL:=http://www.lantiq.com/ URL:=http://www.lantiq.com/
MAINTAINER:=Lantiq
DEPENDS:=@TARGET_lantiq_xway +kmod-atm DEPENDS:=@TARGET_lantiq_xway +kmod-atm
FILES:=$(PKG_BUILD_DIR)/src/mei/lantiq_mei.ko \ FILES:=$(PKG_BUILD_DIR)/src/mei/lantiq_mei.ko \
$(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko \ $(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko \
$(PKG_BUILD_DIR)/src/mei/lantiq_atm.ko $(PKG_BUILD_DIR)/src/mei/lantiq_atm.ko
AUTOLOAD:=$(call AutoLoad,50,lantiq_mei drv_dsl_cpe_api lantiq_atm) AUTOLOAD:=$(call AutoLoad,50,lantiq_mei drv_dsl_cpe_api lantiq_atm)
MAINTAINER:=John Crispin <blogic@openwrt.org>
endef endef
define KernelPackage/lqdsl/description define Package/kmod-ltq-dsl-firmware/default
Infineon DSL CPE API for Amazon SE, Danube and Vinax. SECTION:=sys
CATEGORY:=Kernel modules
This package contains the DSL CPE API driver for Amazon SE & Danube. SUBMENU:=Network Devices
TITLE:=Firmware
Supported Devices: URL:=http://www.lantiq.com/
- Amazon SE DEPENDS:=@TARGET_lantiq_xway kmod-ltq-dsl
- Danube MAINTAINER:=John Crispin <blogic@openwrt.org>
endef endef
define KernelPackage/lqdsl/config define Package/kmod-ltq-dsl-firmware-a
$(call Package/kmod-ltq-dsl-firmware/default)
TITLE+=Annex-A Danube
endef
define Package/kmod-ltq-dsl-firmware-b
$(call Package/kmod-ltq-dsl-firmware/default)
TITLE+=Annex-B Danube
endef
define KernelPackage/ltq-dsl/description
Lantiq DSL CPE API for Amazon SE, Danube and Vinax.
endef
define KernelPackage/ltq-dsl/config
source "$(SOURCE)/Config.in" source "$(SOURCE)/Config.in"
endef endef
@ -118,10 +125,8 @@ define Build/Prepare
$(INSTALL_DIR) $(PKG_BUILD_DIR)/src/mei/ $(INSTALL_DIR) $(PKG_BUILD_DIR)/src/mei/
$(CP) ./src/* $(PKG_BUILD_DIR)/src/mei/ $(CP) ./src/* $(PKG_BUILD_DIR)/src/mei/
$(Build/Patch) $(Build/Patch)
ifeq ($(CONFIG_LANTIQ_DSL_FIRMWARE),)
$(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(FW_BASE_NAME)_a-$(FW_A_VER).tar.gz $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(FW_BASE_NAME)_a-$(FW_A_VER).tar.gz
$(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(FW_BASE_NAME)_b-$(FW_B_VER).tar.gz $(TAR) -C $(PKG_BUILD_DIR) -xzf $(DL_DIR)/$(FW_BASE_NAME)_b-$(FW_B_VER).tar.gz
endif
endef endef
define Build/Configure define Build/Configure
@ -150,9 +155,16 @@ define Build/InstallDev
$(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe_cmv_danube.h $(1)/usr/include $(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe_cmv_danube.h $(1)/usr/include
endef endef
define KernelPackage/lqdsl/install define Package/ltq-dsl-firmware-a/install
$(INSTALL_DIR) $(1)/lib/firmware/ $(INSTALL_DIR) $(1)/lib/firmware/
$(CP) $(PKG_BUILD_DIR)/$(FW_BASE_NAME)_$(if $(CONFIG_LANTIQ_ANNEX_A),a_$(FW_A_FILE_VER),b_$(FW_B_FILE_VER)).bin $(1)/lib/firmware/ModemHWE.bin $(CP) $(PKG_BUILD_DIR)/$(FW_BASE_NAME)_a_$(FW_A_FILE_VER).bin $(1)/lib/firmware/ModemHWE.bin
endef endef
$(eval $(call KernelPackage,lqdsl)) define Package/ltq-dsl-firmware-b/install
$(INSTALL_DIR) $(1)/lib/firmware/
$(CP) $(PKG_BUILD_DIR)/$(FW_BASE_NAME)_b_$(FW_B_FILE_VER).bin $(1)/lib/firmware/ModemHWE.bin
endef
$(eval $(call KernelPackage,ltq-dsl))
$(eval $(call BuildPackage,kmod-ltq-dsl-firmware-a))
$(eval $(call BuildPackage,kmod-ltq-dsl-firmware-b))