diff --git a/Kbuild b/Kbuild new file mode 100644 index 0000000..28581b9 --- /dev/null +++ b/Kbuild @@ -0,0 +1,30 @@ +# SPDX-License-Identifier: GPL-2.0 + +obj-$(CONFIG_DVB_AVAILINK) += avl_bsp.o avl62x1.o avl68x2.o +obj-$(CONFIG_DVB_AVLBSP) += avl_bsp.o +obj-$(CONFIG_DVB_AVL62X1) += avl62x1.o +obj-$(CONFIG_DVB_AVL68X2) += avl68x2.o + +avl_bsp-y += availink/common/avl_bsp_linux.o \ + availink/common/avl_lib.o + +avl62x1-y += availink/avl62x1/avl62x1_top.o \ + availink/avl62x1/sdk_src/avl62x1_api.o \ + availink/avl62x1/sdk_src/avl62x1_lib.o + +avl68x2-y += availink/avl68x2/avl68x2_top.o \ + availink/avl68x2/sdk_src/avl68x2_dvbsx.o \ + availink/avl68x2/sdk_src/avl68x2_dvbtx.o \ + availink/avl68x2/sdk_src/avl68x2_internal.o \ + availink/avl68x2/sdk_src/avl68x2_common.o \ + availink/avl68x2/sdk_src/avl68x2_isdbt.o \ + availink/avl68x2/sdk_src/avl68x2_dvbc.o + +ccflags-y += -I$(KDIR)/drivers/media/dvb-core +ccflags-y += -I$(KDIR)/drivers/media/dvb-frontends +ccflags-y += -I$(KDIR)/drivers/media/usb/dvb-usb +ccflags-y += -I$(KDIR)/drivers/media/tuners +ccflags-y += -I$(src)/availink/common +ccflags-y += -I$(src)/availink/avl62x1/sdk_src +ccflags-y += -I$(src)/availink/avl68x2/sdk_src + diff --git a/Kconfig b/Kconfig new file mode 100644 index 0000000..4139362 --- /dev/null +++ b/Kconfig @@ -0,0 +1,12 @@ +# SPDX-License-Identifier: GPL-2.0 +menu "Support for Amlogic embedded DVB cards" + depends on ARCH_MESON || COMPILE_TEST + +config DVB_AVAILINK + tristate "Availink Demodulator Support" + depends on DVB_CORE + select DVB_AVLBSP + select DVB_AVL62X1 + select DVB_AVL68X2 + help + Select Y or M to add support for Availink demodulator chips