Root/package/platform/lantiq/ltq-adsl-app/Makefile

1#
2# Copyright (C) 2011-2012 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_NAME:=dsl_cpe_control_danube
12PKG_VERSION:=3.24.4.4
13PKG_RELEASE:=2
14PKG_SOURCE:=$(PKG_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
18PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
19
20PKG_FIXUP:=autoreconf
21
22PKG_CONFIG_DEPENDS:=\
23    CONFIG_LTQ_DSL_ENABLE_SOAP \
24    CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING
25
26PKG_BUILD_DEPENDS:=TARGET_lantiq_xway:kmod-ltq-adsl-danube TARGET_lantiq_ase:kmod-ltq-adsl-ase
27
28include $(INCLUDE_DIR)/package.mk
29
30define Package/ltq-adsl-app
31  SECTION:=net
32  CATEGORY:=Network
33  TITLE:=Lantiq DSL userland tool
34  URL:=http://www.lantiq.com/
35  DEPENDS:=@(TARGET_lantiq_xway||TARGET_lantiq_ase) +libpthread
36  MENU:=1
37endef
38
39define Package/ltq-adsl-app/description
40    Infineon DSL CPE API for Amazon SE, Danube and Vinax.
41endef
42
43define Package/ltq-adsl-app/config
44    source "$(SOURCE)/Config.in"
45endef
46
47LTQ_DSL_MAX_DEVICE=1
48LTQ_DSL_LINES_PER_DEVICE=1
49LTQ_DSL_CHANNELS_PER_LINE=1
50
51CONFIGURE_ARGS += \
52    --with-max-device="$(LTQ_DSL_MAX_DEVICE)" \
53    --with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \
54    --with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \
55    --enable-danube \
56    --enable-driver-include="-I$(STAGING_DIR)/usr/include/adsl/" \
57    --enable-debug-prints \
58    --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
59    --enable-cli-support \
60    --enable-cmv-scripts \
61    --enable-debug-tool-interface \
62    --enable-adsl-led \
63    --enable-dsl-ceoc \
64    --enable-script-notification \
65    --enable-dsl-pm \
66    --enable-dsl-pm-total \
67    --enable-dsl-pm-history \
68    --enable-dsl-pm-showtime \
69    --enable-dsl-pm-channel-counters \
70    --enable-dsl-pm-datapath-counters \
71    --enable-dsl-pm-line-counters \
72    --enable-dsl-pm-channel-thresholds \
73    --enable-dsl-pm-datapath-thresholds \
74    --enable-dsl-pm-line-thresholds \
75    --enable-dsl-pm-optional-parameters
76
77ifeq ($(CONFIG_LTQ_DSL_ENABLE_SOAP),y)
78CONFIGURE_ARGS += \
79    --enable-soap-support
80endif
81
82ifeq ($(CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING),y)
83CONFIGURE_ARGS += \
84    --enable-dsl-event-polling
85endif
86
87TARGET_CFLAGS += -I$(LINUX_DIR)/include
88
89define Package/ltq-adsl-app/install
90    $(INSTALL_DIR) $(1)/etc/init.d
91    $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
92
93    $(INSTALL_DIR) $(1)/sbin
94    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
95    $(INSTALL_BIN) ./files/dsl_notify.sh $(1)/sbin
96endef
97
98$(eval $(call BuildPackage,ltq-adsl-app))
99

Archive Download this file



interactive