VirtualBox

Ignore:
Timestamp:
Jun 17, 2008 7:59:17 AM (17 years ago)
Author:
vboxsync
Message:

Solaris additions installer: 64-bit changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/solaris/Installer/makepackage.sh

    r9052 r9748  
    2020#
    2121# Usage:
    22 #       makespackage.sh $(PATH_TARGET)/install packagename
     22#       makespackage.sh $(PATH_TARGET)/install packagename $(KBUILD_TARGET_ARCH)
    2323
    24 if test -z "$2"; then
    25     echo "Usage: $0 installdir packagename"
     24if test -z "$3"; then
     25    echo "Usage: $0 installdir packagename x86|amd64"
    2626    exit 1
    2727fi
     
    5656$MY_AWK 'NF == 6 && $2 == "none" { $3 = "opt/VirtualBoxAdditions/"$3"="$3 } { print }' prototype2 > prototype
    5757
    58 # install the kernel module to the right place (for now only 32-bit guests)
    59 $MY_AWK 'NF == 6 && $3 == "opt/VirtualBoxAdditions/vboxguest=vboxguest" { $3 = "platform/i86pc/kernel/drv/vboxguest=vboxguest" } { print }' prototype > prototype2
     58# install the kernel module to the right place
     59if test "$3" = "x86"; then
     60    $MY_AWK 'NF == 6 && $3 == "opt/VirtualBoxAdditions/vboxguest=vboxguest" { $3 = "platform/i86pc/kernel/drv/vboxguest=vboxguest"; $6 = "sys" } { print }' prototype > prototype2
     61else
     62    $MY_AWK 'NF == 6 && $3 == "opt/VirtualBoxAdditions/vboxguest=vboxguest" { $3 = "platform/i86pc/kernel/drv/amd64/vboxguest=vboxguest"; $6 = "sys" } { print }' prototype > prototype2
     63fi
    6064$MY_AWK 'NF == 6 && $3 == "opt/VirtualBoxAdditions/vboxguest.conf=vboxguest.conf" { $3 = "platform/i86pc/kernel/drv/vboxguest.conf=vboxguest.conf" } { print }' prototype2 > prototype
    6165
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