Makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. #
  2. # Copyright (C) 2011-2012 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. include $(INCLUDE_DIR)/kernel.mk
  9. PKG_NAME:=dsl_cpe_control_danube
  10. PKG_VERSION:=3.24.4.4
  11. PKG_RELEASE:=2
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_BUILD_DIR:=$(BUILD_DIR)/dsl_cpe_control-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
  15. PKG_MD5SUM:=ee315306626b68794d3d3636dabfe161
  16. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  17. PKG_LICENSE:=BSD-3-Clause
  18. PKG_FIXUP:=autoreconf
  19. PKG_CONFIG_DEPENDS:=\
  20. CONFIG_LTQ_DSL_ENABLE_SOAP \
  21. CONFIG_LTQ_DSL_ENABLE_DSL_EVENT_POLLING
  22. PKG_BUILD_DEPENDS:=TARGET_lantiq_xway:kmod-ltq-adsl-danube TARGET_lantiq_xway_legacy:kmod-ltq-adsl-danube TARGET_lantiq_ase:kmod-ltq-adsl-ase
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/ltq-adsl-app
  25. SECTION:=net
  26. CATEGORY:=Network
  27. TITLE:=Lantiq DSL userland tool
  28. URL:=http://www.lantiq.com/
  29. DEPENDS:=@(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy||TARGET_lantiq_ase) +libpthread
  30. MENU:=1
  31. endef
  32. define Package/ltq-adsl-app/description
  33. Infineon DSL CPE API for Amazon SE, Danube and Vinax.
  34. endef
  35. LTQ_DSL_MAX_DEVICE=1
  36. LTQ_DSL_LINES_PER_DEVICE=1
  37. LTQ_DSL_CHANNELS_PER_LINE=1
  38. CONFIGURE_ARGS += \
  39. --with-max-device="$(LTQ_DSL_MAX_DEVICE)" \
  40. --with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \
  41. --with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \
  42. --enable-danube \
  43. --enable-driver-include="-I$(STAGING_DIR)/usr/include/adsl/" \
  44. --enable-debug-prints \
  45. --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
  46. --enable-cli-support \
  47. --enable-cmv-scripts \
  48. --enable-debug-tool-interface \
  49. --enable-adsl-led \
  50. --enable-dsl-ceoc \
  51. --enable-script-notification \
  52. --enable-dsl-pm \
  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
  63. TARGET_CFLAGS += -I$(LINUX_DIR)/include
  64. define Package/ltq-adsl-app/install
  65. $(INSTALL_DIR) $(1)/etc/init.d
  66. $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
  67. $(INSTALL_DIR) $(1)/sbin
  68. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
  69. endef
  70. $(eval $(call BuildPackage,ltq-adsl-app))