aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/lantiq/ltq-vectoring/Makefile
blob: 335cfaa1d5f8f13a3a0060db49c55fea77f8c36c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
include $(TOPDIR)/rules.mk

PKG_NAME:=ltq-vectoring
PKG_RELEASE:=$(AUTORELEASE)
PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://gitlab.com/prpl-foundation/intel/ppa_drv.git
PKG_SOURCE_DATE:=2019-05-20
PKG_SOURCE_VERSION:=4fa7ac30fcc8ec4eddae9debba5f4230981f469f
PKG_MIRROR_HASH:=444eb823dd9ddd25453976bf7a3230955e4148b8bf92f35f165ecffee32c4555
PKG_LICENSE:=GPL-2.0 BSD-2-Clause

MAKE_PATH:=src/vectoring
PKG_EXTMOD_SUBDIRS:=$(MAKE_PATH)

include $(INCLUDE_DIR)/kernel.mk
include $(INCLUDE_DIR)/package.mk

define KernelPackage/ltq-vectoring
  SECTION:=sys
  CATEGORY:=Kernel modules
  SUBMENU:=Network Devices
  TITLE:=driver for sending vectoring error samples
  DEPENDS:=@TARGET_lantiq_xrx200
  FILES:=$(PKG_BUILD_DIR)/$(MAKE_PATH)/ltq_vectoring.ko
  AUTOLOAD:=$(call AutoLoad,49,ltq_vectoring)
endef

define Package/ltq-vectoring/description
	This driver is responsible for sending error reports to the vectoring
	control entity, which is required for downstream vectoring to work.

	The error reports are generated by the DSL firmware, and passed to this
	driver by the MEI driver.
endef

define KernelPackage/ltq-vectoring-test
  SECTION:=sys
  CATEGORY:=Kernel modules
  SUBMENU:=Network Devices
  TITLE:=driver for testing the vectoring driver
  DEPENDS:=@TARGET_lantiq_xrx200 +kmod-ltq-vectoring
  FILES:=$(PKG_BUILD_DIR)/$(MAKE_PATH)/ltq_vectoring_test.ko
endef

define Package/ltq-vectoring-test/description
	This allows to send dummy data to the vectoring error block callback.
	This is only needed for test and development purposes.
endef

define Build/Configure
endef

define Build/Compile
	+$(KERNEL_MAKE) $(PKG_JOBS) \
		M="$(PKG_BUILD_DIR)/$(MAKE_PATH)" \
		modules
endef

$(eval $(call KernelPackage,ltq-vectoring))
$(eval $(call KernelPackage,ltq-vectoring-test))