VirtualBox

Changeset 32164 in vbox


Ignore:
Timestamp:
Aug 31, 2010 9:41:48 PM (14 years ago)
Author:
vboxsync
Message:

Additions/x11 build vboxvideo and vboxmouse for X.Org Server 1.9

Location:
trunk/src/VBox/Additions/x11
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxmouse/Makefile.kmk

    r31391 r32164  
    176176        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
    177177        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
    178         $(VBOX_PATH_X11_ROOT)/xproto-7.0.15 \
     178        $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
    179179        $(PATH_SUB_CURRENT)
    180180vboxmouse_drv_17_SOURCES = \
     
    196196        $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0 \
    197197        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
    198         $(VBOX_PATH_X11_ROOT)/xproto-7.0.15 \
     198        $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
    199199        $(PATH_SUB_CURRENT)
    200200vboxmouse_drv_18_SOURCES = \
     201        vboxmouse_15.c
     202
     203
     204#
     205# vboxmouse_drv_19
     206#
     207DLLS += vboxmouse_drv_19
     208vboxmouse_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
     209vboxmouse_drv_19_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
     210## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
     211vboxmouse_drv_19_INCS := \
     212        $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
     213        $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
     214        $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
     215        $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
     216        $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0 \
     217        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
     218        $(VBOX_PATH_X11_ROOT)/xproto-7.0.18 \
     219        $(PATH_SUB_CURRENT)
     220vboxmouse_drv_19_SOURCES = \
    201221        vboxmouse_15.c
    202222
     
    287307        $(QUIET)$(APPEND) -t "$@" "done"
    288308
     309     TESTING  += $(PATH_vboxmouse_drv_19)/tstvboxmouse19.run
     310     OTHERS += $(PATH_vboxmouse_drv_19)/tstvboxmouse19.run
     311$$(PATH_vboxmouse_drv_19)/tstvboxmouse19.run: $$(INSTARGET_vboxmouse_drv_19)
     312        $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
     313        $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET)  \
     314            $(INSTARGET_vboxmouse_drv_19) $(OUR_PATH_VBOXMOUSE)/undefined_15
     315        $(QUIET)$(APPEND) -t "$@" "done"
     316
    289317    endif # ! VBOX_ONLY_SDK
    290318   endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
  • trunk/src/VBox/Additions/x11/vboxvideo/Makefile.kmk

    r31414 r32164  
    9797        $(VBOX_PATH_X11_XORG_7_0)/X11 \
    9898        $(VBOX_PATH_X11_XORG_7_0)/xorg
    99 vboxvideo_drv_70_SOURCES  = \
    100         vboxvideo_70.c \
    101         vboxutils.c
     99vboxvideo_drv_70_SOURCES  = $(vboxvideo_drv_SOURCES)
    102100
    103101
     
    113111        $(VBOX_PATH_X11_XORG_7_1)/X11 \
    114112        $(VBOX_PATH_X11_XORG_7_1)/xorg
    115 vboxvideo_drv_71_SOURCES  = \
    116         vboxvideo_70.c \
    117         vboxutils.c
     113vboxvideo_drv_71_SOURCES  = $(vboxvideo_drv_SOURCES)
    118114
    119115
     
    156152        $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
    157153        $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0
    158 vboxvideo_drv_14_SOURCES  = \
    159         vboxvideo_13.c \
    160         vboxutils.c
     154vboxvideo_drv_14_SOURCES  = $(vboxvideo_drv_13_SOURCES)
    161155
    162156
     
    180174        $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
    181175        $(VBOX_PATH_X11_ROOT)/xorg-server-1.5.3
    182 vboxvideo_drv_15_SOURCES  = \
    183         vboxvideo_13.c \
    184         vboxutils.c
     176vboxvideo_drv_15_SOURCES  = $(vboxvideo_drv_13_SOURCES)
    185177if1of ($(KBUILD_TARGET), linux solaris)
    186178 vboxvideo_drv_15_SOURCES += \
     
    230222        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.99-20090831 \
    231223        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
    232         $(VBOX_PATH_X11_ROOT)/xproto-7.0.15
     224        $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
    233225vboxvideo_drv_17_SOURCES := $(vboxvideo_drv_15_SOURCES)
    234226
     
    256248        $(VBOX_PATH_X11_ROOT)/xorg-server-1.8.0 \
    257249        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
    258         $(VBOX_PATH_X11_ROOT)/xproto-7.0.15
     250        $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
    259251vboxvideo_drv_18_SOURCES := $(vboxvideo_drv_15_SOURCES)
     252
     253
     254#
     255# vboxvideo_drv_19
     256#
     257DLLS += vboxvideo_drv_19
     258vboxvideo_drv_19_TEMPLATE = VBOXGUESTR3XORGMOD
     259vboxvideo_drv_19_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
     260vboxvideo_drv_19_DEFS := $(vboxvideo_drv_15_DEFS)
     261## @todo replace $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local
     262vboxvideo_drv_19_INCS = \
     263        $(VBOX_PATH_X11_ROOT)/fontsproto-2.1.0 \
     264        $(VBOX_PATH_X11_ROOT)/glproto-1.4.10 \
     265        $(VBOX_PATH_X11_ROOT)/mesa-7.2/include \
     266        $(VBOX_PATH_X11_ROOT)/inputproto-1.9.99.902 \
     267        $(VBOX_PATH_X11_ROOT)/libdrm-2.4.13 \
     268        $(VBOX_PATH_X11_ROOT)/libpciaccess-0.10.8 \
     269        $(VBOX_PATH_X11_ROOT)/pixman-0.16.0 \
     270        $(VBOX_PATH_X11_ROOT)/randrproto-1.3.0 \
     271        $(VBOX_PATH_X11_ROOT)/renderproto-0.11 \
     272        $(VBOX_PATH_X11_ROOT)/xextproto-7.1.1 \
     273        $(VBOX_PATH_X11_ROOT)/xf86driproto-2.1.0 \
     274        $(VBOX_PATH_X11_ROOT)/xorg-server-1.9.0 \
     275        $(VBOX_PATH_X11_ROOT)/xorg-server-1.6.0-local \
     276        $(VBOX_PATH_X11_ROOT)/xproto-7.0.18
     277vboxvideo_drv_19_SOURCES := $(vboxvideo_drv_15_SOURCES)
    260278
    261279
     
    343361        $(QUIET)$(APPEND) -t "$@" "done"
    344362
     363     TESTING  += $(PATH_vboxvideo_drv_19)/tstvboxvideo19.run
     364     OTHERS += $(PATH_vboxvideo_drv_19)/tstvboxvideo19.run
     365$$(PATH_vboxvideo_drv_19)/tstvboxvideo19.run: $$(INSTARGET_vboxvideo_drv_19)
     366        $(QUIET)$(call MSG_L1,Checking for unresolved symbols in $<)
     367        $(QUIET)/bin/sh $(PATH_ROOT)/src/bldprogs/checkUndefined.sh $(KBUILD_TARGET)  \
     368            $(INSTARGET_vboxvideo_drv_19) $(OUR_PATH_VBOXVIDEO)/undefined_13
     369        $(QUIET)$(APPEND) -t "$@" "done"
     370
    345371    endif # ! VBOX_ONLY_SDK
    346372   endif # eq ($(KBUILD_HOST_ARCH),$(KBUILD_TARGET_ARCH))
  • trunk/src/VBox/Additions/x11/vboxvideo/undefined_68

    r31409 r32164  
    8787xf86UnMapVidMem
    8888xf86ValidateModes
     89xf86calloc
    8990xf86close
    9091xf86errno
     92xf86free
    9193xf86ioctl
    9294xf86isspace
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxutils.c

    r28800 r32164  
    173173    TRACE_ENTRY();
    174174
    175     xfree (pVBox->reqp);
     175    free (pVBox->reqp);
    176176    pVBox->reqp = NULL;
    177177    TRACE_EXIT();
     
    437437
    438438    size = vmmdevGetRequestSize(VMMDevReq_SetPointerShape);
    439     p = xcalloc(1, size);
     439    p = calloc(1, size);
    440440    if (p)
    441441    {
     
    450450        }
    451451        xf86DrvMsg(scrnIndex, X_ERROR, "Could not init VMM request: rc = %d\n", rc);
    452         xfree(p);
     452        free(p);
    453453    }
    454454    xf86DrvMsg(scrnIndex, X_ERROR, "Could not allocate %lu bytes for VMM request\n", (unsigned long)size);
     
    609609    sizeRequest = pVBox->pointerSize + pVBox->pointerHeaderSize;
    610610
    611     p = c = xcalloc (1, sizeRequest);
     611    p = c = calloc (1, sizeRequest);
    612612    if (!c)
    613613        RETERROR(scrnIndex, NULL,
     
    619619    {
    620620        xf86DrvMsg(scrnIndex, X_ERROR, "Could not init VMM request: rc = %d\n", rc);
    621         xfree(p);
     621        free(p);
    622622        return NULL;
    623623    }
     
    766766    pVBox->pointerSize = w * h * 4 + sizeMask;
    767767    sizeRequest = pVBox->pointerSize + pVBox->pointerHeaderSize;
    768     p = xcalloc(1, sizeRequest);
     768    p = calloc(1, sizeRequest);
    769769    if (!p)
    770770        RETERROR(scrnIndex, ,
     
    816816
    817817    VbglR3SetPointerShapeReq(reqp);
    818     xfree(p);
     818    free(p);
    819819}
    820820#endif
     
    10921092    {
    10931093        if (m->name)
    1094             xfree(m->name);
     1094            free(m->name);
    10951095        m->name      = xnfstrdup(pszName);
    10961096    }
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo_13.c

    r29384 r32164  
    170170{
    171171    if (!pScrn->driverPrivate) {
    172         pScrn->driverPrivate = xcalloc(sizeof(VBOXRec), 1);
     172        pScrn->driverPrivate = calloc(sizeof(VBOXRec), 1);
    173173    }
    174174
     
    180180{
    181181    VBOXPtr pVBox = VBOXGetRec(pScrn);
    182     xfree(pVBox->savedPal);
    183     xfree(pVBox->fonts);
    184     xfree(pScrn->driverPrivate);
     182    free(pVBox->savedPal);
     183    free(pVBox->fonts);
     184    free(pScrn->driverPrivate);
    185185    pScrn->driverPrivate = NULL;
    186186}
     
    626626                }
    627627            }
    628             xfree(usedChips);
     628            free(usedChips);
    629629        }
    630630    }
    631631
    632     xfree(devSections);
     632    free(devSections);
    633633
    634634    return (foundScreen);
     
    760760    /* options */
    761761    xf86CollectOptions(pScrn, NULL);
    762     if (!(pVBox->Options = xalloc(sizeof(VBOXOptions))))
     762    if (!(pVBox->Options = malloc(sizeof(VBOXOptions))))
    763763        return FALSE;
    764764    memcpy(pVBox->Options, VBOXOptions, sizeof(VBOXOptions));
     
    11231123        mode = xf86CVTMode(p->HDisplay, p->VDisplay, v, 0, 0);
    11241124        ret = xf86CheckModeForMonitor(mode, mon);
    1125         xfree(mode);
     1125        free(mode);
    11261126        if (ret == MODE_OK)
    11271127            break;
     
    13511351                /* don't rely on the memory not being touched */
    13521352                if (pVBox->pstate == NULL)
    1353                     pVBox->pstate = xalloc(pVBox->stateSize);
     1353                    pVBox->pstate = malloc(pVBox->stateSize);
    13541354                memcpy(pVBox->pstate, pVBox->state,
    13551355                       (unsigned) pVBox->stateSize);
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