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-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
|
|
|
|
PKG_RELEASE:=1
|
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)
|
|
|
|
PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
|
|
|
|
PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
|
2012-10-11 10:05:00 +00:00
|
|
|
PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
|
2010-12-12 22:57:16 +00:00
|
|
|
|
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
|
|
|
|
|
2010-12-12 22:57:16 +00:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2011-10-10 15:14:17 +00:00
|
|
|
PKG_BUILD_DEPENDS:=TARGET_lantiq_danube:kmod-ltq-dsl-danube TARGET_lantiq_ar9:kmod-ltq-dsl-ar9 \
|
|
|
|
TARGET_lantiq_vr9:kmod-ltq-dsl-vr9 TARGET_lantiq_ase:kmod-ltq-dsl-ase
|
|
|
|
|
2011-02-01 14:30:38 +00:00
|
|
|
define Package/ltq-dsl-app
|
2010-12-12 22:57:16 +00:00
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
|
|
|
TITLE:=Lantiq DSL userland tool
|
|
|
|
URL:=http://www.lantiq.com/
|
2011-10-10 15:14:17 +00:00
|
|
|
DEPENDS:=@TARGET_lantiq&&!(TARGET_lantiq_falcon||TARGET_lantiq_falcon_stable) +libpthread
|
2011-07-17 19:26:35 +00:00
|
|
|
MENU:=1
|
2010-12-12 22:57:16 +00:00
|
|
|
endef
|
|
|
|
|
2011-02-01 14:30:38 +00:00
|
|
|
define Package/ltq-dsl-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
|
|
|
define Package/ltq-dsl-app/config
|
|
|
|
source "$(SOURCE)/Config.in"
|
|
|
|
endef
|
|
|
|
|
|
|
|
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 \
|
|
|
|
--enable-driver-include="-I$(STAGING_DIR)/usr/include" \
|
|
|
|
--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
|
|
|
|
|
2012-01-24 11:31:23 +00:00
|
|
|
ifeq ($(CONFIG_LTQ_DSL_ENABLE_SOAP),y)
|
2010-12-12 22:57:16 +00:00
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-soap-support
|
|
|
|
endif
|
|
|
|
|
2011-07-17 19:26:35 +00:00
|
|
|
ifeq ($(CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING),y)
|
|
|
|
CONFIGURE_ARGS += \
|
|
|
|
--enable-dsl-event-polling
|
|
|
|
endif
|
|
|
|
|
2010-12-12 22:57:16 +00:00
|
|
|
TARGET_CFLAGS += -I$(LINUX_DIR)/include
|
|
|
|
|
2011-02-01 14:30:38 +00:00
|
|
|
define Package/ltq-dsl-app/install
|
2010-12-12 22:57:16 +00:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
2012-01-24 11:31:23 +00:00
|
|
|
$(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
|
2010-12-12 22:57:16 +00:00
|
|
|
|
|
|
|
$(INSTALL_DIR) $(1)/sbin
|
|
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
|
2012-01-24 11:31:23 +00:00
|
|
|
$(INSTALL_BIN) ./files/dsl_notify.sh $(1)/sbin
|
2010-12-12 22:57:16 +00:00
|
|
|
endef
|
|
|
|
|
2011-02-01 14:30:38 +00:00
|
|
|
$(eval $(call BuildPackage,ltq-dsl-app))
|