Ignore:
Timestamp:
Mar 18, 2008, 11:37:29 PM (17 years ago)
Author:
bird
Message:

prefix the search paths for templates, sdks, tools and stuff. Added KBUILD_DEFAULT_PATHS as a common last resort.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/footer.kmk

    r1415 r1416  
    626626define def_templates_include
    627627ifndef TEMPLATE_$(template)
    628  TEMPLATE_$(template)_INCLUDE_FILE_ := $(firstword $(foreach path, $(TEMPLATE_PATHS) $(PATH_KBUILD)/templates/, $(wildcard $(path)/$(template).kmk)))
     628 TEMPLATE_$(template)_INCLUDE_FILE_ := $(firstword $(foreach path, $(KBUILD_TEMPLATE_PATHS) $(PATH_KBUILD)/templates $(KBUILD_DEFAULT_PATHS), $(wildcard $(path)/$(template).kmk)))
    629629 ifneq ($(TEMPLATE_$(template)_INCLUDE_FILE_),)
    630630  include $(TEMPLATE_$(template)_INCLUDE_FILE_)
     
    11781178define def_tools_load_function
    11791179ifndef TOOL_$(loading)
    1180  TOOL_$(loading)_KMK_FILE := $(firstword $(foreach path, $(TOOL_PATHS) $(PATH_KBUILD)/tools, $(wildcard $(path)/$(loading).kmk)))
     1180 TOOL_$(loading)_KMK_FILE := $(firstword $(foreach path, $(KBUILD_TOOL_PATHS) $(PATH_KBUILD)/tools $(KBUILD_DEFAULT_PATHS), $(wildcard $(path)/$(loading).kmk)))
    11811181 ifeq ($(TOOL_$(loading)_KMK_FILE),)
    1182   $(error kBuild: Cannot find include file for the tool '$(loading)'! Searched: $(TOOL_PATHS) $(PATH_KBUILD)/tools)
     1182  $(error kBuild: Cannot find include file for the tool '$(loading)'! Searched: $(KBUILD_TOOL_PATHS) $(PATH_KBUILD)/tools $(KBUILD_DEFAULT_PATHS))
    11831183 endif
    11841184 include $(TOOL_$(loading)_KMK_FILE)
     
    11931193define def_sdk_load_function
    11941194ifndef SDK_$(loading)
    1195  SDK_$(loading)_KMK_FILE := $(firstword $(foreach path, $(SDK_PATHS) $(PATH_KBUILD)/sdks, $(wildcard $(path)/$(loading).kmk)))
     1195 SDK_$(loading)_KMK_FILE := $(firstword $(foreach path, $(KBUILD_SDK_PATHS) $(PATH_KBUILD)/sdks $(KBUILD_DEFAULT_PATHS), $(wildcard $(path)/$(loading).kmk)))
    11961196 ifeq ($(SDK_$(loading)_KMK_FILE),)
    1197   $(error kBuild: Cannot find include file for the SDK '$(loading)'! Searched: $(SDK_PATHS) $(PATH_KBUILD)/sdks)
     1197  $(error kBuild: Cannot find include file for the SDK '$(loading)'! Searched: $(KBUILD_SDK_PATHS) $(PATH_KBUILD)/sdks $(KBUILD_DEFAULT_PATHS))
    11981198 endif
    11991199 include $(SDK_$(loading)_KMK_FILE)
Note: See TracChangeset for help on using the changeset viewer.