Changeset 78446 in vbox
- Timestamp:
- May 8, 2019 10:57:05 AM (6 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/Makefile
r77956 r78446 15 15 # 16 16 17 ifneq ($(K BUILD_EXTMOD),)17 ifneq ($(KERNELRELEASE),) 18 18 19 # Building from kBuild (make -C <kernel_directory> M=`pwd`) .20 # KBUILD_EXTMOD is set to $(M) in this case.19 # Building from kBuild (make -C <kernel_directory> M=`pwd`) 20 # or inside a kernel source tree. 21 21 22 22 obj-m = vboxguest/ vboxsf/ vboxvideo/ 23 23 24 else # ! K BUILD_EXTMOD24 else # ! KERNELRELEASE 25 25 26 26 KBUILD_VERBOSE = … … 108 108 .PHONY: vboxguest vboxsf vboxvideo all install clean check load 109 109 110 endif # ! K BUILD_EXTMOD110 endif # ! KERNELRELEASE -
trunk/src/VBox/HostDrivers/linux/Makefile
r76553 r78446 24 24 # 25 25 26 ifneq ($(K BUILD_EXTMOD),)26 ifneq ($(KERNELRELEASE),) 27 27 28 # Building from kBuild (make -C <kernel_directory> M=`pwd`) .29 # KBUILD_EXTMOD is set to $(M) in this case.28 # Building from kBuild (make -C <kernel_directory> M=`pwd`), 29 # or inside a kernel source tree. 30 30 31 31 obj-m = vboxdrv/ 32 ifneq ($(wildcard $( KBUILD_EXTMOD)/vboxnetflt/Makefile),)32 ifneq ($(wildcard $(CURDIR)/vboxnetflt/Makefile),) 33 33 obj-m += vboxnetflt/ 34 34 endif 35 ifneq ($(wildcard $( KBUILD_EXTMOD)/vboxnetadp/Makefile),)35 ifneq ($(wildcard $(CURDIR)/vboxnetadp/Makefile),) 36 36 obj-m += vboxnetadp/ 37 37 endif 38 ifneq ($(wildcard $( KBUILD_EXTMOD)/vboxpci/Makefile),)38 ifneq ($(wildcard $(CURDIR)/vboxpci/Makefile),) 39 39 obj-m += vboxpci/ 40 40 endif 41 41 42 else # ! K BUILD_EXTMOD42 else # ! KERNELRELEASE 43 43 44 # convenience Makefile without K BUILD_EXTMOD44 # convenience Makefile without KERNELRELEASE 45 45 46 46 KBUILD_VERBOSE ?= … … 147 147 done 148 148 149 endif # ! K BUILD_EXTMOD149 endif # ! KERNELRELEASE -
trunk/src/VBox/Installer/linux/Makefile-header.gmk
r77740 r78446 188 188 INSTALL_MOD_DIR ?= misc 189 189 MODULE_DIR := $(INSTALL_MOD_PATH)/lib/modules/$(KERN_VER)/$(INSTALL_MOD_DIR) 190 191 #192 # The KBUILD_EXTMOD variable is used by 2.6.6 and later when build external193 # modules (see https://lwn.net/Articles/79984/). It will be set to SUBDIRS194 # or M by the linux kernel makefile. We fake it here for older kernels.195 #196 ## @todo Drop this KBUILD_EXTMOD glue once it has been removed from all our makefiles (see sharedfolders).197 ifndef CURDIR # for make < v3.79198 CURDIR := $(shell pwd)199 endif200 ifndef KBUILD_EXTMOD201 KBUILD_EXTMOD := $(CURDIR)202 endif203 204 190 205 191 # For VBOX_GCC_CHECK_CC … … 240 226 $(warning dbg: KERN_VERSION = $(KERN_VERSION)) 241 227 $(warning dbg: MODULE_DIR = $(MODULE_DIR)) 242 $(warning dbg: KBUILD_EXTMOD = $(KBUILD_EXTMOD))243 228 $(warning dbg: VBOX_MODULE_SRC_DIR = $(VBOX_MODULE_SRC_DIR)) 244 229 endif
Note:
See TracChangeset
for help on using the changeset viewer.