51629b3625f3c1f5124c5ba8314c82c65d8e6ee6
[openwrt/svn-archive/archive.git] / package / ifxmips-dsl-control / Makefile
1 #
2 # Copyright (C) 2009-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # ralph / blogic
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_BASE_NAME:=dsl_cpe_control_danube
13 PKG_VERSION:=3.24.4.4
14 PKG_RELEASE:=1
15 PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
16 PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
17 PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
18 PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ifxmips-dsl-control
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=DSL CPE control application
26 URL:=http://www.infineon.com/
27 MAINTAINER:=Infineon Technologies AG / Lantiq / John Crispin <blogic@openwrt.org>
28 DEPENDS:=+kmod-ifxmips-dsl-api +libpthread @BROKEN
29 endef
30
31 define Package/ifxmips-dsl-control/description
32 Infineon DSL CPE API for Amazon SE, Danube and Vinax.
33 This package contains the DSL CPE control application for Amazon SE & Danube.
34
35 Supported Devices:
36 - Amazon SE
37 - Danube
38
39 This package was kindly contributed to openwrt by Infineon/Lantiq
40 endef
41
42 IFX_DSL_MAX_DEVICE=1
43 IFX_DSL_LINES_PER_DEVICE=1
44 IFX_DSL_CHANNELS_PER_LINE=1
45 #CONFIG_IFX_CLI=y
46
47 CONFIGURE_ARGS += \
48 --with-max-device="$(IFX_DSL_MAX_DEVICE)" \
49 --with-lines-per-device="$(IFX_DSL_LINES_PER_DEVICE)" \
50 --with-channels-per-line="$(IFX_DSL_CHANNELS_PER_LINE)" \
51 --enable-danube \
52 --enable-driver-include="-I$(STAGING_DIR)/usr/include" \
53 --enable-debug-prints \
54 --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
55 --enable-cmv-scripts \
56 --enable-debug-tool-interface \
57 --enable-adsl-led \
58 --enable-dsl-ceoc \
59 --enable-script-notification \
60 --enable-dsl-pm \
61 --enable-dsl-pm-total \
62 --enable-dsl-pm-history \
63 --enable-dsl-pm-showtime \
64 --enable-dsl-pm-channel-counters \
65 --enable-dsl-pm-datapath-counters \
66 --enable-dsl-pm-line-counters \
67 --enable-dsl-pm-channel-thresholds \
68 --enable-dsl-pm-datapath-thresholds \
69 --enable-dsl-pm-line-thresholds \
70 --enable-dsl-pm-optional-parameters
71
72 ifeq ($(CONFIG_IFX_CLI),y)
73 CONFIGURE_ARGS += \
74 --enable-cli-support \
75 --enable-soap-support
76 endif
77
78 TARGET_CFLAGS += -I$(LINUX_DIR)/include
79
80 define Package/ifxmips-dsl-control/install
81 $(INSTALL_DIR) $(1)/etc/init.d
82 $(INSTALL_BIN) ./files/ifx_cpe_control_init.sh $(1)/etc/init.d/
83
84 $(INSTALL_DIR) $(1)/sbin
85 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
86 endef
87
88 $(eval $(call BuildPackage,ifxmips-dsl-control))