Changeset 988 in kBuild
- Timestamp:
- May 29, 2007 3:52:30 AM (18 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/footer.kmk
r985 r988 27 27 ifndef __footer_kmk__ 28 28 # start-of-file-content 29 ifdef KBUILD_PROFILE_SELF 30 _KBUILD_TS_FOOTER_START := $(nanots ) 31 $(info prof: $(int-sub $(_KBUILD_TS_FOOTER_START), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_FOOTER_START), $(_KBUILD_TS_PREV)) - start of footer.kmk) 32 _KBUILD_TS_PREV := $(_KBUILD_TS_FOOTER_START) 33 endif 29 34 30 35 # … … 306 311 # $ (warning dbg _KEYWORDS := $(_KEYWORDS)) 307 312 313 ifdef KBUILD_PROFILE_SELF 314 _KBUILD_TS_NOW := $(nanots ) 315 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done keywords) 316 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 317 endif 318 308 319 309 320 # … … 358 369 $(foreach trg, $(_ALL_INSTALLS),$(eval $(value def_inherit))) 359 370 371 ifdef KBUILD_PROFILE_SELF 372 _KBUILD_TS_NOW := $(nanots ) 373 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done target inheritance) 374 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 375 endif 376 360 377 361 378 # … … 380 397 properties_now := 381 398 properties_deferred := 399 400 ifdef KBUILD_PROFILE_SELF 401 _KBUILD_TS_NOW := $(nanots ) 402 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done template inheritance) 403 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 404 endif 382 405 383 406 … … 558 581 bld_trg_cpu := $(BUILD_PLATFORM_CPU) 559 582 $(foreach target, $(_ALL_BUILD_PLATFORM_TARGETS),$(eval $(value def_inherit_template))) 583 584 ifdef KBUILD_PROFILE_SELF 585 _KBUILD_TS_NOW := $(nanots ) 586 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done common inheritance) 587 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 588 endif 560 589 561 590 … … 687 716 ## @todo Execute SDKS and TOOL inhertiance. 688 717 718 ifdef KBUILD_PROFILE_SELF 719 _KBUILD_TS_NOW := $(nanots ) 720 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done tools and sdks) 721 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 722 endif 723 689 724 690 725 # … … 870 905 $(foreach target, $(INSTALLS) $(INSTALLS.$(BUILD_TARGET)) $(INSTALLS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), \ 871 906 $(eval $(value def_pass1_install))) 907 908 ifdef KBUILD_PROFILE_SELF 909 _KBUILD_TS_NOW := $(nanots ) 910 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done pass 1) 911 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 912 endif 872 913 873 914 … … 1258 1299 fetch: $(_FETCHES) 1259 1300 unfetch: $(_UNFETCHES) 1301 1302 ifdef KBUILD_PROFILE_SELF 1303 _KBUILD_TS_NOW := $(nanots ) 1304 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done fetching targets) 1305 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 1306 endif 1260 1307 1261 1308 … … 1673 1720 mode := 0644 1674 1721 $(foreach target, $(LIBRARIES) $(LIBRARIES.$(BUILD_TARGET)) $(LIBRARIES.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_lib))) 1722 1723 ifdef KBUILD_PROFILE_SELF 1724 _KBUILD_TS_NOW := $(nanots ) 1725 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done library targets) 1726 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 1727 endif 1675 1728 1676 1729 … … 2020 2073 $(foreach target, $(BLDPROGS) $(BLDPROGS.$(BUILD_PLATFORM)) $(BLDPROGS.$(BUILD_PLATFORM).$(BUILD_PLATFORM_ARCH)), $(eval $(value def_bldprog))) 2021 2074 2075 ifdef KBUILD_PROFILE_SELF 2076 _KBUILD_TS_NOW := $(nanots ) 2077 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done build program targets) 2078 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2079 endif 2022 2080 2023 2081 … … 2035 2093 bld_trg_base_var := TARGET 2036 2094 $(foreach target, $(DLLS) $(DLLS.$(BUILD_TARGET)) $(DLLS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_link_common))) 2095 2096 ifdef KBUILD_PROFILE_SELF 2097 _KBUILD_TS_NOW := $(nanots ) 2098 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done dll targets) 2099 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2100 endif 2037 2101 2038 2102 … … 2059 2123 endif 2060 2124 2125 ifdef KBUILD_PROFILE_SELF 2126 _KBUILD_TS_NOW := $(nanots ) 2127 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done import library targets) 2128 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2129 endif 2130 2061 2131 2062 2132 # … … 2074 2144 $(foreach target, $(PROGRAMS) $(PROGRAMS.$(BUILD_TARGET)) $(PROGRAMS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_link_common))) 2075 2145 2146 ifdef KBUILD_PROFILE_SELF 2147 _KBUILD_TS_NOW := $(nanots ) 2148 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done program targets) 2149 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2150 endif 2076 2151 2077 2152 … … 2089 2164 bld_trg_base_var := TARGET 2090 2165 $(foreach target, $(SYSMODS) $(SYSMODS.$(BUILD_TARGET)) $(SYSMODS.$(BUILD_TARGET).$(BUILD_TARGET_ARCH)), $(eval $(value def_link_common))) 2166 2167 ifdef KBUILD_PROFILE_SELF 2168 _KBUILD_TS_NOW := $(nanots ) 2169 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done sysmod targets) 2170 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2171 endif 2091 2172 2092 2173 … … 2401 2482 $(eval $(value def_install))) 2402 2483 2484 ifdef KBUILD_PROFILE_SELF 2485 _KBUILD_TS_NOW := $(nanots ) 2486 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done install targets) 2487 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2488 endif 2489 2403 2490 2404 2491 # … … 2428 2515 $(foreach directory,$(_DIR_ALL),$(eval $(def_mkdir_rule))) 2429 2516 2517 ifdef KBUILD_PROFILE_SELF 2518 _KBUILD_TS_NOW := $(nanots ) 2519 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done directories) 2520 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2521 endif 2522 2430 2523 2431 2524 # … … 2433 2526 # 2434 2527 do-nothing: 2528 ifdef KBUILD_PROFILE_SELF 2529 @$(ECHO) 'prof: $(int-sub $(nanots ), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(nanots ), $(_KBUILD_TS_PREV)) - executing $@' 2530 endif 2435 2531 $(call MSG_NOTHING) 2436 2532 … … 2572 2668 $(eval $(def_pass_order))) 2573 2669 2670 ifdef KBUILD_PROFILE_SELF 2671 _KBUILD_TS_NOW := $(nanots ) 2672 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - done passes) 2673 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 2674 endif 2574 2675 2575 2676 … … 2633 2734 2634 2735 2736 ifdef KBUILD_PROFILE_SELF 2737 _KBUILD_TS_FOOTER_END := $(nanots ) 2738 $(info prof: $(int-sub $(_KBUILD_TS_FOOTER_END), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_FOOTER_END), $(_KBUILD_TS_PREV)) - end of footer.kmk) 2739 $(info prof: footer.kmk: $(int-sub $(_KBUILD_TS_FOOTER_END), $(_KBUILD_TS_FOOTER_START))) 2740 _KBUILD_TS_PREV := $(_KBUILD_TS_FOOTER_END) 2741 endif 2742 2635 2743 # end-of-file-content 2636 2744 __footer_kmk__ := target -
trunk/kBuild/header.kmk
r985 r988 27 27 ifndef __header_kmk__ 28 28 # start-of-file-content 29 ifdef KBUILD_PROFILE_SELF 30 _KBUILD_TS_HEADER_START := $(nanots ) # just a dummy warm up query 31 $(info prof: since start - since previous - event description) 32 _KBUILD_TS_HEADER_START := $(nanots ) 33 _KBUILD_TS_PREV := $(_KBUILD_TS_HEADER_START) 34 endif 29 35 30 36 … … 799 805 800 806 # Include the config.kmk we found file (or the default one). 801 include $(_CFGFILE) 807 ifdef KBUILD_PROFILE_SELF 808 _KBUILD_TS_NOW := $(nanots ) 809 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - including $(_CFGFILE)) 810 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 811 812 include $(_CFGFILE) 813 814 _KBUILD_TS_NOW := $(nanots ) 815 $(info prof: $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_NOW), $(_KBUILD_TS_PREV)) - included $(_CFGFILE)) 816 _KBUILD_TS_PREV := $(_KBUILD_TS_NOW) 817 else 818 include $(_CFGFILE) 819 endif 820 802 821 803 822 … … 963 982 964 983 984 ifdef KBUILD_PROFILE_SELF 985 _KBUILD_TS_HEADER_END := $(nanots ) 986 $(info prof: $(int-sub $(_KBUILD_TS_HEADER_END), $(_KBUILD_TS_HEADER_START)) - $(int-sub $(_KBUILD_TS_HEADER_END), $(_KBUILD_TS_PREV)) - end of header.kmk) 987 _KBUILD_TS_PREV := $(_KBUILD_TS_HEADER_END) 988 endif 989 965 990 # end-of-file-content 966 991 __header_kmk__ := 1
Note:
See TracChangeset
for help on using the changeset viewer.