Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # Copyright (C) 2012 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-vr9
  8. PKG_VERSION:=4.11.4
  9. PKG_RELEASE:=1
  10. PKG_BASE_NAME:=drv_dsl_cpe_api_vrx
  11. PKG_SOURCE:=$(PKG_BASE_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_BUILD_DIR:=$(KERNEL_BUILD_DIR)/drv_dsl_cpe_api-$(PKG_VERSION)
  13. PKG_SOURCE_URL:=http://mirror2.openwrt.org/sources/
  14. PKG_MD5SUM:=b6d9c1e3c5db1bfcd6e81bb2f582cadb
  15. PKG_USE_MIPS16:=0
  16. PKG_MAINTAINER:=John Crispin <blogic@openwrt.org>
  17. include $(INCLUDE_DIR)/package.mk
  18. define KernelPackage/ltq-vdsl-vr9
  19. TITLE:=vdsl driver
  20. SECTION:=sys
  21. SUBMENU:=Network Devices
  22. DEPENDS:=@TARGET_lantiq_xrx200 +kmod-ltq-vdsl-vr9-mei
  23. FILES:=$(PKG_BUILD_DIR)/src/drv_dsl_cpe_api.ko
  24. AUTOLOAD:=$(call AutoLoad,51,drv_dsl_cpe_api)
  25. endef
  26. define Package/ltq-vdsl-vr9/description
  27. This package contains the Lantiq DSL CPE API driver.
  28. Supported Devices:
  29. - VRX200 Family
  30. endef
  31. EXTRA_CFLAGS = -fno-pic -mno-abicalls -mlong-calls -G 0
  32. MAKE_FLAGS += \
  33. SHELL="$(BASH)"
  34. CONFIGURE_ARGS += --enable-kernel-include="$(LINUX_DIR)/include" \
  35. --with-max-device="1" \
  36. --with-lines-per-device="1" \
  37. --with-channels-per-line="1" \
  38. --enable-vrx \
  39. --enable-ifxos \
  40. --enable-ifxos-include="-I$(STAGING_DIR)/usr/include/ifxos" \
  41. --enable-driver-include="-I$(STAGING_DIR)/usr/include/vdsl" \
  42. --enable-add-drv-cflags="-DMODULE -DINCLUDE_DSL_ATM_PTM_INTERFACE_SUPPORT -DDSL_DEBUG_DISABLE" \
  43. --enable-adsl-led=no \
  44. --enable-adsl-mib=no \
  45. --enable-dsl-ceoc=no \
  46. --enable-dsl-bonding=no \
  47. --enable-linux-26 \
  48. --enable-kernelbuild="$(LINUX_DIR)" \
  49. KERNEL_ARCH=mips
  50. CONFIGURE_ARGS += --enable-model=full
  51. #CONFIGURE_ARGS += --enable-model=lite
  52. #CONFIGURE_ARGS += --enable-model=footprint
  53. #CONFIGURE_ARGS += --enable-model=typical
  54. #CONFIGURE_ARGS += --enable-model=debug
  55. define Build/InstallDev
  56. $(INSTALL_DIR) $(1)/usr/include/drv_vdsl_cpe_api
  57. $(CP) $(PKG_BUILD_DIR)/src/include/drv_dsl_cpe*.h $(1)/usr/include/drv_vdsl_cpe_api/
  58. endef
  59. $(eval $(call KernelPackage,ltq-vdsl-vr9))