Changeset 5898 in vbox
- Timestamp:
- Dec 2, 2007 6:08:26 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r5884 r5898 958 958 $(PATH_OUT)/GCCConfig.kmk: $(PATH_ROOT)/Config.kmk $(LOCALCFG) $(AUTOCFG) 959 959 $(call MSG_GENERATE,,$@,) 960 $(QUIET)$(RM) -f "$@"960 $(QUIET)$(RM) -f '$@' 961 961 $(QUIET)$(MKDIR) -p $(@D) 962 962 963 963 @# HC compiler switch detection. 964 $(APPEND) "$@" "VBOX_GCC_VERSION_CC ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CC))"965 $(APPEND) "$@" "VBOX_GCC_VERSION_CXX ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CXX))"966 $(APPEND) "$@" "VBOX_GCC_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)"967 $(APPEND) "$@" "VBOX_GCC_Wno-pointer-sign ?= $(call VBOX_GCC_CHECK_CC,-Wno-pointer-sign,)"968 $(APPEND) "$@" "VBOX_GCC_Wno-variadic-macros ?= $(call VBOX_GCC_CHECK_CXX,-Wno-variadic-macros,)"969 $(APPEND) "$@" "VBOX_GCC_Wno-invalid-offsetof ?= $(call VBOX_GCC_CHECK_CXX,-Wno-invalid-offsetof,)"970 $(APPEND) "$@" "VBOX_GCC_Wno-extra ?= $(call VBOX_GCC_CHECK_CXX,-Wno-extra)"971 $(APPEND) "$@" "VBOX_GCC_fno-stack-protector ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)"964 $(APPEND) '$@' 'VBOX_GCC_VERSION_CC ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CC))' 965 $(APPEND) '$@' 'VBOX_GCC_VERSION_CXX ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC_TOOL)_CXX))' 966 $(APPEND) '$@' 'VBOX_GCC_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-libgcc-file-name)' 967 $(APPEND) '$@' 'VBOX_GCC_Wno-pointer-sign ?= $(call VBOX_GCC_CHECK_CC,-Wno-pointer-sign,)' 968 $(APPEND) '$@' 'VBOX_GCC_Wno-variadic-macros ?= $(call VBOX_GCC_CHECK_CXX,-Wno-variadic-macros,)' 969 $(APPEND) '$@' 'VBOX_GCC_Wno-invalid-offsetof ?= $(call VBOX_GCC_CHECK_CXX,-Wno-invalid-offsetof,)' 970 $(APPEND) '$@' 'VBOX_GCC_Wno-extra ?= $(call VBOX_GCC_CHECK_CXX,-Wno-extra)' 971 $(APPEND) '$@' 'VBOX_GCC_fno-stack-protector ?= $(call VBOX_GCC_CHECK_CC,-fno-stack-protector,)' 972 972 @# Produce code optimized for the most common IA32/AMD64/EM64T processors. Introduced with gcc version 4.2. 973 $(APPEND) "$@" "VBOX_GCC_mtune-generic ?= $(call VBOX_GCC_CHECK_CC,-mtune=generic,)"973 $(APPEND) '$@' 'VBOX_GCC_mtune-generic ?= $(call VBOX_GCC_CHECK_CC,-mtune=generic,)' 974 974 ifneq ($(BUILD_TARGET),l4) 975 975 @# Set default attribute for ELF and MACH-O symbols to ``hidden'' to reduce the number 976 976 @# of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4. 977 $(APPEND) "$@" "ifneq ($$(VBOX_GCC_VERSION_CC),)"978 $(APPEND) "$@" " ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CC),40000),)"979 $(APPEND) "$@" " VBOX_GCC_fvisibility-hidden ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,)"980 $(APPEND) "$@" " endif"981 $(APPEND) "$@" "endif"977 $(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CC),)' 978 $(APPEND) '$@' ' ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CC),40000),)' 979 $(APPEND) '$@' ' VBOX_GCC_fvisibility-hidden ?= $(call VBOX_GCC_CHECK_CC,-fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN,)' 980 $(APPEND) '$@' ' endif' 981 $(APPEND) '$@' 'endif' 982 982 endif 983 983 ifneq ($(BUILD_TARGET),l4) 984 984 @# Set default attribute for inline functions to ``hidden'' to reduce the number 985 985 @# of relocation entries and PLT indirections in shared libraries. Don't allow for gcc version < 4. 986 $(APPEND) "$@" "ifneq ($$(VBOX_GCC_VERSION_CXX),)"987 $(APPEND) "$@" " ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CXX),40000),)"988 $(APPEND) "$@" " VBOX_GCC_fvisibility-inlines-hidden ?= $(call VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,)"989 $(APPEND) "$@" " endif"990 $(APPEND) "$@" "endif"986 $(APPEND) '$@' 'ifneq ($$(VBOX_GCC_VERSION_CXX),)' 987 $(APPEND) '$@' ' ifneq ($$(int-ge $$(VBOX_GCC_VERSION_CXX),40000),)' 988 $(APPEND) '$@' ' VBOX_GCC_fvisibility-inlines-hidden ?= $(call VBOX_GCC_CHECK_CXX,-fvisibility-inlines-hidden,)' 989 $(APPEND) '$@' ' endif' 990 $(APPEND) '$@' 'endif' 991 991 endif 992 992 @# Find the compiler includes for IPRT no-crt. 993 993 @# Note that `$(dir $(gcc -print-libgcc-file-name))/include does not work for a 64-bit cross build on a 32-bit build host. 994 $(APPEND) "$@" "VBOX_PATH_GCC_INCS ?= $(shell LC_ALL=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-search-dirs|$(SED_EXT) -ne 's+^install: \(.*[^/][^/]*\)/+\1+p')/include"994 $(APPEND) '$@' 'VBOX_PATH_GCC_INCS ?= $(shell LC_ALL=C $(TOOL_$(VBOX_GCC_TOOL)_CC) -print-search-dirs|$(SED_EXT) -ne 's+^install: \(.*[^/][^/]*\)/+\1+p')/include' 995 995 996 996 @# 32-bit (GC) compiler switch detection. 997 $(APPEND) "$@" "VBOX_GCC32_VERSION_CC ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC32_TOOL)_CC))"998 $(APPEND) "$@" "VBOX_GCC32_VERSION_CXX ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC32_TOOL)_CXX))"999 $(APPEND) "$@" "VBOX_GCC32_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC32_TOOL)_CC) -print-libgcc-file-name)"1000 $(APPEND) "$@" "VBOX_GCC32_Wno-variadic-macros ?= $(call VBOX_GCC32_CHECK_CXX,-Wno-variadic-macros,)"997 $(APPEND) '$@' 'VBOX_GCC32_VERSION_CC ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC32_TOOL)_CC))' 998 $(APPEND) '$@' 'VBOX_GCC32_VERSION_CXX ?= $(call VBOX_GCC_VERSION,$(TOOL_$(VBOX_GCC32_TOOL)_CXX))' 999 $(APPEND) '$@' 'VBOX_GCC32_LIBGCC ?= $(shell $(TOOL_$(VBOX_GCC32_TOOL)_CC) -print-libgcc-file-name)' 1000 $(APPEND) '$@' 'VBOX_GCC32_Wno-variadic-macros ?= $(call VBOX_GCC32_CHECK_CXX,-Wno-variadic-macros,)' 1001 1001 1002 1002 include $(PATH_OUT)/GCCConfig.kmk … … 1084 1084 # @param 1 The inf file to edit. 1085 1085 # @param 2 The output file. 1086 ifdef KMK_NEW_SED 1087 VBOX_EDIT_INF32_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;x86 *//' -e '/^;amd64 /d' --output $(2) $(1) 1088 else 1086 1089 VBOX_EDIT_INF32_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;x86 *//' -e '/^;amd64 /d' $(1) > $(2) 1090 endif 1087 1091 ## Edit an inf file an x86 target. 1088 1092 # @param 1 The inf file to edit. 1089 1093 # @param 2 The output file. 1094 ifdef KMK_NEW_SED 1095 VBOX_EDIT_INF64_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;amd64 *//' -e '/^;x86 /d' --output $(2) $(1) 1096 else 1090 1097 VBOX_EDIT_INF64_FN = $(SED) $(if $(VBOX_SIGNING_MODE),-e 's/^;cat *//', -e '/^;cat /d') -e 's/^;amd64 *//' -e '/^;x86 /d' $(1) > $(2) 1098 endif 1091 1099 1092 1100 # … … 2605 2613 $(QUIET)$(MKDIR) -p $(@D) 2606 2614 $(QUIET)$(RM) -f $@ [email protected] 2607 $(QUIET)$(APPEND) [email protected] "#ifndef ___version_generated_h___"2608 $(QUIET)$(APPEND) [email protected] "#define ___version_generated_h___"2609 $(QUIET)$(APPEND) [email protected] ""2610 $(QUIET)$(APPEND) [email protected] "#define VBOX_VERSION_MAJOR $(VBOX_VERSION_MAJOR)"2611 $(QUIET)$(APPEND) [email protected] "#define VBOX_VERSION_MINOR $(VBOX_VERSION_MINOR)"2612 $(QUIET)$(APPEND) [email protected] "#define VBOX_VERSION_BUILD $(VBOX_VERSION_BUILD)"2615 $(QUIET)$(APPEND) [email protected] '#ifndef ___version_generated_h___' 2616 $(QUIET)$(APPEND) [email protected] '#define ___version_generated_h___' 2617 $(QUIET)$(APPEND) [email protected] '' 2618 $(QUIET)$(APPEND) [email protected] '#define VBOX_VERSION_MAJOR $(VBOX_VERSION_MAJOR)' 2619 $(QUIET)$(APPEND) [email protected] '#define VBOX_VERSION_MINOR $(VBOX_VERSION_MINOR)' 2620 $(QUIET)$(APPEND) [email protected] '#define VBOX_VERSION_BUILD $(VBOX_VERSION_BUILD)' 2613 2621 $(QUIET)$(APPEND) [email protected] '#define VBOX_VERSION_STRING "$(VBOX_VERSION_STRING)"' 2614 $(QUIET)$(APPEND) [email protected] ""2615 $(QUIET)$(APPEND) [email protected] "#endif"2622 $(QUIET)$(APPEND) [email protected] '' 2623 $(QUIET)$(APPEND) [email protected] '#endif' 2616 2624 $(QUIET)$(MV) -f [email protected] $@ 2617 2625 … … 2623 2631 $(QUIET)$(RM) -f $@ [email protected] 2624 2632 $(QUIET)$(MKDIR) -p $(@D) 2625 $(QUIET)$(APPEND) [email protected] "VBOX_VERSION_MAJOR = $(VBOX_VERSION_MAJOR)"2626 $(QUIET)$(APPEND) [email protected] "VBOX_VERSION_MINOR = $(VBOX_VERSION_MINOR)"2627 $(QUIET)$(APPEND) [email protected] "VBOX_VERSION_BUILD = $(VBOX_VERSION_BUILD)"2628 $(QUIET)$(APPEND) [email protected] "VBOX_VERSION_STRING = $(VBOX_VERSION_STRING)"2633 $(QUIET)$(APPEND) [email protected] 'VBOX_VERSION_MAJOR = $(VBOX_VERSION_MAJOR)' 2634 $(QUIET)$(APPEND) [email protected] 'VBOX_VERSION_MINOR = $(VBOX_VERSION_MINOR)' 2635 $(QUIET)$(APPEND) [email protected] 'VBOX_VERSION_BUILD = $(VBOX_VERSION_BUILD)' 2636 $(QUIET)$(APPEND) [email protected] 'VBOX_VERSION_STRING = $(VBOX_VERSION_STRING)' 2629 2637 $(QUIET)$(MV) -f [email protected] $@ 2630 2638 … … 2662 2670 VBOX_SVN_DEP := $(wildcard $(PATH_ROOT)/.svn/entries) 2663 2671 ifneq ($(USERNAME),bird) # Wastes nearly half a second on windows, very annoying. TODO: $(which ). 2672 ## @todo with 0.1.2: ifeq ($(which (SVN)),) 2664 2673 ifneq ($(shell $(SVN) --version > /dev/null 2>&1 || echo 'svn not installed'),) 2665 2674 VBOX_SVN_DEP := … … 2679 2688 $(QUIET)$(MKDIR) -p $(@D) 2680 2689 ifneq ($(VBOX_SVN_DEP),) 2681 # $(QUIET)$(APPEND) $@ "export VBOX_SVN_REV=$(shell LC_ALL=C $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Last Changed Rev/!d' -e "s/Last Changed Rev\: *//")"2682 $(QUIET)$(APPEND) $@ "export VBOX_SVN_REV=$(shell LC_ALL=C $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Revision/!d' -e "s/Revision\: *//")"2690 # $(QUIET)$(APPEND) $@ 'export VBOX_SVN_REV=$(shell LC_ALL=C $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Last Changed Rev/!d' -e "s/Last Changed Rev\: *//")' 2691 $(QUIET)$(APPEND) $@ 'export VBOX_SVN_REV=$(shell LC_ALL=C $(SVN) info $(PATH_ROOT) | $(SED) -e '/^Revision/!d' -e "s/Revision\: *//")' 2683 2692 else 2684 $(QUIET)$(APPEND) $@ "export VBOX_SVN_REV=$(VBOX_SVN_REV_FALLBACK)" 2685 endif 2693 $(QUIET)$(APPEND) $@ 'export VBOX_SVN_REV=$(VBOX_SVN_REV_FALLBACK)' 2694 endif 2695 ## @todo When --update is implemented, replace with: $(QUIET)$(CP) --update -fv $@ $(VBOX_SVN_REV_KMK) 2686 2696 $(QUIET)if test ! -f $(VBOX_SVN_REV_KMK) \ 2687 2697 || test ! "`$(CAT_EXT) $@`" = "`$(CAT_EXT) $(VBOX_SVN_REV_KMK)`"; \ … … 2693 2703 echo '* $(VBOX_SVN_REV_KMK) was not changed:'; \ 2694 2704 fi 2695 $(QUIET)$(CAT _EXT) $(VBOX_SVN_REV_KMK)2705 $(QUIET)$(CAT) $(VBOX_SVN_REV_KMK) 2696 2706 2697 2707 $(VBOX_SVN_REV_KMK): $(VBOX_SVN_REV_KMK).ts # remove when kBuild is updated. … … 2704 2714 $(QUIET)$(RM) -f $@ 2705 2715 $(QUIET)$(MKDIR) -p $(@D) 2706 $(QUIET)$(APPEND) $@ "export VBOX_SVN_REV=$(VBOX_SVN_REV)"2716 $(QUIET)$(APPEND) $@ 'export VBOX_SVN_REV=$(VBOX_SVN_REV)' 2707 2717 $(QUIET)echo '* $(VBOX_SVN_REV_KMK) was externally overwritten:' 2708 $(QUIET)$(CAT _EXT) $(VBOX_SVN_REV_KMK)2718 $(QUIET)$(CAT) $(VBOX_SVN_REV_KMK) 2709 2719 endif 2710 2720 -
trunk/src/VBox/Devices/Graphics/BIOS/Makefile.kmk
r5471 r5898 67 67 # 1. create vbetables.h 68 68 $(PATH_TARGET)/vbetables.h: $(MAKEFILE_CURRENT) 69 ifdef KMK_USE_REDIRECT 70 $(QUIET)$(REDIRECT) -wo $@ -- $(TARGET_vbetables-gen) 71 else 69 72 $(QUIET)$(TARGET_vbetables-gen) > $@ 73 endif 70 74 71 75 # 2. precompile 72 76 $(PATH_TARGET)/_vgabios_.c: $(addprefix $(PATH_SUB_CURRENT)/,vgabios.c vgabios.h vbe.h vgatables.h vgafonts.h vbe.c clext.c) $(PATH_TARGET)/vbetables.h 73 77 $(call MSG_TOOL,cpp,VgaBiosBin,$<,$@) 78 ifdef KMK_USE_REDIRECT 79 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -DVBOX -DVBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" -DVBE -DVGABIOS_DATE="''" $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -o $@ $< 80 else 74 81 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -DVBOX -DVBOX_VERSION_STRING=\"$(VBOX_VERSION_STRING)\" -E -P $< -DVBE -DVGABIOS_DATE="''" $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) > $@ 82 endif 75 83 76 84 # 3. compile - tempfile clashes, so make sure it's built in solitude. … … 83 91 $(PATH_TARGET)/vgabios1.s: $(PATH_TARGET)/vgabios0.s 84 92 $(call MSG_TOOL,Adjusting BCC Assembly,VgaBiosBin,$<,$@) 93 ifdef KMK_NEW_SED 94 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 95 else 85 96 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' $^ > $@ 97 endif 86 98 87 99 # 5. assemble 88 100 $(PATH_TARGET)/vgabios.tmp $(PATH_TARGET)/vgabios.lst: $(PATH_TARGET)/vgabios1.s 89 101 $(call MSG_COMPILE,VgaBiosBin,$<,$@,AS) 102 ifdef KMK_USE_REDIRECT 103 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_TARGET)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/vgabios.lst 104 else 90 105 $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/vgabios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/vgabios.lst < $^ 106 endif 91 107 92 108 # 6. checksums -
trunk/src/VBox/Devices/PC/BIOS/Makefile.kmk
r4071 r5898 63 63 $(PATH_TARGET)/_rombios_.c: $(PATH_SUB_CURRENT)/rombios.c $(PATH_SUB_CURRENT)/logo.c $(PATH_SUB_CURRENT)/apmbios.S | $(call DIRDEP,$(TARGET_PATH)) 64 64 $(call MSG_TOOL,cpp,PcBiosBin,$<,$@) 65 ifdef KMK_USE_REDIRECT 66 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P -o $@ $< 67 else 65 68 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -I$(PATH_TARGET) -I$(VBOX_PATH_DEVICES_SRC)/PC -I$(PATH_ROOT)/include -I$(PATH_OUT) -DBX_SMP_PROCESSORS=1 -DVBOX $(addprefix -D,$(DEFS) $(DEFS.$(BUILD_TYPE))) -P $< > $@ 69 endif 66 70 67 71 # 2. compile to intermediate asm file - tempfile clashes, make sure it's built alone. … … 74 78 $(PATH_TARGET)/rombios1.s: $(PATH_TARGET)/rombios0.s 75 79 $(call MSG_TOOL,Adjusting BCC Assembly,PcBiosBin,$<,$@) 80 ifdef KMK_NEW_SED 81 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' --output $@ $^ 82 else 76 83 $(QUIET)$(SED) -e 's/^\.text//' -e 's/^\.data//' $^ > $@ 84 endif 77 85 78 86 # 4. assemble the intermediate asm file. (also creates a listing rombios.lst) 79 87 $(PATH_TARGET)/pcbios.tmp $(PATH_TARGET)/pcbios.lst: $(PATH_TARGET)/rombios1.s 80 88 $(call MSG_COMPILE,PcBiosBin,$<,$@,AS) 81 $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst - < $^ 89 ifdef KMK_USE_REDIRECT 90 $(QUIET)$(REDIRECT) -ri $^ -- $(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst 91 else 92 $(QUIET)$(VBOX_AS86) -b $(PATH_TARGET)/pcbios.tmp -u- -w- -g -0 -j -O -l $(PATH_TARGET)/pcbios.lst < $^ 93 endif 82 94 83 95 # 5. calculate checksums for the final BIOS image. … … 90 102 $(PATH_TARGET)/pcbios-syms.h: $(PATH_TARGET)/pcbios.lst $(MAKEFILE_CURRENT) 91 103 $(call MSG_GENERATE,PcBiosBin,$<,$@) 104 ifdef KMK_NEW_SED 105 $(QUIET)$(SED) \ 106 -e '/^[0-9][0-9][0-9][0-9][0-9] 000[0-9A-F]* [[:space:]]*[a-zA-Z0-9_]*:/!d' \ 107 -e 's/^[0-9][0-9][0-9][0-9][0-9] \(000[0-9A-F]*\) [[:space:]]*\([a-zA-Z0-9_]*\):.*$$/ DEFSYM(0x\1, "\2"),/' \ 108 --output $@ \ 109 $(PATH_TARGET)/pcbios.lst 110 else 92 111 $(QUIET)$(SED) \ 93 112 -e '/^[0-9][0-9][0-9][0-9][0-9] 000[0-9A-F]* [[:space:]]*[a-zA-Z0-9_]*:/!d' \ 94 113 -e 's/^[0-9][0-9][0-9][0-9][0-9] \(000[0-9A-F]*\) [[:space:]]*\([a-zA-Z0-9_]*\):.*$$/ DEFSYM(0x\1, "\2"),/' \ 95 114 $(PATH_TARGET)/pcbios.lst > $@ 115 endif 96 116 97 117 -
trunk/src/VBox/Devices/testcase/Makefile.kmk
r5687 r5898 87 87 $(PATH_TARGET)/tstDeviceStructSizeGC.h: $$(INSTARGET_tstDeviceStructSizeGC) 88 88 $(call MSG_GENERATE,,$@) 89 ifdef KMK_USE_REDIRECT 90 $(QUIET)$(REDIRECT) -wo $@ -- $(INSTARGET_tstDeviceStructSizeGC) 91 else 89 92 $(QUIET)$(INSTARGET_tstDeviceStructSizeGC) > $@ 93 endif 90 94 91 95 # 3. run it. -
trunk/src/VBox/Frontends/VirtualBox/Makefile.kmk
r5878 r5898 329 329 $(call MSG_GENERATE,VirtualBoxVM.app,$<,$@) 330 330 $(QUIET)$(RM) -f $@ 331 ifdef KMK_NEW_SED 332 $(QUIET)$(SED) \ 333 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ 334 -e 's/@VBOX_VERSION_MAJOR@/$(VBOX_VERSION_MAJOR)/g' \ 335 -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \ 336 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ 337 --output $@ $< 338 else 331 339 $(QUIET)$(SED) \ 332 340 -e 's/@VBOX_VERSION_STRING@/$(VBOX_VERSION_STRING)/g' \ … … 335 343 -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \ 336 344 $< > $@ 345 endif 337 346 338 347 # … … 532 541 533 542 $(PATH_VirtualBox)/ui/vbox_image_collection.txt: VBoxUI.pro $(VirtualBox_QT_IMAGES) 534 @echo " \ 535 $(VirtualBox_QT_IMAGES) \ 536 " > $@ 543 $(RM) -f $@ 544 $(APPEND) $@ -v VirtualBox_QT_IMAGES 537 545 538 546 $(PATH_VirtualBox)/ui/vbox_image_collection.cpp: $(PATH_VirtualBox)/ui/vbox_image_collection.txt -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r5458 r5898 229 229 ifndef DONT_USE_YASM 230 230 $(QUIET)$(TOOL_YASM_AS) $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $< 231 ifdef KMK_NEW_SED 232 $(SED) -f $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed --output $@ [email protected] 233 else 231 234 $(SED) -f $(VBOX_PATH_VMM_SRC)/testcase/tstAsmStructsAsm-lst.sed [email protected] > $@ 235 endif 232 236 else 233 237 $(QUIET)$(TOOL_NASM_AS) -g $(MY_ASA_ASM_STUFF) -o [email protected] -l [email protected] $< … … 255 259 $(call MSG_GENERATE,tstVMStructSize,$@,$<) 256 260 $(QUIET)$(RM) -f $@ [email protected] [email protected] 261 ifdef KMK_USE_REDIRECT 262 $(QUIET)$(REDIRECT) -wo [email protected] -- $(VBOX_NM) $< 263 else 257 264 $(VBOX_NM) $< > [email protected] 265 endif 266 ifdef KMK_NEW_SED 267 $(QUIET)$(SED) -e '/STAMPROFILEADV/d' \ 268 -e '/00[0-9a-fA-F]* [aA] [^_.]*\./!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \ 269 --output [email protected] [email protected] 270 $(QUIET)$(SED) -e '/VM_size$$/d' \ 271 -e '/00[0-9a-fA-F]* [aA] [^_.]*_size$$/!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^_.]*\)_size/ CHECK_SIZE(\2, 0x0\1);/' \ 272 --append [email protected] [email protected] 273 else 258 274 $(QUIET)$(SED) -e '/STAMPROFILEADV/d' \ 259 275 -e '/00[0-9a-fA-F]* [aA] [^_.]*\./!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^.]*\)\.\(.*$$\)/ CHECK_OFF(\2, 0x0\1, \3);/' \ … … 262 278 -e '/00[0-9a-fA-F]* [aA] [^_.]*_size$$/!d' -e 's/\(00[0-9a-fA-F]*\) [aA] \([^_.]*\)_size/ CHECK_SIZE(\2, 0x0\1);/' \ 263 279 [email protected] >> [email protected] 280 endif 264 281 $(QUIET)$(MV) -f [email protected] $@ 265 282 $(QUIET)$(RM) -f [email protected] … … 268 285 $(PATH_TARGET)/tstAsmStructsGC.h: $(PATH_TARGET)/tstAsmStructsHC.h 269 286 $(call MSG_GENERATE,tstVMStructSize,$@,$<) 287 ifdef KMK_NEW_SED 288 $(QUIET)$(SED) -e '/VMMSWITCHERDEF/d' --output $@ $^ 289 else 270 290 $(QUIET)$(SED) -e '/VMMSWITCHERDEF/d' \ 271 291 $^ > $@ 292 endif 272 293 273 294 ## @todo make this default kBuild behaviour. … … 290 311 $(PATH_TARGET)/tstVMStructGC.h: $$(INSTARGET_tstVMStructGC) 291 312 $(call MSG_GENERATE,tstVMStructSize,$@) 313 ifdef KMK_USE_REDIRECT 314 $(QUIET)$(REDIRECT) -wo $@ -- $(INSTARGET_tstVMStructGC) 315 else 292 316 $(QUIET)$(INSTARGET_tstVMStructGC) > $@ 317 endif 293 318 294 319 # 2. run it.
Note:
See TracChangeset
for help on using the changeset viewer.