2010-12-12 22:57:16 +00:00
|
|
|
#
|
2012-10-23 19:57:47 +00:00
|
|
|
# Copyright (C) 2011-2012 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-04-10 15:20:23 +00:00
|
|
|
PKG_NAME:=dsl_cpe_control_danube
|
2010-12-12 22:57:16 +00:00
|
|
|
PKG_VERSION:=3.24.4.4
|
2023-01-28 19:45:24 +00:00
|
|
|
PKG_RELEASE:=11
|
2012-04-10 15:20:23 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2010-12-12 22:57:16 +00:00
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
|
2021-01-30 20:54:44 +00:00
|
|
|
PKG_SOURCE_URL:=@OPENWRT
|
2016-12-16 16:32:10 +00:00
|
|
|
PKG_HASH:=af0bdf45cc7a62e2b38d39aad4924dd83c24fae170ae5bbd8190c2a3d9106257
|
2016-05-11 07:06:21 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <john@phrozen.org>
|
2014-11-02 12:20:54 +00:00
|
|
|
PKG_LICENSE:=BSD-3-Clause
|
2010-12-12 22:57:16 +00:00
|
|
|
|
2012-12-03 12:46:57 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
|
|
|
|
2011-07-17 19:26:35 +00:00
|
|
|
PKG_CONFIG_DEPENDS:=\
|
2012-01-24 11:31:23 +00:00
|
|
|
CONFIG_LTQ_DSL_ENABLE_SOAP \
|
2011-07-17 19:26:35 +00:00
|
|
|
CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING
|
|
|
|
|
2018-01-07 19:41:06 +00:00
|
|
|
PKG_BUILD_DEPENDS:=ltq-adsl
|
2010-12-12 22:57:16 +00:00
|
|
|
|
2017-01-19 08:18:57 +00:00
|
|
|
PKG_FLAGS:=nonshared
|
|
|
|
|
2012-12-15 02:00:39 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2011-10-10 15:14:17 +00:00
|
|
|
|
2012-12-15 02:00:39 +00:00
|
|
|
define Package/ltq-adsl-app
|
2010-12-12 22:57:16 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Lantiq DSL userland tool
|
|
|
|
URL:=http://www.lantiq.com/
|
2021-01-26 08:00:49 +00:00
|
|
|
DEPENDS:=@(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy||TARGET_lantiq_ase) +libpthread +ltq-dsl-base +libubox +libubus
|
2022-09-02 07:48:22 +00:00
|
|
|
PROVIDES:=ltq-dsl-app
|
2011-07-17 19:26:35 +00:00
|
|
|
MENU:=1
|
2010-12-12 22:57:16 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-15 02:00:39 +00:00
|
|
|
define Package/ltq-adsl-app/description
|
2010-12-12 22:57:16 +00:00
|
|
|
Infineon DSL CPE API for Amazon SE, Danube and Vinax.
|
|
|
|
endef
|
|
|
|
|
2011-07-17 19:26:35 +00:00
|
|
|
LTQ_DSL_MAX_DEVICE=1
|
|
|
|
LTQ_DSL_LINES_PER_DEVICE=1
|
|
|
|
LTQ_DSL_CHANNELS_PER_LINE=1
|
2010-12-12 22:57:16 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS += \
|
2011-07-17 19:26:35 +00:00
|
|
|
--with-max-device="$(LTQ_DSL_MAX_DEVICE)" \
|
|
|
|
--with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \
|
|
|
|
--with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \
|
2010-12-12 22:57:16 +00:00
|
|
|
--enable-danube \
|
2012-12-15 02:00:39 +00:00
|
|
|
--enable-driver-include="-I$(STAGING_DIR)/usr/include/adsl/" \
|
2010-12-12 22:57:16 +00:00
|
|
|
--enable-debug-prints \
|
|
|
|
--enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
|
2012-01-24 11:31:23 +00:00
|
|
|
--enable-cli-support \
|
2010-12-12 22:57:16 +00:00
|
|
|
--enable-cmv-scripts \
|
|
|
|
--enable-debug-tool-interface \
|
|
|
|
--enable-adsl-led \
|
|
|
|
--enable-dsl-ceoc \
|
|
|
|
--enable-script-notification \
|
|
|
|
--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
|
|
|
|
|
|
|
|
TARGET_CFLAGS += -I$(LINUX_DIR)/include
|
|
|
|
|
2021-01-26 08:00:49 +00:00
|
|
|
define Build/Prepare
|
|
|
|
$(call Build/Prepare/Default)
|
2022-08-23 13:18:49 +00:00
|
|
|
$(CP) ../ltq-vdsl-vr9-app/src/src/dsl_cpe_ubus.c $(PKG_BUILD_DIR)/src/
|
2021-01-26 08:00:49 +00:00
|
|
|
endef
|
|
|
|
|
2012-12-15 02:00:39 +00:00
|
|
|
define Package/ltq-adsl-app/install
|
2018-01-06 17:38:35 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d $(1)/sbin $(1)/etc/hotplug.d/dsl
|
2012-01-24 11:31:23 +00:00
|
|
|
$(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
|
2017-10-15 10:29:22 +00:00
|
|
|
$(INSTALL_BIN) ./files/10_atm.sh $(1)/etc/hotplug.d/dsl
|
|
|
|
$(INSTALL_BIN) ./files/10_ptm.sh $(1)/etc/hotplug.d/dsl
|
2010-12-12 22:57:16 +00:00
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
|
|
|
|
endef
|
|
|
|
|
2012-12-15 02:00:39 +00:00
|
|
|
$(eval $(call BuildPackage,ltq-adsl-app))
|