2 # Copyright (C) 2011 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_BASE_NAME
:=dsl_cpe_control_danube
14 PKG_SOURCE
:=$(PKG_BASE_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
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/ltq-dsl-app
24 TITLE
:=Lantiq DSL userland tool
25 URL
:=http
://www.lantiq.com
/
26 DEPENDS
:=@TARGET_lantiq_danube
+kmod-ltq-dsl
+libpthread
27 MAINTAINER
:=John Crispin
<blogic@openwrt.org
>
30 define Package
/ltq-dsl-app
/description
31 Infineon DSL CPE API for Amazon SE
, Danube and Vinax.
35 IFX_DSL_LINES_PER_DEVICE
=1
36 IFX_DSL_CHANNELS_PER_LINE
=1
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)" \
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 \
51 --enable-script-notification \
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
64 ifeq ($(CONFIG_IFX_CLI
),y
)
66 --enable-cli-support \
70 TARGET_CFLAGS
+= -I
$(LINUX_DIR
)/include
72 define 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
/
76 $(INSTALL_DIR
) $(1)/sbin
77 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/dsl_cpe_control
$(1)/sbin
80 $(eval
$(call BuildPackage
,ltq-dsl-app
))