mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 15:43:49 +02:00
parent
10342bb075
commit
587a7edc59
2 changed files with 45 additions and 1 deletions
44
srcpkgs/virtualbox-ose/patches/013-Makefile.patch
Normal file
44
srcpkgs/virtualbox-ose/patches/013-Makefile.patch
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
diff --git a/src/VBox/HostDrivers/linux/Makefile b/src/VBox/HostDrivers/linux/Makefile
|
||||||
|
index 18466b48..7c7de4e5 100644
|
||||||
|
--- src/VBox/HostDrivers/linux/Makefile
|
||||||
|
+++ src/VBox/HostDrivers/linux/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
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'virtualbox-ose'
|
# Template file for 'virtualbox-ose'
|
||||||
pkgname=virtualbox-ose
|
pkgname=virtualbox-ose
|
||||||
version=6.0.8
|
version=6.0.8
|
||||||
revision=1
|
revision=2
|
||||||
wrksrc="VirtualBox-${version%*a}"
|
wrksrc="VirtualBox-${version%*a}"
|
||||||
short_desc="General-purpose full virtualizer for x86 hardware"
|
short_desc="General-purpose full virtualizer for x86 hardware"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
|
|
Loading…
Add table
Reference in a new issue