Changeset 40778 in vbox for trunk/src/VBox/HostDrivers
- Timestamp:
- Apr 5, 2012 3:36:18 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/Makefile.kmk
r40777 r40778 46 46 LIBRARIES += SUPR0IdcClient 47 47 SYSMODS.freebsd += vboxdrv 48 SYSMODS.win += VBoxDrv49 48 SYSMODS.os2 += VBoxDrv 50 49 endif … … 167 166 168 167 168 169 169 if !defined(VBOX_ONLY_DOCS) \ 170 170 && !defined(VBOX_ONLY_EXTPACKS) \ 171 171 && !defined(VBOX_ONLY_TESTSUITE) 172 173 #174 # VBoxDrv.sys - The Windows driver.175 #176 ## @todo consolidate all the targets into a single mess.177 ifeq ($(KBUILD_TARGET),win)178 VBoxDrv_TEMPLATE = VBOXR0DRV179 ifdef VBOX_SIGNING_MODE180 VBoxDrv_INSTTYPE = none181 VBoxDrv_DEBUG_INSTTYPE = both182 endif183 VBoxDrv_DEFS = IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER184 ifdef VBOX_WITHOUT_NATIVE_R0_LOADER185 VBoxDrv_DEFS += VBOX_WITHOUT_NATIVE_R0_LOADER186 endif187 ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION188 VBoxDrv_DEFS += VBOX_WITH_VMMR0_DISABLE_PREEMPTION189 endif190 VBoxDrv_SDKS = W2K3DDK WINPSDKINCS191 VBoxDrv_INCS := $(PATH_SUB_CURRENT)192 VBoxDrv_SOURCES = \193 win/SUPDrv-win.cpp \194 win/SUPDrvA-win.asm \195 SUPDrv.c \196 SUPDrvSem.c \197 win/VBoxDrv.rc198 VBoxDrv_LDFLAGS.x86 = -Entry:DriverEntry@8199 VBoxDrv_LDFLAGS.amd64 = -Entry:DriverEntry200 VBoxDrv_LIBS = \201 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \202 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \203 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB)204 205 206 INSTALLS += VBoxDrv-inf207 VBoxDrv-inf_INST = $(INST_BIN)208 VBoxDrv-inf_MODE = a+r,u+w209 VBoxDrv-inf_SOURCES = \210 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf211 VBoxDrv-inf_CLEAN = $(VBoxDrv-inf_SOURCES)212 VBoxDrv-inf_BLDDIRS = $(PATH_TARGET)/VBoxDrvCat.dir213 214 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf: $(PATH_SUB_CURRENT)/win/VBoxDrv.inf $(MAKEFILE_CURRENT) | $$(dir $$@)215 $(call MSG_GENERATE,VBoxDrv-inf,$@,$<)216 $(call VBOX_EDIT_INF_FN,$<,$@)217 218 ifdef VBOX_SIGNING_MODE219 VBoxDrv-inf_SOURCES += \220 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys \221 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat222 223 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys: $$(VBoxDrv_1_TARGET) | $$(dir $$@)224 $(INSTALL) -m 644 $< $(@D)225 226 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat: \227 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf \228 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys229 $(call MSG_TOOL,Inf2Cat,VBoxDrv-inf,$@,$<)230 $(call VBOX_MAKE_CAT_FN, $(@D),$@)231 endif # signing232 endif # win233 234 172 235 173 ifeq ($(KBUILD_TARGET),os2) … … 317 255 VBoxDrv_NAME.linux = vboxdrv 318 256 VBoxDrv_NAME.solaris = vboxdrv 257 ifdef VBOX_SIGNING_MODE 258 VBoxDrv_INSTTYPE = none 259 VBoxDrv_DEBUG_INSTTYPE = both 260 endif 319 261 VBoxDrv_INST.darwin = $(INST_VBOXDRV)Contents/MacOS/ 262 VBoxDrv_SDKS.win = W2K3DDK WINPSDKINCS 263 320 264 VBoxDrv_DEFS := IN_RT_R0 IN_SUP_R0 SUPDRV_WITH_RELEASE_LOGGER VBOX_SVN_REV=$(VBOX_SVN_REV) 321 265 ifdef VBOX_WITH_DTRACE_R0DRV 322 266 VBoxDrv_DEFS += VBOX_WITH_DTRACE VBOX_WITH_DTRACE_R0DRV 323 267 endif 324 ifdef VBOX_WITH_NETFLT 325 VBoxDrv_DEFS.solaris += VBOX_WITH_NETFLT 326 endif 327 ifdef VBOX_WITH_NATIVE_SOLARIS_LOADING 328 VBoxDrv_DEFS.solaris += VBOX_WITH_NATIVE_SOLARIS_LOADING 329 endif 268 #VBoxDrv_DEFS.debug += DEBUG_DARWIN_GIP 269 VBoxDrv_DEFS.darwin := VBOX_WITH_HOST_VMX 330 270 VBoxDrv_DEFS.linux := \ 331 271 KBUILD_MODNAME=KBUILD_STR\(vboxdrv\) KBUILD_BASENAME=KBUILD_STR\(vboxdrv\) MODULE CONFIG_VBOXDRV_AS_MISC … … 333 273 VBoxDrv_DEFS.linux += EXPORT_SYMTAB 334 274 endif 335 VBoxDrv_DEFS.darwin := VBOX_WITH_HOST_VMX 336 #VBoxDrv_DEFS.debug += DEBUG_DARWIN_GIP 275 ifdef VBOX_WITH_NETFLT 276 VBoxDrv_DEFS.solaris += VBOX_WITH_NETFLT 277 endif 278 ifdef VBOX_WITH_NATIVE_SOLARIS_LOADING 279 VBoxDrv_DEFS.solaris += VBOX_WITH_NATIVE_SOLARIS_LOADING 280 endif 281 ifdef VBOX_WITHOUT_NATIVE_R0_LOADER 282 VBoxDrv_DEFS.win += VBOX_WITHOUT_NATIVE_R0_LOADER 283 endif 284 ifdef VBOX_WITH_VMMR0_DISABLE_PREEMPTION 285 VBoxDrv_DEFS.win += VBOX_WITH_VMMR0_DISABLE_PREEMPTION 286 endif 287 337 288 VBoxDrv_INCS = . $(VBoxDrv_0_OUTDIR) 338 289 VBoxDrv_INCS.darwin = ./darwin 339 290 VBoxDrv_INCS.linux = $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux 291 340 292 VBoxDrv_LIBS = $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 341 #VBoxDrv_LDFLAGS = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded342 293 VBoxDrv_LIBS.linux.debug = $(VBoxDrv_LIBS) $(VBOX_GCC_LIBGCC) 294 VBoxDrv_LIBS.win = \ 295 $(PATH_SDK_W2K3DDK_LIB)/ntoskrnl.lib \ 296 $(PATH_SDK_W2K3DDK_LIB)/hal.lib \ 297 $(PATH_STAGE_LIB)/RuntimeR0Drv$(VBOX_SUFF_LIB) 298 299 #VBoxDrv_LDFLAGS.darwin = -v -Wl,-whyload -Wl,-v -Wl,-whatsloaded 300 VBoxDrv_LDFLAGS.solaris += -N misc/ctf 301 VBoxDrv_LDFLAGS.win.x86 = -Entry:DriverEntry@8 302 VBoxDrv_LDFLAGS.win.amd64= -Entry:DriverEntry 343 303 344 304 VBoxDrv_SOURCES.darwin = darwin/SUPDrv-darwin.cpp 345 305 VBoxDrv_SOURCES.solaris = solaris/SUPDrv-solaris.c 306 VBoxDrv_SOURCES.win = \ 307 win/SUPDrv-win.cpp \ 308 win/SUPDrvA-win.asm \ 309 win/SUPDrv.rc 346 310 VBoxDrv_SOURCES = \ 347 311 SUPDrv.c \ … … 353 317 SUPDrvTracerA.asm 354 318 endif 355 ifdef VBOX_WITH_DTRACE_R0DRV 319 ifndef VBOX_LINUX_VERSION_2_4 320 VBoxDrv_SOURCES.linux += \ 321 linux/SUPDrv-linux.mod.c 322 endif 323 324 ifdef VBOX_WITH_DTRACE_R0DRV # FIXME 356 325 VBoxDrv_SOURCES += \ 357 326 SUPDrv-dtrace.cpp … … 359 328 VBoxDrv_LDFLAGS.solaris+= -N misc/dtrace 360 329 endif 361 VBoxDrv_LDFLAGS.solaris += -N misc/ctf 362 ifndef VBOX_LINUX_VERSION_2_4 363 VBoxDrv_SOURCES.linux += \ 364 linux/SUPDrv-linux.mod.c 365 endif 366 endif 330 331 endif 332 367 333 368 334 … … 432 398 433 399 400 ifeq ($(KBUILD_TARGET), win) 401 INSTALLS.win += VBoxDrv-inf 402 VBoxDrv-inf_INST = $(INST_BIN) 403 VBoxDrv-inf_MODE = a+r,u+w 404 VBoxDrv-inf_SOURCES = \ 405 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf 406 VBoxDrv-inf_CLEAN = $(VBoxDrv-inf_SOURCES) 407 VBoxDrv-inf_BLDDIRS = $(PATH_TARGET)/VBoxDrvCat.dir 408 409 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf: $(PATH_SUB_CURRENT)/win/VBoxDrv.inf $(MAKEFILE_CURRENT) | $$(dir $$@) 410 $(call MSG_GENERATE,VBoxDrv-inf,$@,$<) 411 $(call VBOX_EDIT_INF_FN,$<,$@) 412 413 ifdef VBOX_SIGNING_MODE 414 VBoxDrv-inf_SOURCES += \ 415 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys \ 416 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat 417 418 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys: $$(VBoxDrv_1_TARGET) | $$(dir $$@) 419 $(INSTALL) -m 644 $< $(@D) 420 421 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.cat: \ 422 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.inf \ 423 $(PATH_TARGET)/VBoxDrvCat.dir/VBoxDrv.sys 424 $(call MSG_TOOL,Inf2Cat,VBoxDrv-inf,$@,$<) 425 $(call VBOX_MAKE_CAT_FN, $(@D),$@) 426 endif # signing 427 endif # win 428 429 434 430 endif # !VBOX_ONLY_DOCS && !VBOX_ONLY_EXTPACKS && !VBOX_ONLY_TESTSUITE 435 431 include $(KBUILD_PATH)/subfooter.kmk
Note:
See TracChangeset
for help on using the changeset viewer.