summaryrefslogtreecommitdiff
path: root/package/kernel/linux
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-19 21:09:11 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-19 21:09:11 +0000
commit20ba5a01cfa46a3c56dc26b57f2f922afba61a4b (patch)
tree6406ac2368eded08fa0ec54d5ea7a74a4124f6e5 /package/kernel/linux
parent000295f8baf25bed023c651bf48409c5ac4b7724 (diff)
downloadmtk-20170518-20ba5a01cfa46a3c56dc26b57f2f922afba61a4b.zip
mtk-20170518-20ba5a01cfa46a3c56dc26b57f2f922afba61a4b.tar.gz
mtk-20170518-20ba5a01cfa46a3c56dc26b57f2f922afba61a4b.tar.bz2
kernel: modularize dma shared buffer code to eliminate kernel bloat
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48371
Diffstat (limited to 'package/kernel/linux')
-rw-r--r--package/kernel/linux/modules/other.mk10
-rw-r--r--package/kernel/linux/modules/video.mk1
2 files changed, 11 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 62fdc3c..b244fbe 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -130,6 +130,16 @@ endef
$(eval $(call KernelPackage,bluetooth-hci-h4p))
+define KernelPackage/dma-buf
+ TITLE:=DMA shared buffer support
+ HIDDEN:=1
+ KCONFIG:=CONFIG_DMA_SHARED_BUFFER
+ FILES:=$(LINUX_DIR)/drivers/dma-buf/dma-shared-buffer.ko
+ AUTOLOAD:=$(call AutoLoad,20,dma-shared-buffer)
+endef
+$(eval $(call KernelPackage,dma-buf))
+
+
define KernelPackage/eeprom-93cx6
SUBMENU:=$(OTHER_MENU)
TITLE:=EEPROM 93CX6 support
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index 0fcacb2..4226adc 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -121,6 +121,7 @@ endef
define KernelPackage/video-videobuf2
TITLE:=videobuf2 lib
+ DEPENDS:=+kmod-dma-buf
KCONFIG:= \
CONFIG_VIDEOBUF2_CORE \
CONFIG_VIDEOBUF2_MEMOPS \