Ignore:
Timestamp:
Aug 21, 2020, 1:43:33 AM (5 years ago)
Author:
bird
Message:

kmk: Fixed mixup from r2433 where _TARGET_TOOL was extended but the builtin source handling functions wasn't. For instance, using _TOOLS, _TOOLS.amd64 and _TOOLS.x86, we would end up with the first when compiling and one of the latter two when linking. Also replaced a few legacy BUILD_PLATFORM* with KBUILD_HOST* variable names in the footers.

File:
1 edited

Legend:

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

    r3300 r3415  
    5050
    5151local bld_type    := $(firstword $($(target)_BLD_TYPE)     $(KBUILD_TYPE))
    52 local bld_trg     := $(firstword $($(target)_BLD_TRG)      $(BUILD_$(bld_trg_base_var)))
    53 local bld_trg_arch:= $(firstword $($(target)_BLD_TRG_ARCH) $(BUILD_$(bld_trg_base_var)_ARCH))
    54 local bld_trg_cpu := $(firstword $($(target)_BLD_TRG_CPU)  $(BUILD_$(bld_trg_base_var)_CPU))
     52local bld_trg     := $(firstword $($(target)_BLD_TRG)      $(KBUILD_$(bld_trg_base_var)))
     53local bld_trg_arch:= $(firstword $($(target)_BLD_TRG_ARCH) $(KBUILD_$(bld_trg_base_var)_ARCH))
     54local bld_trg_cpu := $(firstword $($(target)_BLD_TRG_CPU)  $(KBUILD_$(bld_trg_base_var)_CPU))
    5555
    5656local tool        := $(call _TARGET_TOOL,$(target),$(tool_prefix))
     
    254254definst := $(INST_BIN)
    255255tool_prefix := LD
    256 bld_trg_base_var := PLATFORM
     256bld_trg_base_var := HOST
    257257$(foreach target, $(_ALL_BLDPROGS), \
    258258        $(evalvalctx def_pass1_bldprog))
Note: See TracChangeset for help on using the changeset viewer.