Makefile 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=ltq-vectoring
  3. PKG_RELEASE:=3
  4. PKG_SOURCE_PROTO:=git
  5. PKG_SOURCE_URL:=https://gitlab.com/prpl-foundation/intel/ppa_drv.git
  6. PKG_SOURCE_DATE:=2019-05-20
  7. PKG_SOURCE_VERSION:=4fa7ac30fcc8ec4eddae9debba5f4230981f469f
  8. PKG_MIRROR_HASH:=53ae72a929db598202a4e9c3df43b65fa0778cd165c1ec2ddf9361993795b930
  9. PKG_LICENSE:=GPL-2.0 BSD-2-Clause
  10. MAKE_PATH:=src/vectoring
  11. PKG_EXTMOD_SUBDIRS:=$(MAKE_PATH)
  12. include $(INCLUDE_DIR)/kernel.mk
  13. include $(INCLUDE_DIR)/package.mk
  14. define KernelPackage/ltq-vectoring
  15. SECTION:=sys
  16. CATEGORY:=Kernel modules
  17. SUBMENU:=Network Devices
  18. TITLE:=driver for sending vectoring error samples
  19. DEPENDS:=@(TARGET_lantiq_xrx200||TARGET_lantiq_xrx200_legacy)
  20. FILES:=$(PKG_BUILD_DIR)/$(MAKE_PATH)/ltq_vectoring.ko
  21. AUTOLOAD:=$(call AutoLoad,49,ltq_vectoring)
  22. endef
  23. define Package/ltq-vectoring/description
  24. This driver is responsible for sending error reports to the vectoring
  25. control entity, which is required for downstream vectoring to work.
  26. The error reports are generated by the DSL firmware, and passed to this
  27. driver by the MEI driver.
  28. endef
  29. define KernelPackage/ltq-vectoring-test
  30. SECTION:=sys
  31. CATEGORY:=Kernel modules
  32. SUBMENU:=Network Devices
  33. TITLE:=driver for testing the vectoring driver
  34. DEPENDS:=@(TARGET_lantiq_xrx200||TARGET_lantiq_xrx200_legacy) +kmod-ltq-vectoring
  35. FILES:=$(PKG_BUILD_DIR)/$(MAKE_PATH)/ltq_vectoring_test.ko
  36. endef
  37. define Package/ltq-vectoring-test/description
  38. This allows to send dummy data to the vectoring error block callback.
  39. This is only needed for test and development purposes.
  40. endef
  41. define Build/Configure
  42. endef
  43. define Build/Compile
  44. +$(KERNEL_MAKE) $(PKG_JOBS) \
  45. M="$(PKG_BUILD_DIR)/$(MAKE_PATH)" \
  46. modules
  47. endef
  48. $(eval $(call KernelPackage,ltq-vectoring))
  49. $(eval $(call KernelPackage,ltq-vectoring-test))