Changeset 2755


Ignore:
Timestamp:
Jan 25, 2015, 1:42:34 AM (10 years ago)
Author:
bird
Message:

subheader.kmk,subfooter.kmk: Don't evaluate the def_subheader/footer define for old targets, only for targets which are new. Saves some times (saw 88000+ invokations of each of the two defines when loading the vbox makefiles).

Location:
trunk/kBuild
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/subfooter.kmk

    r2726 r2755  
    6060endef
    6161
     62# TODO: Wish there was an easy way of only enumerating only new targets...
    6263$(foreach target,\
    6364        $(ALL_TARGETS) \
     
    7374        $(INSTALLS)    $(INSTALLS.$(KBUILD_TARGET))     $(INSTALLS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))    $(INSTALLS.$(KBUILD_TARGET_ARCH))    $(INSTALLS.$(KBUILD_TARGET_CPU))    $(INSTALLS.$(KBUILD_TYPE))    \
    7475        $(OTHERS)      $(OTHERS.$(KBUILD_TARGET))       $(OTHERS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))      $(OTHERS.$(KBUILD_TARGET_ARCH))      $(OTHERS.$(KBUILD_TARGET_CPU))      $(OTHERS.$(KBUILD_TYPE))      \
    75 ,$(evalval def_subheader))
     76,$(if-expr defined($(target)_0_OUTDIR),,$(evalval def_subheader)))
    7677
    7778
  • trunk/kBuild/subheader.kmk

    r2726 r2755  
    7171 endef
    7272
     73 # TODO: Wish there was an easy way of only enumerating only new targets...
    7374 $(foreach target,\
    7475        $(ALL_TARGETS) \
     
    8485        $(INSTALLS)    $(INSTALLS.$(KBUILD_TARGET))     $(INSTALLS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))    $(INSTALLS.$(KBUILD_TARGET_ARCH))    $(INSTALLS.$(KBUILD_TARGET_CPU))    $(INSTALLS.$(KBUILD_TYPE))    \
    8586        $(OTHERS)      $(OTHERS.$(KBUILD_TARGET))       $(OTHERS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH))      $(OTHERS.$(KBUILD_TARGET_ARCH))      $(OTHERS.$(KBUILD_TARGET_CPU))      $(OTHERS.$(KBUILD_TYPE))      \
    86  ,$(evalval def_subfooter))
     87 ,$(if-expr defined($(target)_0_OUTDIR),,$(evalval def_subfooter)))
    8788
    8889
Note: See TracChangeset for help on using the changeset viewer.