VirtualBox

Changeset 77504 in vbox


Ignore:
Timestamp:
Feb 28, 2019 12:37:43 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129100
Message:

Add/linux: Workaround for GNU make that does not sport MAKEFILE_LIST (< 3.80). bugref:9172

Location:
trunk/src/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Additions/common/VBoxGuest/linux/Makefile

    r77404 r77504  
    2525#
    2626
    27 # Find the directory of this makefile.
    28 VBOXGUEST_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
    29 
    3027# Linux kbuild sets this to our source directory if we are called from there
    3128obj ?= $(CURDIR)
    3229include $(obj)/Makefile-header.gmk
     30VBOXGUEST_DIR = $(VBOX_MODULE_SRC_DIR)
    3331
    3432VBOXMOD_NAME = vboxguest
  • TabularUnified trunk/src/VBox/Additions/linux/drm/Makefile.module.kms

    r77415 r77504  
    1818#
    1919
    20 # Find the directory of this makefile.
    21 VBOXDRM_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
    22 
    2320# Linux kbuild sets this to our source directory if we are called from there
    2421obj ?= $(CURDIR)
    2522include $(obj)/Makefile-header.gmk
     23VBOXDRM_DIR = $(VBOX_MODULE_SRC_DIR)
    2624
    2725# We want to build on Linux 3.11 and later and on all EL 7 kernels.
  • TabularUnified trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module

    r77404 r77504  
    1818#
    1919
    20 # Find the directory of this makefile.
    21 VBOXSF_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
    22 
    2320# Linux kbuild sets this to our source directory if we are called from there
    2421obj ?= $(CURDIR)
    2522include $(obj)/Makefile-header.gmk
     23VBOXSF_DIR = $(VBOX_MODULE_SRC_DIR)
    2624
    2725VBOXMOD_NAME = vboxsf
  • TabularUnified trunk/src/VBox/Installer/linux/Makefile-header.gmk

    r77404 r77504  
    174174#
    175175## @todo Drop this KBUILD_EXTMOD glue once it has been removed from all our makefiles (see sharedfolders).
     176ifndef CURDIR # for make < v3.79
     177 CURDIR := $(shell pwd)
     178endif
    176179ifndef KBUILD_EXTMOD
    177  ifndef CURDIR # for make < v3.79
    178   CURDIR := $(shell pwd)
    179  endif
    180180 KBUILD_EXTMOD := $(CURDIR)
    181181endif
     
    199199    rm -f /tmp/$(VBOX_DOLLAR)$(VBOX_DOLLAR).check.c; )
    200200
     201#
     202# Guess the module directory ASSUMING that this file is located in that directory.
     203# Note! The special MAKEFILE_LIST variable was introduced in GNU make 3.80.
     204#
     205ifdef MAKEFILE_LIST
     206 VBOX_MODULE_SRC_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
     207else
     208 VBOX_MODULE_SRC_DIR := $(CURDIR)/
     209endif
     210
    201211
    202212# debug - show guesses.
     
    210220$(warning dbg: MODULE_DIR       = $(MODULE_DIR))
    211221$(warning dbg: KBUILD_EXTMOD    = $(KBUILD_EXTMOD))
    212 $(warning dbg: VBOX_ROOT_DIR    = $(VBOX_ROOT_DIR))
    213  endif
    214 endif
    215 
     222$(warning dbg: VBOX_MODULE_SRC_DIR = $(VBOX_MODULE_SRC_DIR))
     223 endif
     224endif
     225
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