Skip to content

Commit

Permalink
add Kconfig and Kbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
chewitt committed Jan 15, 2022
1 parent 3cd3a03 commit da78267
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
30 changes: 30 additions & 0 deletions Kbuild
Original file line number Diff line number Diff line change
@@ -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

12 changes: 12 additions & 0 deletions Kconfig
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit da78267

Please sign in to comment.