Makefile 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. # Copyright (C) 2012 OpenWrt.org
  2. # Copyright (C) 2015-2016 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.17.18.6
  10. PKG_RELEASE:=3
  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_HASH:=b4966a60653acc49254b168c6cc9c49eb36c54548e763617788aa4f252a29f21
  16. PKG_LICENSE:=GPL-2.0 BSD-2-Clause
  17. PKG_LICENSE_FILES:=LICENSE
  18. PKG_ASLR_PIE:=0
  19. PKG_FIXUP:=autoreconf
  20. PKG_MAINTAINER:=John Crispin <john@phrozen.org>
  21. include $(INCLUDE_DIR)/package.mk
  22. define KernelPackage/ltq-vdsl-vr9
  23. TITLE:=vdsl driver
  24. SECTION:=sys
  25. SUBMENU:=Network Devices
  26. DEPENDS:=@TARGET_lantiq_xrx200 +kmod-ltq-vdsl-vr9-mei
  27. FILES:=$(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko
  28. AUTOLOAD:=$(call AutoLoad,51,drv_dsl_cpe_api)
  29. endef
  30. define Package/ltq-vdsl-vr9/description
  31. This package contains the Lantiq DSL CPE API driver.
  32. Supported Devices:
  33. - VRX200 Family
  34. endef
  35. MAKE_FLAGS += \
  36. SHELL="$(BASH)"
  37. CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \
  38. --with-max-device="1" \
  39. --with-lines-per-device="1" \
  40. --with-channels-per-line="1" \
  41. --enable-vrx \
  42. --enable-vrx-device=vr9 \
  43. --enable-ifxos \
  44. --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
  45. --enable-driver-include="-I$(STAGING_DIR)/usr/include/vdsl" \
  46. --enable-add-drv-cflags="-DMODULE -DINCLUDE_DSL_ATM_PTM_INTERFACE_SUPPORT" \
  47. --enable-adsl-led=no \
  48. --enable-adsl-mib=no \
  49. --enable-dsl-ceoc=no \
  50. --enable-linux-26 \
  51. --enable-kernelbuild="$(LINUX_DIR)" \
  52. --enable-debug-prints=no \
  53. ARCH=mips
  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 Build/InstallDev
  60. $(INSTALL_DIR) $(1)/usr/include/drv_vdsl_cpe_api
  61. $(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe*.h $(1)/usr/include/drv_vdsl_cpe_api/
  62. endef
  63. $(eval $(call KernelPackage,ltq-vdsl-vr9))