VirtualBox

Changeset 2764 in kBuild


Ignore:
Timestamp:
Jan 28, 2015 6:51:46 PM (10 years ago)
Author:
bird
Message:

footer-pass1.kmk: Modified def_pass1_link_common to always calculate the inst and stage variables, so that the debug equivalents can correctly inherit from them even if INSTTYPE is none. (The signed VBoxDrv.pdb scenario.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer-pass1.kmk

    r2762 r2764  
    108108 endif
    109109endif
    110 ifn1of ($(insttype), none both stage)
    111  $(error kBuild: Unknown value '$(insttype)' for '$(target)_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.)
    112 endif
    113110$(target)_1_INSTTYPE := $(insttype)
    114111
    115 if1of ($(insttype), stage both)
    116  local inst := $(strip $(firstdefined \
     112local inst := $(strip $(firstdefined \
    117113        $(target)_INST.$(bld_trg).$(bld_trg_arch).$(bld_type) \
    118114        $(target)_INST.$(bld_trg).$(bld_trg_arch) \
     
    125121        definst \
    126122        ,value))
    127  local stage := $(strip $(firstdefined \
     123local stage := $(strip $(firstdefined \
    128124        $(target)_STAGE.$(bld_trg).$(bld_trg_arch).$(bld_type) \
    129125        $(target)_STAGE.$(bld_trg).$(bld_trg_arch) \
     
    136132        inst \
    137133        ,value))
     134if1of ($(insttype), stage both)
    138135 $(target)_1_STAGE := $(stage)
    139136 if "$(substr $(stage),-1,1)" == "/" # Multicast support requires addprefix/suffix.
     
    144141  $(target)_1_STAGE_TARGET := $(addprefix $(PATH_STAGE)/,$(stage))
    145142 endif
    146 else
    147  local inst :=
    148  local stage :=
     143else if1of ($(insttype), none)
    149144 $(target)_1_STAGE :=
    150145 $(target)_1_STAGE_TARGET :=
     146else
     147 $(error kBuild: Unknown value '$(insttype)' for '$(target)_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.)
    151148endif
    152149INSTARGET_$(target) := $($(target)_1_STAGE_TARGET)
     
    177174        $($(target)_DEBUG_INSTTYPE) \
    178175        $(insttype) )
    179 ifn1of ($(debug_insttype), none both stage)
    180  $(error kBuild: Unknown value '$(debug_insttype)' for '$(target)_DEBUG_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.)
    181 endif
    182176$(target)_1_DEBUG_INSTTYPE := $(debug_insttype)
    183177
     
    208202  $(target)_1_DEBUG_STAGE := ./
    209203 endif
    210 else
     204else if1of ($(debug_insttype), none)
    211205 $(target)_1_DEBUG_STAGE :=
     206else
     207 $(error kBuild: Unknown value '$(debug_insttype)' for '$(target)_DEBUG_INSTTYPE'. Valid values are 'none', 'both' and 'stage'.)
    212208endif
    213209
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