Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. include $(TOPDIR)/rules.mk
  6. include $(INCLUDE_DIR)/kernel.mk
  7. PKG_NAME:=ltq-vdsl-app
  8. PKG_VERSION:=4.11.4
  9. PKG_RELEASE:=1
  10. PKG_BASE_NAME:=dsl_cpe_control_vrx
  11. PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://downloads.openwrt.org/sources/
  13. PKG_MD5SUM:=e9152ced26a91fbeefa4f34badb97484
  14. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
  15. PKG_LICENSE:=BSD-2-Clause
  16. PKG_BUILD_DEPENDS:=kmod-ltq-vdsl-vr9
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/ltq-vdsl-app
  19. SECTION:=net
  20. CATEGORY:=Network
  21. TITLE:=Lantiq VDSL userland tool
  22. URL:=http://www.lantiq.com/
  23. DEPENDS:=@TARGET_lantiq_xrx200 +libpthread
  24. endef
  25. define Package/ltq-vdsl-app/description
  26. Userland tool needed to control Lantiq VDSL CPE
  27. endef
  28. CONFIGURE_ARGS += \
  29. --with-max-device="1" \
  30. --with-lines-per-device="1" \
  31. --with-channels-per-line="1" \
  32. --enable-vrx \
  33. --enable-driver-include="-I$(STAGING_DIR)/usr/include/drv_vdsl_cpe_api" \
  34. --enable-device-driver-include="-I$(STAGING_DIR)/usr/include/vdsl/" \
  35. --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
  36. --enable-ifxos \
  37. --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
  38. --enable-ifxos-library="-I$(STAGING_DIR)/usr/lib" \
  39. --enable-dsl-ceoc \
  40. --enable-dsl-pm-total \
  41. --enable-dsl-pm-showtime \
  42. --enable-dsl-pm-line-counters \
  43. --enable-dsl-pm-line-failure-counters \
  44. --enable-dsl-pm-datapath-counters \
  45. --enable-dsl-pm-datapath-failure-counters \
  46. --enable-deprecated \
  47. --disable-soap-support \
  48. --enable-dsl-bonding=no \
  49. --disable-dti
  50. ifeq ($(CONFIG_IFX_CLI),y)
  51. CONFIGURE_ARGS += \
  52. --enable-cli-support
  53. endif
  54. CONFIGURE_ARGS += --enable-model=full
  55. #CONFIGURE_ARGS += --enable-model=lite
  56. #CONFIGURE_ARGS += --enable-model=footprint
  57. #CONFIGURE_ARGS += --enable-model=typical
  58. #CONFIGURE_ARGS += --enable-model=debug
  59. define Package/ltq-vdsl-app/install
  60. $(INSTALL_DIR) $(1)/etc/init.d
  61. $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
  62. $(INSTALL_DIR) $(1)/sbin
  63. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin/vdsl_cpe_control
  64. endef
  65. $(eval $(call BuildPackage,ltq-vdsl-app))