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