VirtualBox

Changeset 6857 in vbox


Ignore:
Timestamp:
Feb 7, 2008 8:15:42 PM (17 years ago)
Author:
vboxsync
Message:

Linux modules: unbreak compilation against Linux 2.4

Location:
trunk/src/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/linux/module/Makefile.module

    r6574 r6857  
    9393
    9494 # guess kernel version (24 or 26)
    95  ifeq ($(shell if grep '"2.4.' $(KERN_INCL)/linux/version.h > /dev/null; then echo yes; fi),yes)
    96  KERN_VERSION := 24
     95 ifeq ($(shell if grep '"2\.4\.' $(KERN_INCL)/linux/version.h > /dev/null; then echo yes; fi),yes)
     96  KERN_VERSION := 24
    9797 else
    98  KERN_VERSION := 26
     98  KERN_VERSION := 26
    9999 endif
    100  # KERN_VERSION := $(if $(wildcard $(KERN_DIR)/Rules.make),24,26)
    101100
    102101else # neq($(KERNELRELEASE),)
    103102
    104103 #
    105  # building from Linux-2.6-kbuild (make -C <kernel_directory> M=`pwd`)
     104 # building from kbuild (make -C <kernel_directory> M=`pwd`)
    106105 #
    107106
    108  KERN_VERSION := 26
     107 # guess kernel version (24 or 26)
     108 ifeq ($(shell if grep '"2\.4\.' $(PWD)/include/linux/version.h > /dev/null; then echo yes; fi),yes)
     109  KERN_VERSION := 24
     110 else
     111  KERN_VERSION := 26
     112 endif
    109113
    110114endif # neq($(KERNELRELEASE),)
  • trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r6592 r6857  
    9191
    9292 # guess kernel version (24 or 26)
    93  ifeq ($(shell if grep '"2.4.' $(KERN_INCL)/linux/version.h > /dev/null; then echo yes; fi),yes)
    94  KERN_VERSION := 24
     93 ifeq ($(shell if grep '"2\.4\.' $(KERN_INCL)/linux/version.h > /dev/null; then echo yes; fi),yes)
     94  KERN_VERSION := 24
    9595 else
    96  KERN_VERSION := 26
    97  endif
    98  # KERN_VERSION := $(if $(wildcard $(KERN_DIR)/Rules.make),24,26)
     96  KERN_VERSION := 26
     97 endif
    9998
    10099else # neq($(KERNELRELEASE),)
    101100
    102101 #
    103  # building from Linux-2.6-kbuild (make -C <kernel_directory> M=`pwd`)
    104  #
    105 
    106  KERN_VERSION := 26
     102 # building from kbuild (make -C <kernel_directory> M=`pwd`)
     103 #
     104
     105 # guess kernel version (24 or 26)
     106 ifeq ($(shell if grep '"2\.4\.' $(PWD)/include/linux/version.h > /dev/null; then echo yes; fi),yes)
     107  KERN_VERSION := 24
     108 else
     109  KERN_VERSION := 26
     110 endif
    107111
    108112endif # neq($(KERNELRELEASE),)
  • trunk/src/VBox/HostDrivers/Support/linux/Makefile

    r6574 r6857  
    168168
    169169 #
    170  # building from Linux-2.6-kbuild (make -C <kernel_directory> M=`pwd`)
    171  #
    172 
    173  KERN_VERSION := 26
     170 # building from kbuild (make -C <kernel_directory> M=`pwd`)
     171 #
     172
     173 # guess kernel version (24 or 26)
     174 KERN_VERSION := $(if $(wildcard $(PWD)/Rules.make),24,26)
    174175
    175176endif # neq($(KERNELRELEASE),)
Note: See TracChangeset for help on using the changeset viewer.

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