]> git.pld-linux.org Git - packages/VirtualBox.git/blobdiff - VirtualBox-kerndir.patch
new patch: don't override KERN_DIR if already defined
[packages/VirtualBox.git] / VirtualBox-kerndir.patch
diff --git a/VirtualBox-kerndir.patch b/VirtualBox-kerndir.patch
new file mode 100644 (file)
index 0000000..2f6a345
--- /dev/null
@@ -0,0 +1,11 @@
+--- VirtualBox-5.2.2/src/VBox/Installer/linux/Makefile.include.header.orig     2017-11-25 14:42:43.336204931 +0100
++++ VirtualBox-5.2.2/src/VBox/Installer/linux/Makefile.include.header  2017-11-25 14:43:00.666146939 +0100
+@@ -136,7 +136,7 @@
+ endif # neq($(KERNELRELEASE),)
+ # Kernel build folder
+-KERN_DIR := /lib/modules/$(KERN_VER)/build
++KERN_DIR ?= /lib/modules/$(KERN_VER)/build
+ ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
+  $(error Error: unable to find the headers of the Linux kernel to build against. \
+           Specify KERN_VER=<version> (currently $(KERN_VER)) and run Make again)
This page took 0.026888 seconds and 4 git commands to generate.