Skip to content

Instantly share code, notes, and snippets.

@stintel
Created December 11, 2018 11:29
Show Gist options
  • Save stintel/f8ed45936861b56a0dcc03ade7c06339 to your computer and use it in GitHub Desktop.
Save stintel/f8ed45936861b56a0dcc03ade7c06339 to your computer and use it in GitHub Desktop.
stdin
diff --git a/package/kernel/linux/modules/other.mk b/package/kernel/linux/modules/other.mk
index 3269459397..958e818da1 100644
--- a/package/kernel/linux/modules/other.mk
+++ b/package/kernel/linux/modules/other.mk
@@ -129,7 +129,11 @@ 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
+ ifeq ($(strip $(CONFIG_EXTERNAL_KERNEL_TREE)),"")
+ ifeq ($(strip $(CONFIG_KERNEL_GIT_CLONE_URI)),"")
+ FILES:=$(LINUX_DIR)/drivers/dma-buf/dma-shared-buffer.ko
+ endif
+ endif
AUTOLOAD:=$(call AutoLoad,20,dma-shared-buffer)
endef
$(eval $(call KernelPackage,dma-buf))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment