Changeset 6493 in vbox
- Timestamp:
- Jan 24, 2008 6:37:10 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27499
- Location:
- trunk/src/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/linux/Makefile
r6159 r6493 27 27 28 28 # 29 # First, figure out which architecture we're targeting .29 # First, figure out which architecture we're targeting and the build type. 30 30 # (We have to support basic cross building (ARCH=i386|x86_64).) 31 # While at it, warn about BUILD_* vars found to help with user problems. 31 32 # 32 33 ifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),) … … 48 49 endif 49 50 endif 51 else 52 $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).) 53 endif 54 55 ifneq ($(filter-out release profile debug strict,$(BUILD_TYPE)),) 56 $(warning Ignoring unknown BUILD_TYPE value '$(BUILD_TYPE)'.) 57 BUILD_TYPE := 58 endif 59 ifeq ($(BUILD_TYPE),) 60 BUILD_TYPE := release 61 else 62 $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).) 50 63 endif 51 64 … … 68 81 OBJS += alloc/heapsimple.o 69 82 endif 83 ifeq ($(BUILD_TYPE),debug) 84 OBJS += \ 85 common/log/log.o \ 86 common/log/logcom.o \ 87 common/log/logformat.o \ 88 common/string/strformat.o \ 89 common/string/strformatrt.o \ 90 common/string/strprintf.o \ 91 common/string/strtonum.o \ 92 r0drv/linux/RTLogWriteDebugger-r0drv-linux.o \ 93 generic/RTLogWriteStdErr-stub-generic.o \ 94 generic/RTLogWriteStdOut-stub-generic.o \ 95 generic/RTLogWriteUser-generic.o \ 96 VBox/log-vbox.o \ 97 VBox/strformat-vbox.o 98 endif 70 99 71 100 ifneq ($(MAKECMDGOALS),clean) … … 143 172 export INCL 144 173 endif 145 KFLAGS := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 174 KFLAGS := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX 146 175 ifndef CONFIG_VBOXDRV_FIXEDMAJOR 147 176 KFLAGS += -DCONFIG_VBOXDRV_AS_MISC … … 152 181 KFLAGS += -DRT_ARCH_X86 153 182 endif 154 #ifeq ($(BUILD_TYPE),debug) - you'll have to enable this manually to get debug stuff. 155 #KFLAGS += -DDEBUG 156 #endif183 ifeq ($(BUILD_TYPE),debug) 184 KFLAGS += -DDEBUG -DDEBUG_$(USER) 185 endif 157 186 158 187 # -
trunk/src/VBox/HostDrivers/Support/linux/files_vboxdrv
r5999 r6493 29 29 ${PATH_ROOT}/include/iprt/avl.h=>include/iprt/avl.h \ 30 30 ${PATH_ROOT}/include/iprt/cdefs.h=>include/iprt/cdefs.h \ 31 ${PATH_ROOT}/include/iprt/ctype.h=>include/iprt/ctype.h \ 31 32 ${PATH_ROOT}/include/iprt/err.h=>include/iprt/err.h \ 32 33 ${PATH_ROOT}/include/iprt/heap.h=>include/iprt/heap.h \ … … 57 58 ${PATH_ROOT}/src/VBox/HostDrivers/Support/SUPDRVShared.c=>SUPDRVShared.c \ 58 59 ${PATH_ROOT}/src/VBox/Runtime/common/alloc/heapsimple.cpp=>alloc/heapsimple.c \ 60 ${PATH_ROOT}/src/VBox/Runtime/common/log/log.cpp=>common/log/log.c \ 61 ${PATH_ROOT}/src/VBox/Runtime/common/log/logcom.cpp=>common/log/logcom.c \ 62 ${PATH_ROOT}/src/VBox/Runtime/common/log/logformat.cpp=>common/log/logformat.c \ 59 63 ${PATH_ROOT}/src/VBox/Runtime/common/math/gcc/divdi3.c=>math/gcc/divdi3.c \ 60 64 ${PATH_ROOT}/src/VBox/Runtime/common/math/gcc/qdivrem.c=>math/gcc/qdivrem.c \ 61 65 ${PATH_ROOT}/src/VBox/Runtime/common/math/gcc/quad.h=>math/gcc/quad.h \ 66 ${PATH_ROOT}/src/VBox/Runtime/common/string/strformat.cpp=>common/string/strformat.c \ 67 ${PATH_ROOT}/src/VBox/Runtime/common/string/strformatrt.cpp=>common/string/strformatrt.c \ 68 ${PATH_ROOT}/src/VBox/Runtime/common/string/strprintf.cpp=>common/string/strprintf.c \ 69 ${PATH_ROOT}/src/VBox/Runtime/common/string/strtonum.cpp=>common/string/strtonum.c \ 62 70 ${PATH_ROOT}/src/VBox/Runtime/include/internal/initterm.h=>include/internal/initterm.h \ 63 71 ${PATH_ROOT}/src/VBox/Runtime/include/internal/magics.h=>include/internal/magics.h \ 64 72 ${PATH_ROOT}/src/VBox/Runtime/include/internal/memobj.h=>include/internal/memobj.h \ 73 ${PATH_ROOT}/src/VBox/Runtime/include/internal/string.h=>include/internal/string.h \ 65 74 ${PATH_ROOT}/src/VBox/Runtime/include/internal/thread.h=>include/internal/thread.h \ 75 ${PATH_ROOT}/src/VBox/Runtime/generic/RTLogWriteStdErr-stub-generic.cpp=>generic/RTLogWriteStdErr-stub-generic.c \ 76 ${PATH_ROOT}/src/VBox/Runtime/generic/RTLogWriteStdOut-stub-generic.cpp=>generic/RTLogWriteStdOut-stub-generic.c \ 77 ${PATH_ROOT}/src/VBox/Runtime/generic/RTLogWriteUser-generic.cpp=>generic/RTLogWriteUser-generic.c \ 66 78 ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.cpp=>r0drv/alloc-r0drv.c \ 67 79 ${PATH_ROOT}/src/VBox/Runtime/r0drv/alloc-r0drv.h=>r0drv/alloc-r0drv.h \ 68 80 ${PATH_ROOT}/src/VBox/Runtime/r0drv/initterm-r0drv.cpp=>r0drv/initterm-r0drv.c \ 81 ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/RTLogWriteDebugger-r0drv-linux.c=>r0drv/linux/RTLogWriteDebugger-r0drv-linux.c \ 69 82 ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/alloc-r0drv-linux.c=>r0drv/linux/alloc-r0drv-linux.c \ 70 83 ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/initterm-r0drv-linux.c=>r0drv/linux/initterm-r0drv-linux.c \ … … 79 92 ${PATH_ROOT}/src/VBox/Runtime/r0drv/linux/thread-r0drv-linux.c=>r0drv/linux/thread-r0drv-linux.c \ 80 93 ${PATH_ROOT}/src/VBox/Runtime/r0drv/memobj-r0drv.cpp=>r0drv/memobj-r0drv.c \ 94 ${PATH_ROOT}/src/VBox/Runtime/VBox/log-vbox.cpp=>VBox/log-vbox.c \ 95 ${PATH_ROOT}/src/VBox/Runtime/VBox/strformat-vbox.cpp=>VBox/strformat-vbox.c \ 81 96 ${PATH_OUT}/version-generated.h=>version-generated.h \ 82 97 " -
trunk/src/VBox/Runtime/common/log/log.cpp
r5999 r6493 1392 1392 } 1393 1393 1394 for (unsigned j = 0; j < 10; j++) 1394 unsigned j; 1395 for (j = 0; j < 10; j++) 1395 1396 { 1396 1397 i = ELEMENTS(g_aPerThreadLoggers); -
trunk/src/VBox/Runtime/common/log/logcom.cpp
r5999 r6493 101 101 RTDECL(void) RTLogWriteCom(const char *pach, size_t cb) 102 102 { 103 for (const uint8_t *pu8 = (const uint8_t *)pach; cb-- > 0; pu8++) 103 const uint8_t *pu8; 104 for (pu8 = (const uint8_t *)pach; cb-- > 0; pu8++) 104 105 { 105 106 /* expand \n -> \r\n */
Note:
See TracChangeset
for help on using the changeset viewer.