diff options
author | lilac | 2022-11-12 04:44:39 +0800 |
---|---|---|
committer | lilac | 2022-11-12 04:44:39 +0800 |
commit | 8fe336f99c610c54f055285bd60a33907c91dd06 (patch) | |
tree | 4f13736a318a21acd90b6e91d171b4b4936a6d80 /013-support-building-from-dkms.patch | |
parent | cff16b439bf2a1cc438838a73e203af0339b2484 (diff) | |
download | aur-8fe336f99c610c54f055285bd60a33907c91dd06.tar.gz |
[lilac] updated to 97514-1
Diffstat (limited to '013-support-building-from-dkms.patch')
-rw-r--r-- | 013-support-building-from-dkms.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/013-support-building-from-dkms.patch b/013-support-building-from-dkms.patch new file mode 100644 index 000000000000..e2d0ebd67205 --- /dev/null +++ b/013-support-building-from-dkms.patch @@ -0,0 +1,54 @@ +From eb9ded87d9d1a6755f2bb7258641c9c80c54c347 Mon Sep 17 00:00:00 2001 +From: Christian Hesse <mail@eworm.de> +Date: Mon, 17 Oct 2022 16:30:32 +0200 +Subject: [PATCH] support building from dkms + +--- + src/VBox/HostDrivers/linux/Makefile | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/src/VBox/HostDrivers/linux/Makefile b/src/VBox/HostDrivers/linux/Makefile +index badeb4f4..314281f3 100644 +--- a/src/VBox/HostDrivers/linux/Makefile ++++ b/src/VBox/HostDrivers/linux/Makefile +@@ -33,25 +33,25 @@ + # SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0 + # + +-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 + + ifndef SUDO + ifneq ($(shell id -u),0) +@@ -244,5 +244,5 @@ load: unload + fi; \ + done + +-endif # ! KERNELRELEASE ++endif # ! KBUILD_EXTMOD + |