VirtualBox

Changeset 3400 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Jul 3, 2007 8:12:52 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
22601
Message:

Linux modules: don't demand on the MODULE_DIR if we don't install the kernel

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r2981 r3400  
    9090
    9191# module install dir.
    92 ifndef MODULE_DIR
    93  MODULE_DIR_TST := /lib/modules/$(shell uname -r)
    94  ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
    95   MODULE_DIR := $(MODULE_DIR_TST)/misc
    96  else
    97   $(error Unable to find the folder to install the support driver to)
    98  endif
    99 endif # MODULE_DIR unspecified
     92ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),)
     93 ifndef MODULE_DIR
     94  MODULE_DIR_TST := /lib/modules/$(shell uname -r)
     95  ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
     96   MODULE_DIR := $(MODULE_DIR_TST)/misc
     97  else
     98   $(error Unable to find the folder to install the support driver to)
     99  endif
     100 endif # MODULE_DIR unspecified
     101endif
    100102
    101103# guess kernel version (24 or 26)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette