VirtualBox

Changeset 2551 in kBuild


Ignore:
Timestamp:
Nov 9, 2011 1:28:02 PM (13 years ago)
Author:
bird
Message:

footer: Allow INSTTYPE=none and DEBUG_INSTTYPE!=none.

Location:
trunk/kBuild
Files:
2 edited

Legend:

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

    r2523 r2551  
    181181
    182182if1of ($(debug_insttype), stage both)
    183  ifn1of ($(insttype), stage both)
    184   $(error kBuild: DEBUG_INSTTYPE=$(debug_insttype) and INSTTYPE=$(insttype) for target '$(target)' are not compatible)
    185  endif
    186183 local debug_stage := $(firstdefined \
    187184        $(target)_DEBUG_STAGE.$(bld_trg).$(bld_trg_arch).$(bld_type) \
     
    214211
    215212if1of ($(debug_insttype), both)
    216  ifn1of ($(insttype), both)
    217   $(error kBuild: DEBUG_INSTTYPE=$(debug_insttype) and INSTTYPE=$(insttype) for target '$(target)' are not compatible)
    218  endif
    219213 local debug_inst := $(firstdefined \
    220214        $(target)_DEBUG_INST.$(bld_trg).$(bld_trg_arch).$(bld_type) \
  • trunk/kBuild/footer-pass2-compiling-targets.kmk

    r2537 r2551  
    348348# @param        $(target_type_mode) The default file mode implied by the target type.
    349349define def_target_install_only
    350 ifneq ($($(target)_1_INSTTYPE),none)
     350if1of ($($(target)_1_INSTTYPE) $($(target)_1_DEBUG_INSTTYPE), both stage)
     351 # Determin common variables.
    351352 local mode := $(firstword \
    352353        $($(target)_MODE.$(bld_trg).$(bld_trg_arch).$(bld_type)) \
     
    376377 local pre_install_cmds  := $(evalcall def_fn_prop_get_first_defined,PRE_INST_CMDS)
    377378 local post_install_cmds := $(evalcall def_fn_prop_get_first_defined,POST_INST_CMDS)
    378 
     379endif
     380
     381ifneq ($($(target)_1_INSTTYPE),none)
    379382 # Generate the rules
    380383 ifeq ($($(target)_1_INSTTYPE),both)
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