summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-02-01 14:30:38 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2011-02-01 14:30:38 +0000
commit3b329ec7b5c182f2b66e86a855b633c4b97ee5f1 (patch)
tree1069d44383ae54ab84f4f9c7c62d9fe8797f4f74 /package
parent1c466b799b7eab538286e948516e3f16720a3dd1 (diff)
[ltq-dsl]
* rename lqdsl packages to ltq-dsl * small rework of packages * make it work with latest kernel git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25274 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r--package/lqdsl/Config.in25
-rw-r--r--package/ltq-dsl-app/Makefile (renamed from package/lqdsl-app/Makefile)15
-rw-r--r--package/ltq-dsl-app/files/ifx_cpe_control_init.sh (renamed from package/lqdsl-app/files/ifx_cpe_control_init.sh)0
-rw-r--r--package/ltq-dsl/Config.in5
-rw-r--r--package/ltq-dsl/Makefile (renamed from package/lqdsl/Makefile)60
-rw-r--r--package/ltq-dsl/patches/100-dsl_compat.patch (renamed from package/lqdsl/patches/100-dsl_compat.patch)0
-rw-r--r--package/ltq-dsl/patches/500-portability.patch (renamed from package/lqdsl/patches/500-portability.patch)0
-rw-r--r--package/ltq-dsl/src/Makefile (renamed from package/lqdsl/src/Makefile)0
-rw-r--r--package/ltq-dsl/src/ifx_atm.h (renamed from package/lqdsl/src/ifx_atm.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm.h (renamed from package/lqdsl/src/ifxmips_atm.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_core.c (renamed from package/lqdsl/src/ifxmips_atm_core.c)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_core.h (renamed from package/lqdsl/src/ifxmips_atm_core.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_danube.c (renamed from package/lqdsl/src/ifxmips_atm_danube.c)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_fw_danube.h (renamed from package/lqdsl/src/ifxmips_atm_fw_danube.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_fw_regs_common.h (renamed from package/lqdsl/src/ifxmips_atm_fw_regs_common.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_fw_regs_danube.h (renamed from package/lqdsl/src/ifxmips_atm_fw_regs_danube.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_ppe_common.h (renamed from package/lqdsl/src/ifxmips_atm_ppe_common.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_atm_ppe_danube.h (renamed from package/lqdsl/src/ifxmips_atm_ppe_danube.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_compat.h (renamed from package/lqdsl/src/ifxmips_compat.h)0
-rw-r--r--package/ltq-dsl/src/ifxmips_mei_interface.h (renamed from package/lqdsl/src/ifxmips_mei_interface.h)0
-rw-r--r--package/ltq-dsl/src/lantiq_mei.c (renamed from package/lqdsl/src/lantiq_mei.c)0
21 files changed, 48 insertions, 57 deletions
diff --git a/package/lqdsl/Config.in b/package/lqdsl/Config.in
deleted file mode 100644
index fe503b8538..0000000000
--- a/package/lqdsl/Config.in
+++ /dev/null
@@ -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.
diff --git a/package/lqdsl-app/Makefile b/package/ltq-dsl-app/Makefile
index 18ce2a9a54..5be052f6e2 100644
--- a/package/lqdsl-app/Makefile
+++ b/package/ltq-dsl-app/Makefile
@@ -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.
# See /LICENSE for more information.
#
-# ralph / blogic
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
@@ -19,16 +18,16 @@ PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
include $(INCLUDE_DIR)/package.mk
-define Package/lqdsl-app
+define Package/ltq-dsl-app
SECTION:=net
CATEGORY:=Network
TITLE:=Lantiq DSL userland tool
URL:=http://www.lantiq.com/
- MAINTAINER:=Lantiq
- DEPENDS:=@TARGET_lantiq_xway +kmod-lqdsl +libpthread
+ DEPENDS:=@TARGET_lantiq_xway +kmod-ltq-dsl +libpthread
+ MAINTAINER:=John Crispin <blogic@openwrt.org>
endef
-define Package/lqdsl-app/description
+define Package/ltq-dsl-app/description
Infineon DSL CPE API for Amazon SE, Danube and Vinax.
endef
@@ -70,7 +69,7 @@ endif
TARGET_CFLAGS += -I$(LINUX_DIR)/include
-define Package/lqdsl-app/install
+define Package/ltq-dsl-app/install
$(INSTALL_DIR) $(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
endef
-$(eval $(call BuildPackage,lqdsl-app))
+$(eval $(call BuildPackage,ltq-dsl-app))
diff --git a/package/lqdsl-app/files/ifx_cpe_control_init.sh b/package/ltq-dsl-app/files/ifx_cpe_control_init.sh
index 91316938ce..91316938ce 100644
--- a/package/lqdsl-app/files/ifx_cpe_control_init.sh
+++ b/package/ltq-dsl-app/files/ifx_cpe_control_init.sh
diff --git a/package/ltq-dsl/Config.in b/package/ltq-dsl/Config.in
new file mode 100644
index 0000000000..6d9caf4419
--- /dev/null
+++ b/package/ltq-dsl/Config.in
@@ -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.
diff --git a/package/lqdsl/Makefile b/package/ltq-dsl/Makefile
index bfadd7150d..6f8f6ba0c6 100644
--- a/package/lqdsl/Makefile
+++ b/package/ltq-dsl/Makefile
@@ -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.
# See /LICENSE for more information.
#
-# ralph / blogic
include $(TOPDIR)/rules.mk
include $(INCLUDE_DIR)/kernel.mk
-PKG_NAME:=lqdsl
+PKG_NAME:=ltq-dsl
PKG_BASE_NAME:=drv_dsl_cpe_api_danube
PKG_VERSION:=3.24.4.4
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_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_A_VER:=02.04.04.00.00.01
FW_B_VER:=02.04.01.07.00.02
@@ -30,35 +25,47 @@ FW_B_FILE_VER:=241702
FW_A_MD5:=f717db3067a0049a26e233ab11238710
FW_B_MD5:=349de7cd20368f4ac9b7e8322114a512
-PATCH_DIR ?= ./patches$(if $(wildcard ./patches-$(KERNEL_PATCHVER)),-$(KERNEL_PATCHVER))
-
include $(INCLUDE_DIR)/package.mk
-define KernelPackage/lqdsl
+define KernelPackage/ltq-dsl
SECTION:=sys
CATEGORY:=Kernel modules
SUBMENU:=Network Devices
TITLE:=Lantiq dsl driver
URL:=http://www.lantiq.com/
- MAINTAINER:=Lantiq
DEPENDS:=@TARGET_lantiq_xway +kmod-atm
FILES:=$(PKG_BUILD_DIR)/src/mei/lantiq_mei.ko \
$(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko \
$(PKG_BUILD_DIR)/src/mei/lantiq_atm.ko
AUTOLOAD:=$(call AutoLoad,50,lantiq_mei drv_dsl_cpe_api lantiq_atm)
+ MAINTAINER:=John Crispin <blogic@openwrt.org>
+endef
+
+define Package/kmod-ltq-dsl-firmware/default
+ SECTION:=sys
+ CATEGORY:=Kernel modules
+ SUBMENU:=Network Devices
+ TITLE:=Firmware
+ URL:=http://www.lantiq.com/
+ DEPENDS:=@TARGET_lantiq_xway kmod-ltq-dsl
+ MAINTAINER:=John Crispin <blogic@openwrt.org>
+endef
+
+define Package/kmod-ltq-dsl-firmware-a
+ $(call Package/kmod-ltq-dsl-firmware/default)
+ TITLE+=Annex-A Danube
endef
-define KernelPackage/lqdsl/description
- Infineon DSL CPE API for Amazon SE, Danube and Vinax.
+define Package/kmod-ltq-dsl-firmware-b
+ $(call Package/kmod-ltq-dsl-firmware/default)
+ TITLE+=Annex-B Danube
+endef
- This package contains the DSL CPE API driver for Amazon SE & Danube.
-
- Supported Devices:
- - Amazon SE
- - Danube
+define KernelPackage/ltq-dsl/description
+ Lantiq DSL CPE API for Amazon SE, Danube and Vinax.
endef
-define KernelPackage/lqdsl/config
+define KernelPackage/ltq-dsl/config
source "$(SOURCE)/Config.in"
endef
@@ -118,10 +125,8 @@ define Build/Prepare
$(INSTALL_DIR) $(PKG_BUILD_DIR)/src/mei/
$(CP) ./src/* $(PKG_BUILD_DIR)/src/mei/
$(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)_b-$(FW_B_VER).tar.gz
-endif
endef
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
endef
-define KernelPackage/lqdsl/install
+define Package/ltq-dsl-firmware-a/install
+ $(INSTALL_DIR) $(1)/lib/firmware/
+ $(CP) $(PKG_BUILD_DIR)/$(FW_BASE_NAME)_a_$(FW_A_FILE_VER).bin $(1)/lib/firmware/ModemHWE.bin
+endef
+
+define Package/ltq-dsl-firmware-b/install
$(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)_b_$(FW_B_FILE_VER).bin $(1)/lib/firmware/ModemHWE.bin
endef
-$(eval $(call KernelPackage,lqdsl))
+$(eval $(call KernelPackage,ltq-dsl))
+$(eval $(call BuildPackage,kmod-ltq-dsl-firmware-a))
+$(eval $(call BuildPackage,kmod-ltq-dsl-firmware-b))
diff --git a/package/lqdsl/patches/100-dsl_compat.patch b/package/ltq-dsl/patches/100-dsl_compat.patch
index 334ac6736e..334ac6736e 100644
--- a/package/lqdsl/patches/100-dsl_compat.patch
+++ b/package/ltq-dsl/patches/100-dsl_compat.patch
diff --git a/package/lqdsl/patches/500-portability.patch b/package/ltq-dsl/patches/500-portability.patch
index 48e9d173d4..48e9d173d4 100644
--- a/package/lqdsl/patches/500-portability.patch
+++ b/package/ltq-dsl/patches/500-portability.patch
diff --git a/package/lqdsl/src/Makefile b/package/ltq-dsl/src/Makefile
index 89c4e712d7..89c4e712d7 100644
--- a/package/lqdsl/src/Makefile
+++ b/package/ltq-dsl/src/Makefile
diff --git a/package/lqdsl/src/ifx_atm.h b/package/ltq-dsl/src/ifx_atm.h
index 32deca54e0..32deca54e0 100644
--- a/package/lqdsl/src/ifx_atm.h
+++ b/package/ltq-dsl/src/ifx_atm.h
diff --git a/package/lqdsl/src/ifxmips_atm.h b/package/ltq-dsl/src/ifxmips_atm.h
index ed90b5d4d7..ed90b5d4d7 100644
--- a/package/lqdsl/src/ifxmips_atm.h
+++ b/package/ltq-dsl/src/ifxmips_atm.h
diff --git a/package/lqdsl/src/ifxmips_atm_core.c b/package/ltq-dsl/src/ifxmips_atm_core.c
index ae85d70650..ae85d70650 100644
--- a/package/lqdsl/src/ifxmips_atm_core.c
+++ b/package/ltq-dsl/src/ifxmips_atm_core.c
diff --git a/package/lqdsl/src/ifxmips_atm_core.h b/package/ltq-dsl/src/ifxmips_atm_core.h
index 8f0a3ebfba..8f0a3ebfba 100644
--- a/package/lqdsl/src/ifxmips_atm_core.h
+++ b/package/ltq-dsl/src/ifxmips_atm_core.h
diff --git a/package/lqdsl/src/ifxmips_atm_danube.c b/package/ltq-dsl/src/ifxmips_atm_danube.c
index 5698e0877c..5698e0877c 100644
--- a/package/lqdsl/src/ifxmips_atm_danube.c
+++ b/package/ltq-dsl/src/ifxmips_atm_danube.c
diff --git a/package/lqdsl/src/ifxmips_atm_fw_danube.h b/package/ltq-dsl/src/ifxmips_atm_fw_danube.h
index c36c96845c..c36c96845c 100644
--- a/package/lqdsl/src/ifxmips_atm_fw_danube.h
+++ b/package/ltq-dsl/src/ifxmips_atm_fw_danube.h
diff --git a/package/lqdsl/src/ifxmips_atm_fw_regs_common.h b/package/ltq-dsl/src/ifxmips_atm_fw_regs_common.h
index a5f59b8c40..a5f59b8c40 100644
--- a/package/lqdsl/src/ifxmips_atm_fw_regs_common.h
+++ b/package/ltq-dsl/src/ifxmips_atm_fw_regs_common.h
diff --git a/package/lqdsl/src/ifxmips_atm_fw_regs_danube.h b/package/ltq-dsl/src/ifxmips_atm_fw_regs_danube.h
index c0dfc6a2e0..c0dfc6a2e0 100644
--- a/package/lqdsl/src/ifxmips_atm_fw_regs_danube.h
+++ b/package/ltq-dsl/src/ifxmips_atm_fw_regs_danube.h
diff --git a/package/lqdsl/src/ifxmips_atm_ppe_common.h b/package/ltq-dsl/src/ifxmips_atm_ppe_common.h
index c922276dfb..c922276dfb 100644
--- a/package/lqdsl/src/ifxmips_atm_ppe_common.h
+++ b/package/ltq-dsl/src/ifxmips_atm_ppe_common.h
diff --git a/package/lqdsl/src/ifxmips_atm_ppe_danube.h b/package/ltq-dsl/src/ifxmips_atm_ppe_danube.h
index a60abe1d55..a60abe1d55 100644
--- a/package/lqdsl/src/ifxmips_atm_ppe_danube.h
+++ b/package/ltq-dsl/src/ifxmips_atm_ppe_danube.h
diff --git a/package/lqdsl/src/ifxmips_compat.h b/package/ltq-dsl/src/ifxmips_compat.h
index f5b5768466..f5b5768466 100644
--- a/package/lqdsl/src/ifxmips_compat.h
+++ b/package/ltq-dsl/src/ifxmips_compat.h
diff --git a/package/lqdsl/src/ifxmips_mei_interface.h b/package/ltq-dsl/src/ifxmips_mei_interface.h
index ffde6113c8..ffde6113c8 100644
--- a/package/lqdsl/src/ifxmips_mei_interface.h
+++ b/package/ltq-dsl/src/ifxmips_mei_interface.h
diff --git a/package/lqdsl/src/lantiq_mei.c b/package/ltq-dsl/src/lantiq_mei.c
index 7eeab33686..7eeab33686 100644
--- a/package/lqdsl/src/lantiq_mei.c
+++ b/package/ltq-dsl/src/lantiq_mei.c