2017-07-26 02:44:56 +02:00
|
|
|
kernelver ?= $(shell uname -r)
|
2022-10-25 19:19:29 +02:00
|
|
|
MDIR ?= /lib/modules/$(kernelver)
|
|
|
|
KDIR ?= $(MDIR)/build
|
2015-08-05 17:22:42 +02:00
|
|
|
PWD := $(shell pwd)
|
|
|
|
|
2020-08-29 15:32:42 +02:00
|
|
|
MODDEFS := CONFIG_DVB_CORE=m CONFIG_DVB_DDBRIDGE=m CONFIG_DVB_DRXK=m CONFIG_DVB_TDA18271C2DD=m CONFIG_DVB_CXD2099=m CONFIG_DVB_LNBP21=m CONFIG_DVB_STV090x=m CONFIG_DVB_STV6110x=m CONFIG_DVB_STV0367=m CONFIG_DVB_TDA18212=m CONFIG_DVB_STV0367DD=m CONFIG_DVB_TDA18212DD=m CONFIG_DVB_OCTONET=m CONFIG_DVB_CXD2843=m CONFIG_DVB_STV0910=m CONFIG_DVB_STV6111=m CONFIG_DVB_LNBH25=m CONFIG_DVB_MXL5XX=m CONFIG_DVB_NET=y DDDVB=y
|
|
|
|
|
|
|
|
KBUILD_EXTMOD = $(PWD)
|
|
|
|
|
2022-02-12 15:07:59 +01:00
|
|
|
ifeq ($(KERNEL_DVB_CORE),y)
|
|
|
|
DDDVB_INC = "--include=$(KBUILD_EXTMOD)/include/dd_compat.h -I$(KBUILD_EXTMOD)/frontends -I$(KBUILD_EXTMOD) -DKERNEL_DVB_CORE=y"
|
|
|
|
else
|
|
|
|
DDDVB_INC = "--include=$(KBUILD_EXTMOD)/include/dd_compat.h -I$(KBUILD_EXTMOD)/frontends -I$(KBUILD_EXTMOD)/include -I$(KBUILD_EXTMOD)/include/linux"
|
|
|
|
endif
|
2018-05-02 15:35:28 +02:00
|
|
|
|
2015-08-05 17:22:42 +02:00
|
|
|
all:
|
2020-08-29 15:32:42 +02:00
|
|
|
$(MAKE) -C $(KDIR) KBUILD_EXTMOD=$(PWD) $(MODDEFS) modules NOSTDINC_FLAGS=$(DDDVB_INC)
|
2015-08-05 17:22:42 +02:00
|
|
|
$(MAKE) -C apps
|
|
|
|
|
2018-09-17 13:45:26 +02:00
|
|
|
libdddvb:
|
|
|
|
$(MAKE) -C lib
|
|
|
|
|
|
|
|
libdddvb-install:
|
|
|
|
$(MAKE) -C lib install
|
|
|
|
|
2019-07-24 12:55:31 +02:00
|
|
|
libdddvb-clean:
|
|
|
|
$(MAKE) -C lib clean
|
|
|
|
|
2015-08-05 17:22:42 +02:00
|
|
|
dep:
|
2019-08-12 21:37:16 +02:00
|
|
|
DIR=`pwd`; (cd $(TOPDIR); make KBUILD_EXTMOD=$$DIR dep)
|
2015-08-05 17:22:42 +02:00
|
|
|
|
|
|
|
install: all
|
2022-10-28 15:18:46 +02:00
|
|
|
$(MAKE) -C $(KDIR) KBUILD_EXTMOD=$(PWD) modules_install
|
2021-08-20 14:24:29 +02:00
|
|
|
depmod $(kernelver)
|
2015-08-05 17:22:42 +02:00
|
|
|
|
|
|
|
clean:
|
2017-07-26 02:42:35 +02:00
|
|
|
rm -rf */.*.o.d */*.o */*.ko */*.mod.c */.*.cmd .tmp_versions Module* modules*
|
2022-06-07 21:22:21 +02:00
|
|
|
$(MAKE) -C apps clean
|
2015-08-05 17:22:42 +02:00
|
|
|
|
|
|
|
|