Makefile 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. # Copyright (C) 2012 OpenWrt.org
  2. # Copyright (C) 2015 Lantiq Beteiligungs GmbH & Co KG.
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. include $(INCLUDE_DIR)/kernel.mk
  8. PKG_NAME:=ltq-vdsl-vr9
  9. PKG_VERSION:=4.16.6.3
  10. PKG_RELEASE:=1
  11. PKG_BASE_NAME:=drv_dsl_cpe_api
  12. PKG_SOURCE:=$(PKG_BASE_NAME)_vrx-$(PKG_VERSION).tar.gz
  13. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/$(PKG_BASE_NAME)-$(PKG_VERSION)
  14. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources
  15. PKG_MD5SUM:=5b15a866bb1939c333d30a1b7f9e7856
  16. PKG_USE_MIPS16:=0
  17. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  18. include $(INCLUDE_DIR)/package.mk
  19. define KernelPackage/ltq-vdsl-vr9
  20. TITLE:=vdsl driver
  21. SECTION:=sys
  22. SUBMENU:=Network Devices
  23. DEPENDS:=@TARGET_lantiq_xrx200 +kmod-ltq-vdsl-vr9-mei
  24. FILES:=$(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko
  25. AUTOLOAD:=$(call AutoLoad,51,drv_dsl_cpe_api)
  26. endef
  27. define Package/ltq-vdsl-vr9/description
  28. This package contains the Lantiq DSL CPE API driver.
  29. Supported Devices:
  30. - VRX200 Family
  31. endef
  32. EXTRA_CFLAGS = -fno-pic -mno-abicalls -mlong-calls -G 0
  33. MAKE_FLAGS += \
  34. SHELL="$(BASH)"
  35. CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \
  36. --with-max-device="1" \
  37. --with-lines-per-device="1" \
  38. --with-channels-per-line="1" \
  39. --enable-vrx \
  40. --enable-vrx-device=vr9 \
  41. --enable-ifxos \
  42. --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
  43. --enable-driver-include="-I$(STAGING_DIR)/usr/include/vdsl" \
  44. --enable-add-drv-cflags="-DMODULE -DINCLUDE_DSL_ATM_PTM_INTERFACE_SUPPORT" \
  45. --enable-adsl-led=no \
  46. --enable-adsl-mib=no \
  47. --enable-dsl-ceoc=no \
  48. --enable-linux-26 \
  49. --enable-kernelbuild="$(LINUX_DIR)" \
  50. --enable-debug-prints=no \
  51. ARCH=mips
  52. CONFIGURE_ARGS += --enable-model=full
  53. #CONFIGURE_ARGS += --enable-model=lite
  54. #CONFIGURE_ARGS += --enable-model=footprint
  55. #CONFIGURE_ARGS += --enable-model=typical
  56. #CONFIGURE_ARGS += --enable-model=debug
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/include/drv_vdsl_cpe_api
  59. $(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe*.h $(1)/usr/include/drv_vdsl_cpe_api/
  60. endef
  61. $(eval $(call KernelPackage,ltq-vdsl-vr9))