VirtualBox

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

Linux modules: unbreak compilation against Linux 2.4

File:
1 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),)
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