kmod-dma-buf: fix build with external kernel
authorStijn Tintel <stijn@linux-ipv6.be>
Wed, 12 Dec 2018 20:00:44 +0000 (22:00 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 18 Dec 2018 16:48:26 +0000 (17:48 +0100)
commita934554b0af4127a9b13a57963bbe5654dd4a934
tree09b88a149f8c0c3b2b39d15d874f402e4b2d8f95
parentc2a13673c95431441ec933bf14d641944a77aa95
kmod-dma-buf: fix build with external kernel

In hack/904-debloat_dma_buf.patch, DMA_SHARED_BUFFER is changed from
bool to tristate. As this patch is not applied to external kernel
sources, build fails if kmod-dma-buf is enabled. Fix this by only
including the module file if CONFIG_EXTERNAL_KERNEL_TREE and
CONFIG_KERNEL_GIT_CLONE_URI are not enabled.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
(backported from bcb859235328c9de0a2e0966785f5ca61419290c)
package/kernel/linux/modules/other.mk