Created
December 11, 2018 11:29
-
-
Save stintel/f8ed45936861b56a0dcc03ade7c06339 to your computer and use it in GitHub Desktop.
stdin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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