VirtualBox

Changeset 2512 in kBuild


Ignore:
Timestamp:
Jul 25, 2011 11:26:45 AM (14 years ago)
Author:
bird
Message:

header.kmk: Require kmk version 0.1.999 or later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/header.kmk

    r2493 r2512  
    7171 endif
    7272else
    73  if $(KBUILD_VERSION_PATCH) < 5
    74   $(warning kBuild: kmk version mismatch! Expected 0.1.5 or later. Actual version is $(KBUILD_VERSION).)
     73 if $(KBUILD_VERSION_PATCH) < 999
     74  $(error kBuild: kmk version mismatch! Expected 0.1.999 or later. Actual version is $(KBUILD_VERSION).)
    7575 endif
    7676endif
     
    698698
    699699# When copying to the staging area, use hard links to save time and space.
    700 INSTALL_STAGING := $(INSTALL)
    701700ifndef KBUILD_NO_HARD_LINKING
    702  if1of ($(KMK_FEATURES), install-hard-linking)
    703   INSTALL_STAGING := $(INSTALL) --hard-link-files-when-possible
    704  endif
     701 INSTALL_STAGING := $(INSTALL) --hard-link-files-when-possible
     702else
     703 INSTALL_STAGING := $(INSTALL)
    705704endif
    706705
     
    746745# Similar to firstword, except it returns the value of first defined variable.
    747746# @param        $1              list of variables to probe.
    748 if1of ($(KMK_FEATURES), firstdefined)
    749  define FIRST-DEFINED-VAR
    750   local .RETURN := $(strip $(firstdefined $1, value))
    751  endef
    752 else
    753  define FIRST-DEFINED-VAR
    754   if "$1" != ""
    755    local var := $(word 1,$1)
    756    ifdef $(var)
    757     local .RETURN := $(strip $($(var)))
    758    else
    759     local .RETURN := $(evalcall FIRST-DEFINED-VAR, $(wordlist 2,32,$1))
    760    endif
    761   else
    762    local .RETURN :=
    763   endif
    764  endef
    765 endif
     747define FIRST-DEFINED-VAR
     748local .RETURN := $(strip $(firstdefined $1, value))
     749endef
    766750
    767751## Figure out where to put object files.
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