VirtualBox

Changeset 33364 in vbox


Ignore:
Timestamp:
Oct 22, 2010 3:42:37 PM (14 years ago)
Author:
vboxsync
Message:

Some more extension pack (formerly add-ons) sketches.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r33354 r33364  
    8080 INST_DLL             = $(INST_BIN)
    8181 INST_SYS             = $(INST_BIN)
     82 INST_EXTPACK         = $(INST_BIN)ExtensionPacks/
    8283 INST_TESTCASE        = $(INST_BIN)testcase/
    8384 INST_ADDITIONS       = $(INST_BIN)additions/
     
    9798 INST_DLL             = $(INST_BIN)
    9899 INST_SYS             = $(INST_BIN)
     100 INST_EXTPACK         = $(INST_BIN)ExtensionPacks/
    99101 INST_TESTCASE        = $(INST_BIN)testcase/
    100102 INST_ADDITIONS       = $(INST_BIN)additions/
     
    105107 INST_ADDITIONS_LIB   = $(INST_LIB)additions/
    106108endif
     109INST_EXTPACK_PUEL     = $(INST_EXTPACK)Puel/
    107110
    108111PATH_BIN              = $(patsubst %/,%,$(PATH_INS)/$(INST_BIN))
     
    523526## @}
    524527
     528
     529## @name Extension pack
     530## @{
     531# Enables the extension pack feature.
     532VBOX_WITH_EXTPACK = 1
     533# Enables building of the "PUEL" (final name TBD) extension pack.
     534#VBOX_WITH_EXTPACK_PUEL = 1
     535## @}
    525536
    526537## @name Misc
     
    34333444
    34343445#
    3435 # Templates used for building the add-ons.
    3436 #
    3437 TEMPLATE_VBoxR3AddOn = For the ring-3 context addons.
    3438 TEMPLATE_VBoxR3AddOn_EXTENDS = VBOXR3
    3439 ifeq ($(KBUILD_TARGET),win)
    3440 else
    3441  TEMPLATE_VBoxR3AddOn_CXXFLAGS = $(filter-out $(TEMPLATE_VBOX_CXXFLAGS), -fexceptions) -fno-exceptions
    3442  TEMPLATE_VBoxR3AddOn_CFLAGS   = $(filter-out $(TEMPLATE_VBOX_CFLAGS), -fexceptions -frtti) -fno-exceptions -fno-rtti
    3443 endif
    3444 TEMPLATE_VBoxR3AddOn_LIBS = \
    3445         $(TEMPLATE_LIBS_VBOXR3) \
    3446         $(LIB_RUNTIME) \
    3447         $(LIB_VMM)
    3448 
    3449 TEMPLATE_VBoxR0AddOn = For the ring-0 context addons.
    3450 TEMPLATE_VBoxR0AddOn_EXTENDS = VBoxR0
    3451 
    3452 TEMPLATE_VBoxRcAddOn = For the raw-mode context addons.
    3453 TEMPLATE_VBoxRcAddOn_EXTENDS = VBoxRc
    3454 
     3446# Templates used for building the extension packs.
     3447#
     3448ifdef VBOX_WITH_EXTPACK
     3449 # Base templates (native or portable).
     3450 TEMPLATE_VBoxR3ExtPack = For the ring-3 context extension pack modules.
     3451 if 1 # Native for now.
     3452  TEMPLATE_VBoxR3ExtPack_EXTENDS = VBOXR3DLLNOXCPT
     3453 else
     3454  TEMPLATE_VBoxR3ExtPack_EXTENDS = VBOXNOCRTGCC
     3455  TEMPLATE_VBoxR3ExtPack_DEFS = $(TEMPLATE_VBOXR3DLLNOXCPT_DEFS) IPRT_NO_CRT IN_RING3
     3456  TEMPLATE_VBoxR3ExtPack_INCS = $(PATH_ROOT)/include/iprt/nocrt $(TEMPLATE_VBOXR3DLLNOXCPT_INCS)
     3457 endif
     3458 ifneq ($(KBUILD_TARGET),win)
     3459  TEMPLATE_VBoxR3ExtPack_CXXFLAGS = $(TEMPLATE_VBOXR3DLLNOXCPT_CXXFLAGS) -fno-rtti
     3460 endif
     3461 TEMPLATE_VBoxR3ExtPack_INST = $(INST_EXTPACK)YouShallOverrideThis/
     3462 TEMPLATE_VBoxR3ExtPack_LIBS = \
     3463        $(TEMPLATE_LIBS_VBOXR3) \
     3464        $(LIB_RUNTIME) \
     3465        $(LIB_VMM)
     3466
     3467 TEMPLATE_VBoxR0ExtPack = For the ring-0 context extension pack modules.
     3468 TEMPLATE_VBoxR0ExtPack_EXTENDS = VBoxR0
     3469 TEMPLATE_VBoxR0ExtPack_INST = $(INST_EXTPACK)YouShallOverrideThis/
     3470
     3471 TEMPLATE_VBoxRcExtPack = For the raw-mode context extension pack modules.
     3472 TEMPLATE_VBoxRcExtPack_EXTENDS = VBoxRc
     3473 TEMPLATE_VBoxRcExtPack_INST = $(INST_EXTPACK)YouShallOverrideThis/
     3474
     3475 # For each individual extension pack
     3476 ifdef VBOX_WITH_EXTPACK_PUEL
     3477  TEMPLATE_VBoxR3ExtPackPuel = For the ring-3 context modules in the PUEL extension pack.
     3478  TEMPLATE_VBoxR3ExtPackPuel_EXTENDS = VBoxR3ExtPack
     3479  TEMPLATE_VBoxR3ExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
     3480
     3481  TEMPLATE_VBoxR0ExtPackPuel = For the ring-0 context modules in the PUEL extension pack.
     3482  TEMPLATE_VBoxR0ExtPackPuel_EXTENDS = VBoxR0ExtPack
     3483  TEMPLATE_VBoxR0ExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
     3484
     3485  TEMPLATE_VBoxRcExtPackPuel = For the raw-mode context modules in the PUEL extension pack.
     3486  TEMPLATE_VBoxRcExtPackPuel_EXTENDS = VBoxRcExtPack
     3487  TEMPLATE_VBoxRcExtPackPuel_INST = $(INST_EXTPACK_PUEL)$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)/
     3488 endif
     3489endif # VBOX_WITH_EXTPACK
    34553490
    34563491
  • trunk/src/VBox/Devices/Makefile.kmk

    r33352 r33364  
    6767 VBoxDDU_DEFS           += VBOX_WITH_USB IN_USBLIB
    6868 VBoxDDU_SDKS.win        = WINPSDK W2K3DDK
    69  if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_ADDONS)
     69 if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
    7070  VBoxDDU_DEFS          += VBOX_WITH_EHCI
    7171 endif
     
    136136ifdef VBOX_WITH_USB
    137137 VBoxDD_DEFS           += VBOX_WITH_USB
    138  if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_ADDONS)
     138 if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
    139139  VBoxDD_DEFS          += VBOX_WITH_EHCI
    140140 endif
     
    452452ifdef VBOX_WITH_USB
    453453 DevicesR3_DEFS        += VBOX_WITH_USB
    454  if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_ADDONS)
     454 if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
    455455  DevicesR3_DEFS       += VBOX_WITH_EHCI
    456456  DevicesR3_SOURCES    += \
     
    611611 ifdef VBOX_WITH_USB
    612612  VBoxDDGC_DEFS        += VBOX_WITH_USB
    613   if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_ADDONS)
     613  if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
    614614   VBoxDDGC_DEFS       += VBOX_WITH_EHCI
    615615   VBoxDDGC_SOURCES    += \
     
    737737ifdef VBOX_WITH_USB
    738738VBoxDDR0_DEFS          += VBOX_WITH_USB
    739  if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_ADDONS)
     739 if defined(VBOX_WITH_EHCI) && !defined(VBOX_WITH_EXTPACK_PUEL)
    740740  VBoxDDR0_DEFS        += VBOX_WITH_EHCI
    741741  VBoxDDR0_SOURCES     += \
     
    11901190
    11911191#
    1192 # The EHCI (USB 2.0) Add-On Modules.
    1193 #
    1194 if defined(VBOX_WITH_USB) && defined(VBOX_WITH_ADDONS)
     1192# The EHCI (USB 2.0) Extension Pack Modules.
     1193#
     1194if defined(VBOX_WITH_USB) && defined(VBOX_WITH_EXTPACK_PUEL)
    11951195 DLLS += VBoxEhciR3
    1196  VBoxEhciR3_TEMPLATE = VBoxR3AddOn
     1196 VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
    11971197 VBoxEhciR3_SOURCES  = USB/DevEHCI.cpp
    11981198
    11991199 SYSMODS += VBoxEhciR0
    1200  VBoxEhciR0_TEMPLATE = VBoxR0AddOn
     1200 VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
    12011201 VBoxEhciR0_SOURCES  = USB/DevEHCI.cpp
    12021202
    12031203 ifdef VBOX_WITH_RAW_MODE
    12041204  SYSMODS += VBoxEhciRC
    1205   VBoxEhciRC_TEMPLATE = VBoxRcAddOn
     1205  VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
    12061206  VBoxEhciRC_SOURCES  = USB/DevEHCI.cpp
    12071207 endif
    1208 endif # VBOX_WITH_USB && VBOX_WITH_ADDONS
     1208endif # VBOX_WITH_USB && VBOX_WITH_EXTPACK_PUEL
    12091209
    12101210
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette