summarylogtreecommitdiffstats
path: root/013-Makefile.patch
diff options
context:
space:
mode:
authorDaniel Bermond2019-05-18 17:24:50 +0000
committerDaniel Bermond2019-05-18 17:24:50 +0000
commit1366569059ba2309433c123d6cbf56714969fe37 (patch)
treefc32ab07ec12cf35157216615205d2e8b65d0b5d /013-Makefile.patch
parent2634e537bb776db87a187e88da99e2b403951bf6 (diff)
downloadaur-1366569059ba2309433c123d6cbf56714969fe37.tar.gz
Updated to version 6.0.8
Diffstat (limited to '013-Makefile.patch')
-rw-r--r--013-Makefile.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/013-Makefile.patch b/013-Makefile.patch
new file mode 100644
index 00000000000..351f2f36a3f
--- /dev/null
+++ b/013-Makefile.patch
@@ -0,0 +1,44 @@
+diff --git a/src/vboxhost/Makefile b/src/vboxhost/Makefile
+index 18466b48..7c7de4e5 100644
+--- a/src/vboxhost/Makefile
++++ b/src/vboxhost/Makefile
+@@ -23,25 +23,25 @@
+ # terms and conditions of either the GPL or the CDDL or both.
+ #
+
+-ifneq ($(KERNELRELEASE),)
++ifneq ($(KBUILD_EXTMOD),)
+
+-# Building from kBuild (make -C <kernel_directory> M=`pwd`),
+-# or inside a kernel source tree.
++# Building from kBuild (make -C <kernel_directory> M=`pwd`).
++# KBUILD_EXTMOD is set to $(M) in this case.
+
+ obj-m = vboxdrv/
+-ifneq ($(wildcard $(CURDIR)/vboxnetflt/Makefile),)
++ifneq ($(wildcard $(KBUILD_EXTMOD)/vboxnetflt/Makefile),)
+ obj-m += vboxnetflt/
+ endif
+-ifneq ($(wildcard $(CURDIR)/vboxnetadp/Makefile),)
++ifneq ($(wildcard $(KBUILD_EXTMOD)/vboxnetadp/Makefile),)
+ obj-m += vboxnetadp/
+ endif
+-ifneq ($(wildcard $(CURDIR)/vboxpci/Makefile),)
++ifneq ($(wildcard $(KBUILD_EXTMOD)/vboxpci/Makefile),)
+ obj-m += vboxpci/
+ endif
+
+-else # ! KERNELRELEASE
++else # ! KBUILD_EXTMOD
+
+-# convenience Makefile without KERNELRELEASE
++# convenience Makefile without KBUILD_EXTMOD
+
+ KBUILD_VERBOSE ?=
+ KERN_VER ?= $(shell uname -r)
+@@ -146,4 +146,4 @@ load: unload
+ fi; \
+ done
+
+-endif # ! KERNELRELEASE
++endif # ! KBUILD_EXTMOD