VirtualBox

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/Additions/linux/sharedfolders/Makefile.module

    r2981 r3400  
    6363
    6464# module install dir.
    65 ifndef MODULE_DIR
    66  MODULE_DIR_TST := /lib/modules/$(shell uname -r)
    67  ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
    68   MODULE_DIR := $(MODULE_DIR_TST)/misc
    69  else
    70   $(error Unable to find the folder to install the shared folders driver to)
    71  endif
    72 endif # MODULE_DIR unspecified
     65ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),)
     66 ifndef MODULE_DIR
     67  MODULE_DIR_TST := /lib/modules/$(shell uname -r)
     68  ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
     69   MODULE_DIR := $(MODULE_DIR_TST)/misc
     70  else
     71   $(error Unable to find the folder to install the shared folders driver to)
     72  endif
     73 endif # MODULE_DIR unspecified
     74endif
    7375
    7476# 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