VirtualBox

Changeset 3128 in kBuild


Ignore:
Timestamp:
Dec 25, 2017 1:33:14 PM (7 years ago)
Author:
bird
Message:

kBuild/footer-pass2-compiling-targets.kmk: Made PRE_CMDS and POST_CMDS accumulative.

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer-pass2-compiling-targets.kmk

    r3121 r3128  
    564564
    565565# Custom pre-link actions.
    566 local pre_cmds  := $(evalcall def_fn_prop_get_first_defined,PRE_CMDS)
    567 local post_cmds := $(evalcall def_fn_prop_get_first_defined,POST_CMDS)
     566local pre_cmds  := $(evalcall def_fn_prop_get_all_prefixed_priority_last,PRE_CMDS,$(NLTAB))
     567local post_cmds := $(evalcall def_fn_prop_get_all_prefixed_priority_last,POST_CMDS,$(NLTAB))
    568568
    569569# eliminate this guy?
     
    888888
    889889# Custom pre/post-link actions.
    890 local pre_cmds      := $(evalcall def_fn_prop_get_first_defined,PRE_CMDS)
    891 local post_cmds     := $(evalcall def_fn_prop_get_first_defined,POST_CMDS)
     890local pre_cmds      := $(evalcall def_fn_prop_get_all_prefixed_priority_last,PRE_CMDS,$(NLTAB))
     891local post_cmds     := $(evalcall def_fn_prop_get_all_prefixed_priority_last,POST_CMDS,$(NLTAB))
    892892
    893893# eliminate this guy?
  • trunk/kBuild/footer.kmk

    r3121 r3128  
    309309
    310310
     311##
     312# Function for collecting properties, priority ones last.
     313#
     314# @param   1            The property name.
     315# @param   2            The default property name, empty if none.
     316# @note    Implicit parameters: target, bld_trg, bld_trg_arch, bld_trg_cpu, bld_type.
     317# @returns All properties.
     318#
     319define def_fn_prop_get_all_priority_last
     320local .RETURN := \
     321    $($(target)_$(1)) \
     322    $($(target)_$(1).$(bld_type)) \
     323    $($(target)_$(1).$(bld_trg)) \
     324    $($(target)_$(1).$(bld_trg_arch)) \
     325    $($(target)_$(1).$(bld_trg_cpu)) \
     326    $($(target)_$(1).$(bld_trg).$(bld_type)) \
     327    $($(target)_$(1).$(bld_trg).$(bld_trg_arch)) \
     328    $($(target)_$(1).$(bld_trg).$(bld_trg_arch).$(bld_type))
     329endef # def_fn_prop_get_all_priority_last
     330
     331
     332##
     333# Function for collecting properties with prefixing, priority ones last.
     334#
     335# @param   1            The property name.
     336# @param   2            Something like $(NLTAB).
     337# @note    Implicit parameters: target, bld_trg, bld_trg_arch, bld_trg_cpu, bld_type.
     338# @returns All properties.
     339#
     340define def_fn_prop_get_all_prefixed_priority_last
     341local .RETURN := \
     342    $(if $($(target)_$(1)),$(2),)$($(target)_$(1)) \
     343    $(if $($(target)_$(1).$(bld_type)),$(2),)$($(target)_$(1).$(bld_type)) \
     344    $(if $($(target)_$(1).$(bld_trg)),$(2),)$($(target)_$(1).$(bld_trg)) \
     345    $(if $($(target)_$(1).$(bld_trg_arch)),$(2),)$($(target)_$(1).$(bld_trg_arch)) \
     346    $(if $($(target)_$(1).$(bld_trg_cpu)),$(2),)$($(target)_$(1).$(bld_trg_cpu)) \
     347    $(if $($(target)_$(1).$(bld_trg).$(bld_type)),$(2),)$($(target)_$(1).$(bld_trg).$(bld_type)) \
     348    $(if $($(target)_$(1).$(bld_trg).$(bld_trg_arch)),$(2),)$($(target)_$(1).$(bld_trg).$(bld_trg_arch)) \
     349    $(if $($(target)_$(1).$(bld_trg).$(bld_trg_arch).$(bld_type)),$(2),)$($(target)_$(1).$(bld_trg).$(bld_trg_arch).$(bld_type))
     350endef # def_fn_prop_get_all_prefixed_priority_last
     351
     352
    311353#
    312354# The main body.
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