2010-12-12 22:57:16 +00:00
|
|
|
#
|
2011-02-01 14:30:38 +00:00
|
|
|
# Copyright (C) 2011 OpenWrt.org
|
2010-12-12 22:57:16 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
include $(INCLUDE_DIR)/kernel.mk
|
|
|
|
|
2012-12-15 02:00:33 +00:00
|
|
|
PKG_NAME:=ltq-adsl
|
2010-12-12 22:57:16 +00:00
|
|
|
PKG_VERSION:=3.24.4.4
|
2018-03-03 00:38:50 +00:00
|
|
|
PKG_RELEASE:=2
|
2012-11-06 07:38:18 +00:00
|
|
|
PKG_SOURCE:=drv_dsl_cpe_api_danube-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/ltq-dsl-$(BUILD_VARIANT)/drv_dsl_cpe_api-$(PKG_VERSION)
|
2010-12-12 22:57:16 +00:00
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=eb2ed59715d3bf4e8a1460bbbe2f1660039e0a9f9d72afb1b2b16590094eb33c
|
2016-05-11 07:06:21 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
2010-12-12 22:57:16 +00:00
|
|
|
|
2014-07-02 08:17:36 +00:00
|
|
|
PKG_CHECK_FORMAT_SECURITY:=0
|
2015-01-11 16:53:34 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2014-03-11 13:19:56 +00:00
|
|
|
|
2010-12-12 22:57:16 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2012-12-15 02:00:33 +00:00
|
|
|
define KernelPackage/ltq-adsl-template
|
2010-12-12 22:57:16 +00:00
|
|
|
SECTION:=sys
|
|
|
|
CATEGORY:=Kernel modules
|
|
|
|
SUBMENU:=Network Devices
|
2012-12-15 02:00:33 +00:00
|
|
|
TITLE:=adsl driver for $(1)
|
2010-12-12 22:57:16 +00:00
|
|
|
URL:=http://www.lantiq.com/
|
2011-10-10 15:14:17 +00:00
|
|
|
VARIANT:=$(1)
|
2016-06-13 17:04:56 +00:00
|
|
|
DEPENDS:=@$(2) +kmod-ltq-adsl-$(1)-mei
|
2012-12-15 02:00:33 +00:00
|
|
|
FILES:=$(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko
|
|
|
|
AUTOLOAD:=$(call AutoLoad,51,drv_dsl_cpe_api)
|
2011-02-01 14:30:38 +00:00
|
|
|
endef
|
|
|
|
|
2016-06-13 17:04:56 +00:00
|
|
|
KernelPackage/ltq-adsl-danube=$(call KernelPackage/ltq-adsl-template,danube,(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy))
|
|
|
|
KernelPackage/ltq-adsl-ar9=$(call KernelPackage/ltq-adsl-template,ar9,TARGET_lantiq_xway)
|
|
|
|
KernelPackage/ltq-adsl-ase=$(call KernelPackage/ltq-adsl-template,ase,TARGET_lantiq_ase)
|
2010-12-12 22:57:16 +00:00
|
|
|
|
2011-02-01 14:30:38 +00:00
|
|
|
define KernelPackage/ltq-dsl/config
|
2010-12-12 22:57:16 +00:00
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
|
|
|
IFX_DSL_MAX_DEVICE=1
|
|
|
|
IFX_DSL_LINES_PER_DEVICE=1
|
|
|
|
IFX_DSL_CHANNELS_PER_LINE=1
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \
|
|
|
|
--with-max-device="$(IFX_DSL_MAX_DEVICE)" \
|
|
|
|
--with-lines-per-device="$(IFX_DSL_LINES_PER_DEVICE)" \
|
|
|
|
--with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \
|
|
|
|
--disable-dsl-delt-static \
|
|
|
|
--disable-adsl-led \
|
|
|
|
--enable-dsl-ceoc \
|
|
|
|
--enable-dsl-pm \
|
|
|
|
--enable-dsl-pm-total \
|
|
|
|
--enable-dsl-pm-history \
|
|
|
|
--enable-dsl-pm-showtime \
|
|
|
|
--enable-dsl-pm-channel-counters \
|
|
|
|
--enable-dsl-pm-datapath-counters \
|
|
|
|
--enable-dsl-pm-line-counters \
|
|
|
|
--enable-dsl-pm-channel-thresholds \
|
|
|
|
--enable-dsl-pm-datapath-thresholds \
|
|
|
|
--enable-dsl-pm-line-thresholds \
|
|
|
|
--enable-dsl-pm-optional-parameters \
|
|
|
|
--enable-linux-26 \
|
|
|
|
--enable-kernelbuild="$(LINUX_DIR)" \
|
|
|
|
ARCH=$(LINUX_KARCH)
|
|
|
|
|
2011-10-10 15:14:17 +00:00
|
|
|
CONFIG_TAG_danube:=DANUBE
|
|
|
|
CONFIG_TAG_ase:=AMAZON_SE
|
|
|
|
CONFIG_TAG_ar9:=AR9
|
|
|
|
CONFIGURE_ARGS += --enable-add-drv-cflags="-DMODULE -DCONFIG_$(CONFIG_TAG_$(BUILD_VARIANT))"
|
|
|
|
|
|
|
|
CONFIGURE_ARGS += --enable-danube
|
2010-12-12 22:57:16 +00:00
|
|
|
|
|
|
|
ifeq ($(CONFIG_LANTIQ_DSL_DEBUG),y)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-debug=yes \
|
|
|
|
--enable-debug-prints=yes
|
|
|
|
EXTRA_CFLAGS += -DDEBUG
|
|
|
|
endif
|
|
|
|
|
|
|
|
define Build/InstallDev
|
2012-12-15 02:00:33 +00:00
|
|
|
$(INSTALL_DIR) $(1)/usr/include/adsl
|
|
|
|
$(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe_*.h $(1)/usr/include/adsl/
|
2010-12-12 22:57:16 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-15 02:00:33 +00:00
|
|
|
$(eval $(call KernelPackage,ltq-adsl-danube))
|
|
|
|
$(eval $(call KernelPackage,ltq-adsl-ase))
|
|
|
|
$(eval $(call KernelPackage,ltq-adsl-ar9))
|