diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-19 21:09:11 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-19 21:09:11 +0000 |
commit | c263294d2814812292e46fbfc04c082ebbfc1812 (patch) | |
tree | cd1b3d4b4e8d8441f832592ca2e46bffe468b186 /package/kernel/linux/modules | |
parent | 086445645cb21404be4a8773be875a33779c6454 (diff) | |
download | master-187ad058-c263294d2814812292e46fbfc04c082ebbfc1812.tar.gz master-187ad058-c263294d2814812292e46fbfc04c082ebbfc1812.tar.bz2 master-187ad058-c263294d2814812292e46fbfc04c082ebbfc1812.zip |
kernel: modularize dma shared buffer code to eliminate kernel bloat
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48371 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel/linux/modules')
-rw-r--r-- | package/kernel/linux/modules/other.mk | 10 | ||||
-rw-r--r-- | package/kernel/linux/modules/video.mk | 1 |
2 files changed, 11 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk index 62fdc3cd69..b244fbe538 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 0fcacb2d89..4226adc33a 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 \ |