Changeset 3128 in kBuild
- Timestamp:
- Dec 25, 2017 1:33:14 PM (7 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer-pass2-compiling-targets.kmk
r3121 r3128 564 564 565 565 # 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)566 local pre_cmds := $(evalcall def_fn_prop_get_all_prefixed_priority_last,PRE_CMDS,$(NLTAB)) 567 local post_cmds := $(evalcall def_fn_prop_get_all_prefixed_priority_last,POST_CMDS,$(NLTAB)) 568 568 569 569 # eliminate this guy? … … 888 888 889 889 # 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)890 local pre_cmds := $(evalcall def_fn_prop_get_all_prefixed_priority_last,PRE_CMDS,$(NLTAB)) 891 local post_cmds := $(evalcall def_fn_prop_get_all_prefixed_priority_last,POST_CMDS,$(NLTAB)) 892 892 893 893 # eliminate this guy? -
trunk/kBuild/footer.kmk
r3121 r3128 309 309 310 310 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 # 319 define def_fn_prop_get_all_priority_last 320 local .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)) 329 endef # 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 # 340 define def_fn_prop_get_all_prefixed_priority_last 341 local .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)) 350 endef # def_fn_prop_get_all_prefixed_priority_last 351 352 311 353 # 312 354 # The main body.
Note:
See TracChangeset
for help on using the changeset viewer.