Root/package/ltq-dsl-app/Makefile

1#
2# Copyright (C) 2011 OpenWrt.org
3#
4# This is free software, licensed under the GNU General Public License v2.
5# See /LICENSE for more information.
6#
7
8include $(TOPDIR)/rules.mk
9include $(INCLUDE_DIR)/kernel.mk
10
11PKG_BASE_NAME:=dsl_cpe_control_danube
12PKG_VERSION:=3.24.4.4
13PKG_RELEASE:=1
14PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
15PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
16PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
17PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
18
19PKG_CONFIG_DEPENDS:=\
20    CONFIG_LTQ_DSL_ENABLE_CLI \
21    CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING
22
23include $(INCLUDE_DIR)/package.mk
24
25PKG_BUILD_DEPENDS:=TARGET_lantiq_danube:kmod-ltq-dsl-danube TARGET_lantiq_ar9:kmod-ltq-dsl-ar9 \
26    TARGET_lantiq_vr9:kmod-ltq-dsl-vr9 TARGET_lantiq_ase:kmod-ltq-dsl-ase
27
28define Package/ltq-dsl-app
29  SECTION:=net
30  CATEGORY:=Network
31  TITLE:=Lantiq DSL userland tool
32  URL:=http://www.lantiq.com/
33  DEPENDS:=@TARGET_lantiq&&!(TARGET_lantiq_falcon||TARGET_lantiq_falcon_stable) +libpthread
34  MAINTAINER:=John Crispin <blogic@openwrt.org>
35  MENU:=1
36endef
37
38define Package/ltq-dsl-app/description
39    Infineon DSL CPE API for Amazon SE, Danube and Vinax.
40endef
41
42define Package/ltq-dsl-app/config
43    source "$(SOURCE)/Config.in"
44endef
45
46LTQ_DSL_MAX_DEVICE=1
47LTQ_DSL_LINES_PER_DEVICE=1
48LTQ_DSL_CHANNELS_PER_LINE=1
49
50CONFIGURE_ARGS += \
51    --with-max-device="$(LTQ_DSL_MAX_DEVICE)" \
52    --with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \
53    --with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \
54    --enable-danube \
55    --enable-driver-include="-I$(STAGING_DIR)/usr/include" \
56    --enable-debug-prints \
57    --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
58    --enable-cmv-scripts \
59    --enable-debug-tool-interface \
60    --enable-adsl-led \
61    --enable-dsl-ceoc \
62    --enable-script-notification \
63    --enable-dsl-pm \
64    --enable-dsl-pm-total \
65    --enable-dsl-pm-history \
66    --enable-dsl-pm-showtime \
67    --enable-dsl-pm-channel-counters \
68    --enable-dsl-pm-datapath-counters \
69    --enable-dsl-pm-line-counters \
70    --enable-dsl-pm-channel-thresholds \
71    --enable-dsl-pm-datapath-thresholds \
72    --enable-dsl-pm-line-thresholds \
73    --enable-dsl-pm-optional-parameters
74
75ifeq ($(CONFIG_LTQ_DSL_ENABLE_CLI),y)
76CONFIGURE_ARGS += \
77    --enable-cli-support \
78    --enable-soap-support
79endif
80
81ifeq ($(CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING),y)
82CONFIGURE_ARGS += \
83    --enable-dsl-event-polling
84endif
85
86TARGET_CFLAGS += -I$(LINUX_DIR)/include
87
88define Package/ltq-dsl-app/install
89    $(INSTALL_DIR) $(1)/etc/init.d
90    $(INSTALL_BIN) ./files/ifx_cpe_control_init.sh $(1)/etc/init.d/
91
92    $(INSTALL_DIR) $(1)/sbin
93    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
94endef
95
96$(eval $(call BuildPackage,ltq-dsl-app))
97

Archive Download this file



interactive