nixpkgs/pkgs/applications/virtualization/virtualbox/guest-additions/fix_kerndir.patch

39 lines
1.6 KiB
Diff

diff --git a/vboxsf/Makefile.include.header b/vboxsf/Makefile.include.header
index 8df1eb4d25..5a3e5604e7 100644
--- a/vboxsf/Makefile.include.header
+++ b/vboxsf/Makefile.include.header
@@ -117,7 +117,6 @@ else # neq($(KERNELRELEASE),)
endif # neq($(KERNELRELEASE),)
# Kernel build folder
-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> and run Make again)
diff --git a/vboxguest/Makefile.include.header b/vboxguest/Makefile.include.header
index 8df1eb4d25..5a3e5604e7 100644
--- a/vboxguest/Makefile.include.header
+++ b/vboxguest/Makefile.include.header
@@ -117,7 +117,6 @@ else # neq($(KERNELRELEASE),)
endif # neq($(KERNELRELEASE),)
# Kernel build folder
-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> and run Make again)
diff --git a/vboxvideo/Makefile.include.header b/vboxvideo/Makefile.include.header
index 8df1eb4d25..5a3e5604e7 100644
--- a/vboxvideo/Makefile.include.header
+++ b/vboxvideo/Makefile.include.header
@@ -117,7 +117,6 @@ else # neq($(KERNELRELEASE),)
endif # neq($(KERNELRELEASE),)
# Kernel build folder
-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> and run Make again)