VirtualBox

Changeset 70082 in vbox


Ignore:
Timestamp:
Dec 12, 2017 3:53:03 PM (7 years ago)
Author:
vboxsync
Message:

Config/KERN_VER/KERN_DIR: Use simple assignment to avoid unnecessary $(shell'ing).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r70081 r70082  
    42164216 ifndef KERN_DIR
    42174217  ifndef KERN_VER
    4218    KERN_VER=$(patsubst /lib/modules/%/build/.config,%,$(firstword $(shell LC_ALL=C ls -t /lib/modules/*/build/.config 2>/dev/null)))
     4218   KERN_VER := $(patsubst /lib/modules/%/build/.config,%,$(firstword $(shell LC_ALL=C ls -t /lib/modules/*/build/.config 2>/dev/null)))
    42194219  endif
    42204220  ifeq ($(KERN_VER),)
    4221    KERN_VER=$(shell uname -r)
    4222   endif
    4223   KERN_DIR=/lib/modules/$(KERN_VER)/build
    4224  endif
    4225 
    4226 ##
    4227 # Using the extra expansion to replace $(module) before eval, thus everything
    4228 # else needs escaped dollars.
     4221   KERN_VER := $(shell uname -r)
     4222  endif
     4223  KERN_DIR  := /lib/modules/$(KERN_VER)/build
     4224 endif
     4225
     4226 ##
     4227 # Using the extra expansion to replace $(module) before eval, thus everything
     4228 # else needs escaped dollars.
    42294229 define VBOX_LINUX_GENERATE_KMOD_TEST
    42304230  VBOX_TARGET_$(module) = $$(PATH_TARGET)/tst$(module)$(subst /,_,$(KERN_DIR))_mod.run
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