- Timestamp:
- Oct 30, 2017 5:42:36 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r69528 r69529 4206 4206 TEMPLATE_VBOXR0DRV_TOOL = $(NO_SUCH_VARIABLE) 4207 4207 4208 ifndef KERN_DIR 4209 ifndef KERN_VER 4210 KERN_VER=$(notdir $(lastword $(sort $(wildcard /lib/modules/*)))) 4211 endif 4212 ifneq ($(KERN_VER),) 4213 KERN_DIR=/lib/modules/$(KERN_VER)/build 4214 endif 4215 endif 4216 4208 4217 ## 4209 4218 # Using the extra expansion to replace $(module) before eval, thus everything 4210 4219 # else needs escaped dollars. 4211 4220 define VBOX_LINUX_GENERATE_KMOD_TEST 4212 VBOX_TARGET_$(module) = $$(PATH_TARGET)/tst$(module) _mod.run4221 VBOX_TARGET_$(module) = $$(PATH_TARGET)/tst$(module)$(subst /,_,$(KERN_DIR))_mod.run 4213 4222 TESTING += $$(VBOX_TARGET_$(module)) 4214 4223 OTHERS += $$(VBOX_TARGET_$(module)) … … 4220 4229 $(QUIET)$$(MKDIR) -p -- "$$(PATH_TARGET)/tst$(module)_mod" 4221 4230 $(QUIET)$$(CP) -R -- "$$(PATH_STAGE_BIN)/../$$($(module)_INST)" "$$(PATH_TARGET)/tst$(module)_mod/" 4222 + $(QUIET)make KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $$(PATH_TARGET)/tst$(module)_mod clean4223 + $(QUIET)make KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $$(PATH_TARGET)/tst$(module)_mod4231 + $(QUIET)make KBUILD_VERBOSE=$(KBUILD_VERBOSE) KERN_DIR=$$(KERN_DIR) -C $$(PATH_TARGET)/tst$(module)_mod clean 4232 + $(QUIET)make KBUILD_VERBOSE=$(KBUILD_VERBOSE) KERN_DIR=$$(KERN_DIR) -C $$(PATH_TARGET)/tst$(module)_mod 4224 4233 $(QUIET)$$(RM) -Rf -- $$(PATH_TARGET)/tst$(module)_mod 4225 4234 $(QUIET)$$(APPEND) -t "$$@" "done" -
trunk/src/VBox/Additions/linux/Makefile.kmk
r69528 r69529 364 364 && "$(KBUILD_HOST_ARCH)" == "$(KBUILD_TARGET_ARCH)" 365 365 366 $(foreach module, vboxguest-mod vboxsf-mod vboxvideo-mod, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST))) 366 ifneq ($(KERN_DIR),) 367 $(foreach module, vboxguest-mod vboxsf-mod vboxvideo-mod, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST))) 368 endif 367 369 368 370 endif -
trunk/src/VBox/HostDrivers/Makefile.kmk
r69528 r69529 77 77 && "$(KBUILD_HOST_ARCH)" == "$(KBUILD_TARGET_ARCH)" 78 78 79 $(foreach module, vboxdrv-mod VBoxNetFlt-src VBoxNetAdp-src VBoxPci-src, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST))) 79 ifneq ($(KERN_DIR),) 80 $(foreach module, vboxdrv-mod VBoxNetFlt-src VBoxNetAdp-src VBoxPci-src, $(eval $(VBOX_LINUX_GENERATE_KMOD_TEST))) 81 endif 80 82 81 83 endif
Note:
See TracChangeset
for help on using the changeset viewer.