2 # Copyright (C) 2009-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
12 PKG_BASE_NAME
:=dsl_cpe_control_danube
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
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/lqdsl-app
25 TITLE
:=Lantiq DSL userland tool
26 URL
:=http
://www.lantiq.com
/
28 DEPENDS
:=@TARGET_lantiq_xway
+kmod-lqdsl
+libpthread
31 define Package
/lqdsl-app
/description
32 Infineon DSL CPE API for Amazon SE
, Danube and Vinax.
36 IFX_DSL_LINES_PER_DEVICE
=1
37 IFX_DSL_CHANNELS_PER_LINE
=1
41 --with-max-device
="$(IFX_DSL_MAX_DEVICE)" \
42 --with-lines-per-device
="$(IFX_DSL_LINES_PER_DEVICE)" \
43 --with-channels-per-line
="$(IFX_DSL_CHANNELS_PER_LINE)" \
45 --enable-driver-include
="-I$(STAGING_DIR)/usr/include" \
46 --enable-debug-prints \
47 --enable-add-appl-cflags
="-DMAX_CLI_PIPES=2" \
48 --enable-cmv-scripts \
49 --enable-debug-tool-interface \
52 --enable-script-notification \
54 --enable-dsl-pm-total \
55 --enable-dsl-pm-history \
56 --enable-dsl-pm-showtime \
57 --enable-dsl-pm-channel-counters \
58 --enable-dsl-pm-datapath-counters \
59 --enable-dsl-pm-line-counters \
60 --enable-dsl-pm-channel-thresholds \
61 --enable-dsl-pm-datapath-thresholds \
62 --enable-dsl-pm-line-thresholds \
63 --enable-dsl-pm-optional-parameters
65 ifeq ($(CONFIG_IFX_CLI
),y
)
67 --enable-cli-support \
71 TARGET_CFLAGS
+= -I
$(LINUX_DIR
)/include
73 define Package
/lqdsl-app
/install
74 $(INSTALL_DIR
) $(1)/etc
/init.d
75 $(INSTALL_BIN
) .
/files
/ifx_cpe_control_init.sh
$(1)/etc
/init.d
/
77 $(INSTALL_DIR
) $(1)/sbin
78 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/dsl_cpe_control
$(1)/sbin
81 $(eval
$(call BuildPackage
,lqdsl-app
))