lantiq: add some missing PKG_SOURCE_URLs
[openwrt/svn-archive/archive.git] / package / network / config / ltq-vdsl-app / Makefile
1 # Copyright (C) 2010 OpenWrt.org
2 #
3 # This is free software, licensed under the GNU General Public License v2.
4 # See /LICENSE for more information.
5
6 include $(TOPDIR)/rules.mk
7 include $(INCLUDE_DIR)/kernel.mk
8
9 PKG_NAME:=ltq-vdsl-app
10 PKG_VERSION:=4.11.4
11 PKG_RELEASE:=1
12 PKG_BASE_NAME:=dsl_cpe_control_vrx
13 PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
15 PKG_MD5SUM:=e9152ced26a91fbeefa4f34badb97484
16 PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
17
18 PKG_BUILD_DEPENDS:=kmod-ltq-vdsl-vr9
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ltq-vdsl-app
23 SECTION:=net
24 CATEGORY:=Network
25 TITLE:=Lantiq VDSL userland tool
26 URL:=http://www.lantiq.com/
27 DEPENDS:=@TARGET_lantiq_xway +libpthread
28 endef
29
30 define Package/ltq-vdsl-app/description
31 Userland tool needed to control Lantiq VDSL CPE
32 endef
33
34 CONFIGURE_ARGS += \
35 --with-max-device="1" \
36 --with-lines-per-device="1" \
37 --with-channels-per-line="1" \
38 --enable-vrx \
39 --enable-driver-include="-I$(STAGING_DIR)/usr/include/drv_vdsl_cpe_api" \
40 --enable-device-driver-include="-I$(STAGING_DIR)/usr/include/vdsl/" \
41 --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
42 --enable-ifxos \
43 --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
44 --enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
45 --enable-dsl-ceoc \
46 --enable-dsl-pm-total \
47 --enable-dsl-pm-showtime \
48 --enable-dsl-pm-line-counters \
49 --enable-dsl-pm-line-failure-counters \
50 --enable-dsl-pm-datapath-counters \
51 --enable-dsl-pm-datapath-failure-counters \
52 --enable-deprecated \
53 --disable-soap-support \
54 --enable-dsl-bonding=no \
55 --disable-dti
56
57 ifeq ($(CONFIG_IFX_CLI),y)
58 CONFIGURE_ARGS += \
59 --enable-cli-support
60 endif
61
62 CONFIGURE_ARGS += --enable-model=full
63 #CONFIGURE_ARGS += --enable-model=lite
64 #CONFIGURE_ARGS += --enable-model=footprint
65 #CONFIGURE_ARGS += --enable-model=typical
66 #CONFIGURE_ARGS += --enable-model=debug
67
68 define Package/ltq-vdsl-app/install
69 $(INSTALL_DIR) $(1)/etc/init.d
70 $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
71
72 $(INSTALL_DIR) $(1)/sbin
73 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
74 $(INSTALL_BIN) ./files/dsl_notify.sh $(1)/sbin
75 endef
76
77 $(eval $(call BuildPackage,ltq-vdsl-app))