2 # Copyright (C) 2011-2012 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
9 include $(INCLUDE_DIR)/kernel.mk
11 PKG_NAME:=dsl_cpe_control_danube
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
16 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
17 PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
18 PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
23 CONFIG_LTQ_DSL_ENABLE_SOAP \
24 CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING
26 include $(INCLUDE_DIR)/package.mk
28 PKG_BUILD_DEPENDS:=TARGET_lantiq_danube:kmod-ltq-dsl-danube TARGET_lantiq_ar9:kmod-ltq-dsl-ar9 \
29 TARGET_lantiq_vr9:kmod-ltq-dsl-vr9 TARGET_lantiq_ase:kmod-ltq-dsl-ase
31 define Package/ltq-dsl-app
34 TITLE:=Lantiq DSL userland tool
35 URL:=http://www.lantiq.com/
36 DEPENDS:=@TARGET_lantiq&&!(TARGET_lantiq_falcon||TARGET_lantiq_falcon_stable) +libpthread
40 define Package/ltq-dsl-app/description
41 Infineon DSL CPE API for Amazon SE, Danube and Vinax.
44 define Package/ltq-dsl-app/config
45 source "$(SOURCE)/Config.in"
49 LTQ_DSL_LINES_PER_DEVICE=1
50 LTQ_DSL_CHANNELS_PER_LINE=1
53 --with-max-device="$(LTQ_DSL_MAX_DEVICE)" \
54 --with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \
55 --with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \
57 --enable-driver-include="-I$(STAGING_DIR)/usr/include" \
58 --enable-debug-prints \
59 --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
60 --enable-cli-support \
61 --enable-cmv-scripts \
62 --enable-debug-tool-interface \
65 --enable-script-notification \
67 --enable-dsl-pm-total \
68 --enable-dsl-pm-history \
69 --enable-dsl-pm-showtime \
70 --enable-dsl-pm-channel-counters \
71 --enable-dsl-pm-datapath-counters \
72 --enable-dsl-pm-line-counters \
73 --enable-dsl-pm-channel-thresholds \
74 --enable-dsl-pm-datapath-thresholds \
75 --enable-dsl-pm-line-thresholds \
76 --enable-dsl-pm-optional-parameters
78 ifeq ($(CONFIG_LTQ_DSL_ENABLE_SOAP),y)
83 ifeq ($(CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING),y)
85 --enable-dsl-event-polling
88 TARGET_CFLAGS += -I$(LINUX_DIR)/include
90 define Package/ltq-dsl-app/install
91 $(INSTALL_DIR) $(1)/etc/init.d
92 $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
94 $(INSTALL_DIR) $(1)/sbin
95 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
96 $(INSTALL_BIN) ./files/dsl_notify.sh $(1)/sbin
99 $(eval $(call BuildPackage,ltq-dsl-app))