Makefile 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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_HASH:=af0bdf45cc7a62e2b38d39aad4924dd83c24fae170ae5bbd8190c2a3d9106257
  16. PKG_MAINTAINER:=John Crispin <john@phrozen.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. PKG_FLAGS:=nonshared
  24. include $(INCLUDE_DIR)/package.mk
  25. define Package/ltq-adsl-app
  26. SECTION:=net
  27. CATEGORY:=Network
  28. TITLE:=Lantiq DSL userland tool
  29. URL:=http://www.lantiq.com/
  30. DEPENDS:=@(TARGET_lantiq_xway||TARGET_lantiq_xway_legacy||TARGET_lantiq_ase) +libpthread
  31. MENU:=1
  32. endef
  33. define Package/ltq-adsl-app/description
  34. Infineon DSL CPE API for Amazon SE, Danube and Vinax.
  35. endef
  36. LTQ_DSL_MAX_DEVICE=1
  37. LTQ_DSL_LINES_PER_DEVICE=1
  38. LTQ_DSL_CHANNELS_PER_LINE=1
  39. CONFIGURE_ARGS += \
  40. --with-max-device="$(LTQ_DSL_MAX_DEVICE)" \
  41. --with-lines-per-device="$(LTQ_DSL_LINES_PER_DEVICE)" \
  42. --with-channels-per-line="$(LTQ_DSL_CHANNELS_PER_LINE)" \
  43. --enable-danube \
  44. --enable-driver-include="-I$(STAGING_DIR)/usr/include/adsl/" \
  45. --enable-debug-prints \
  46. --enable-add-appl-cflags="-DMAX_CLI_PIPES=2" \
  47. --enable-cli-support \
  48. --enable-cmv-scripts \
  49. --enable-debug-tool-interface \
  50. --enable-adsl-led \
  51. --enable-dsl-ceoc \
  52. --enable-script-notification \
  53. --enable-dsl-pm \
  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
  64. TARGET_CFLAGS += -I$(LINUX_DIR)/include
  65. define Package/ltq-adsl-app/install
  66. $(INSTALL_DIR) $(1)/etc/init.d
  67. $(INSTALL_BIN) ./files/dsl_control $(1)/etc/init.d/
  68. $(INSTALL_DIR) $(1)/sbin
  69. $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/dsl_cpe_control $(1)/sbin
  70. endef
  71. $(eval $(call BuildPackage,ltq-adsl-app))