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
19include $(INCLUDE_DIR)/package.mk
20
21define Package/ltq-dsl-app
22  SECTION:=net
23  CATEGORY:=Network
24  TITLE:=Lantiq DSL userland tool
25  URL:=http://www.lantiq.com/
26  DEPENDS:=@TARGET_lantiq_xway +kmod-ltq-dsl +libpthread
27  MAINTAINER:=John Crispin <blogic@openwrt.org>
28endef
29
30define Package/ltq-dsl-app/description
31    Infineon DSL CPE API for Amazon SE, Danube and Vinax.
32endef
33
34IFX_DSL_MAX_DEVICE=1
35IFX_DSL_LINES_PER_DEVICE=1
36IFX_DSL_CHANNELS_PER_LINE=1
37#CONFIG_IFX_CLI=y
38
39CONFIGURE_ARGS += \
40    --with-max-device="$(IFX_DSL_MAX_DEVICE)" \
41    --with-lines-per-device="$(IFX_DSL_LINES_PER_DEVICE)" \
42    --with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \
43    --enable-danube \
44    --enable-driver-include="-I$(STAGING_DIR)/usr/include" \
45    --enable-debug-prints \
46    --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
47    --enable-cmv-scripts \
48    --enable-debug-tool-interface \
49    --enable-adsl-led \
50    --enable-dsl-ceoc \
51    --enable-script-notification \
52    --enable-dsl-pm \
53    --enable-dsl-pm-total \
54    --enable-dsl-pm-history \
55    --enable-dsl-pm-showtime \
56    --enable-dsl-pm-channel-counters \
57    --enable-dsl-pm-datapath-counters \
58    --enable-dsl-pm-line-counters \
59    --enable-dsl-pm-channel-thresholds \
60    --enable-dsl-pm-datapath-thresholds \
61    --enable-dsl-pm-line-thresholds \
62    --enable-dsl-pm-optional-parameters
63
64ifeq ($(CONFIG_IFX_CLI),y)
65CONFIGURE_ARGS += \
66    --enable-cli-support \
67    --enable-soap-support
68endif
69
70TARGET_CFLAGS += -I$(LINUX_DIR)/include
71
72define Package/ltq-dsl-app/install
73    $(INSTALL_DIR) $(1)/etc/init.d
74    $(INSTALL_BIN) ./files/ifx_cpe_control_init.sh $(1)/etc/init.d/
75
76    $(INSTALL_DIR) $(1)/sbin
77    $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
78endef
79
80$(eval $(call BuildPackage,ltq-dsl-app))
81

Archive Download this file



interactive