Ignore:
Timestamp:
Aug 2, 2011, 2:07:35 PM (14 years ago)
Author:
bird
Message:

header.kmk,footer*.kmk: Made sure that paths are absolute (KB_FN_ASSERT_ABSPATH w/ KBUILD_INTERNAL_STRICT=1). This may break dependencies on installed files.

File:
1 edited

Legend:

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

    r2523 r2531  
    134134# @param    $($(target)_CMDS_PREV_) The link commands from the previous run.
    135135define def_link_rule
     136$$(call KB_FN_ASSERT_ABSPATH,out)
    136137ifndef NO_LINK_CMDS_DEPS
    137138$(out): .MUST_MAKE = $$(comp-cmds-ex $$($(target)_CMDS_PREV_),$$(commands $$@),FORCE)
     
    170171#                      pre_install_cmds, post_install_cmds
    171172define def_link_install_rule
     173$$(call KB_FN_ASSERT_ABSPATH,$(target)_1_INST_TARGET)
    172174$($(target)_1_INST_TARGET): $(out) | $$$$(dir $$$$@)
    173175        %$$(call MSG_INST_TRG,$(target),$(out),$$@)
     
    184186#                      pre_install_cmds, post_install_cmds
    185187define def_link_stage_rule
     188$$(call KB_FN_ASSERT_ABSPATH,$(target)_1_STAGE_TARGET)
    186189$($(target)_1_STAGE_TARGET): $(out) | $$$$(dir $$$$@)
    187190        %$$(call MSG_INST_TRG,$(target),$(out),$$@)
     
    388391define def_link_install_debug_dir_rule
    389392local dir := $(debug_inst_path)/$(debug_inst)$(debug_dir)
     393$$(call KB_FN_ASSERT_ABSPATH,dir)
    390394$$(dir): | $$$$(dir $$$$(patsubst %/,%,$$$$@))
    391395        %$$(call MSG_INST_DIR,$$@)
     
    395399
    396400##
    397 # Install a debug file. 
     401# Install a debug file.
    398402# @param    debug_file          Src=>Dst file pair.
    399403define def_link_install_debug_file_rule
    400404local dst := $(debug_inst_path)/$(debug_inst)$(word 2, $(subst =>,$(SP),$(debug_file)))
    401 $$(dst): $(word 1, $(subst =>,$(SP),$(debug_file))) | $$$$(dir $$$$@)
     405$$(call KB_FN_ASSERT_ABSPATH,dst)
     406local src := $(word 1, $(subst =>,$(SP),$(debug_file)))
     407$$(call KB_FN_ASSERT_ABSPATH,src)
     408$$(dst): $$(src) | $$$$(dir $$$$@)
    402409        %$$(call MSG_INST_FILE,$$@,$$<)
    403410        $$(QUIET)$(debug_install_cmd) $(if $(mode),-m $(mode)) $(if $(uid),-o $(uid)) $(if $(gid),-g $(gid)) -- $$< $$@
     
    406413
    407414##
    408 # Install debug info to $(debug_inst), where debug_inst can be a directory or 
     415# Install debug info to $(debug_inst), where debug_inst can be a directory or
    409416# file (just like $(inst) and $(stage).  Used for both staging and installing.
    410417define def_target_install_only_debug
    411418if "$(substr $(debug_inst),-1,1)" == "/"
    412419 if "$(debug_inst)" == "./"
    413   local debug_inst := 
     420  local debug_inst :=
    414421 endif
    415422 local debug_dirs  := $(patsubst $($(target)_0_OUTDIR)/%,%,$($(target)_2_OUTPUT_DEBUG_DIRS))
Note: See TracChangeset for help on using the changeset viewer.