Changeset 5234 in vbox
- Timestamp:
- Oct 11, 2007 10:38:58 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/Makefile
r5227 r5234 64 64 # kernel base directory 65 65 ifndef KERN_DIR 66 # build for the current kernel, version check 66 67 KERN_DIR := /lib/modules/$(shell uname -r)/build 67 68 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes) … … 72 73 $(warning Warning: using /usr/src/linux as the source directory of your Linux kernel. If this is not correct, specify KERN_DIR=<directory> and run Make again.) 73 74 endif 75 # check if versions match -- works only for later 2.6 kernels 76 VBOX_KERN_VER := $(shell $(MAKE) -sC $(KERN_DIR) kernelrelease 2> /dev/null || true) 77 ifneq ($(VBOX_KERN_VER),) 78 ifneq ($(VBOX_KERN_VER),$(shell uname -r)) 79 $(error Error: /usr/src/linux (version $(VBOX_KERN_VER)) does not match the current kernel (version $(shell uname -r))) 80 endif 81 endif 74 82 else 83 # build for a dedicated kernel, no version check 75 84 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes) 76 85 $(error Error: KERN_DIR does not point to a directory.) … … 86 95 endif 87 96 88 # module install dir .97 # module install dir, only for current kernel 89 98 ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),) 90 99 ifndef MODULE_DIR
Note:
See TracChangeset
for help on using the changeset viewer.