VirtualBox

Ignore:
Timestamp:
Feb 13, 2009 12:11:24 AM (16 years ago)
Author:
vboxsync
Message:

Config,VBoxDrv: Updated VBOXR0DRV and VBoxDrv to work with 10a261. The main trick was using the right options: -XLinker -kext and -mkernel. We used to link it as a static (MH_OBJECT) but that no longer works. Also, kextload doesn't work for development purposes, so we'll have to use kextutil instead.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
2 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r16353 r16719  
    338338VBoxDrv.kext_CLEAN    = $(PATH_VBoxDrv.kext)/Info.plist
    339339
    340 $$(PATH_VBoxDrv.kext)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@)
     340$$(PATH_VBoxDrv.kext)/Info.plist: \
     341                $(PATH_SUB_CURRENT)/darwin/Info$(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64",-SnowLeopard,).plist \
     342                $(VBOX_VERSION_MK) | $$(dir $$@)
    341343        $(call MSG_GENERATE,VBoxDrv,$@,$<)
    342344        $(xQUIET)$(RM) -f $@
     
    346348                -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
    347349                -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
    348                 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64",-e '/com\.apple\.kernel/d',) \
    349350                --output $@ \
    350351                $<
  • trunk/src/VBox/HostDrivers/Support/darwin/Info-SnowLeopard.plist

    r16711 r16719  
    2828    <key>OSBundleLibraries</key>
    2929    <dict>
    30         <key>com.apple.kpi.bsd</key>            <string>8.8.1</string>
    31         <key>com.apple.kpi.mach</key>           <string>8.8.1</string>
    32         <key>com.apple.kpi.libkern</key>        <string>8.8.1</string>
    33         <key>com.apple.kpi.unsupported</key>    <string>8.8.1</string>
    34         <key>com.apple.kpi.iokit</key>          <string>8.8.1</string>
    35         <key>com.apple.kernel.bsd</key>         <string>7.9.9</string>
    36         <key>com.apple.kernel.mach</key>        <string>7.9.9</string>
     30        <key>com.apple.kpi.bsd</key>            <string>10.0.0d4</string>
     31        <key>com.apple.kpi.mach</key>           <string>10.0.0d3</string>
     32        <key>com.apple.kpi.libkern</key>        <string>10.0.0d3</string>
     33        <key>com.apple.kpi.iokit</key>          <string>10.0.0d3</string>
     34        <key>com.apple.kpi.unsupported</key>    <string>10.0.0d3</string>
    3735    </dict>
    3836</dict>
  • trunk/src/VBox/HostDrivers/Support/darwin/load.sh

    r15130 r16719  
    127127sync
    128128echo "load.sh: loading $DIR..."
    129 sudo kextload $OPTS "$DIR"
     129
     130if [ "$XNU_VERSION" -ge "10" ]; then
     131    sudo kextutil $OPTS "$DIR"
     132else
     133    sudo kextload $OPTS "$DIR"
     134fi
    130135sync
    131136sudo chown -R `whoami` "$DIR"
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