From d3d574c13c8e0e845e3ddd1f6ae391b2d7ca9c3d Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Mon, 12 Aug 2019 21:37:16 +0200 Subject: [PATCH] change KBUILD_EXTMOD --- Makefile | 6 +++--- ddbridge/Kbuild | 2 +- dvb-core/Makefile | 2 +- frontends/Makefile | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 23b2c4a..6401060 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ PWD := $(shell pwd) 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=m all: - $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) $(MODDEFS) modules + $(MAKE) -C $(KDIR) KBUILD_EXTMOD=$(PWD) $(MODDEFS) modules $(MAKE) -C apps libdddvb: @@ -18,10 +18,10 @@ libdddvb-clean: $(MAKE) -C lib clean dep: - DIR=`pwd`; (cd $(TOPDIR); make SUBDIRS=$$DIR dep) + DIR=`pwd`; (cd $(TOPDIR); make KBUILD_EXTMOD=$$DIR dep) install: all - $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) modules_install + $(MAKE) -C $(KDIR) KBUILD_EXTMOD=$(PWD) modules_install clean: rm -rf */.*.o.d */*.o */*.ko */*.mod.c */.*.cmd .tmp_versions Module* modules* diff --git a/ddbridge/Kbuild b/ddbridge/Kbuild index e43b288..ee1a8ce 100644 --- a/ddbridge/Kbuild +++ b/ddbridge/Kbuild @@ -8,4 +8,4 @@ obj-$(CONFIG_DVB_OCTONET) += octonet.o EXTRA_CFLAGS += -Idrivers/media/dvb/frontends -Idrivers/media/dvb-frontends EXTRA_CFLAGS += -Idrivers/media/common/tuners -NOSTDINC_FLAGS += -I$(SUBDIRS)/frontends -I$(SUBDIRS)/include -I$(SUBDIRS)/dvb-core \ No newline at end of file +NOSTDINC_FLAGS += -I$(KBUILD_EXTMOD)/frontends -I$(KBUILD_EXTMOD)/include -I$(KBUILD_EXTMOD)/dvb-core \ No newline at end of file diff --git a/dvb-core/Makefile b/dvb-core/Makefile index f286aa9..fdcdd47 100644 --- a/dvb-core/Makefile +++ b/dvb-core/Makefile @@ -9,4 +9,4 @@ dvb-core-objs := dvbdev.o dmxdev.o dvb_demux.o dvb_filter.o \ obj-$(CONFIG_DVB_CORE) += dvb-core.o EXTRA_CFLAGS += -DCONFIG_DVB_DYNAMIC_MINORS -DCONFIG_DVB_NET -NOSTDINC_FLAGS += -I$(SUBDIRS)/include -I$(SUBDIRS)/dvb-core +NOSTDINC_FLAGS += -I$(KBUILD_EXTMOD)/include -I$(KBUILD_EXTMOD)/dvb-core diff --git a/frontends/Makefile b/frontends/Makefile index 32f569f..49b8417 100644 --- a/frontends/Makefile +++ b/frontends/Makefile @@ -16,7 +16,7 @@ EXTRA_CFLAGS += -DCONFIG_DVB_LNBH25 EXTRA_CFLAGS += -DCONFIG_DVB_MXL5XX EXTRA_CFLAGS += -DCONFIG_DVB_CXD2099 EXTRA_CFLAGS += -DDBVALS -NOSTDINC_FLAGS += -I$(SUBDIRS)/include -I$(SUBDIRS)/dvb-core +NOSTDINC_FLAGS += -I$(KBUILD_EXTMOD)/include -I$(KBUILD_EXTMOD)/dvb-core drxk-objs := drxk_hard.o obj-$(CONFIG_DVB_DRXK) += drxk.o