VirtualBox

Changeset 94866 in vbox for trunk/src/VBox/Installer/darwin


Ignore:
Timestamp:
May 5, 2022 8:08:47 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
151266
Message:

Installer/darwin: Need to modify host architecture detection in the installation script depending on the build target architecture, bugref:9898

Location:
trunk/src/VBox/Installer/darwin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r94860 r94866  
    4141else
    4242 VBOX_QT_VERSION_MAJOR = 5
     43endif
     44
     45ifeq ($(KBUILD_TARGET_ARCH),arm64)
     46 VBOX_DI_TARGET_ARCH = arm64
     47 VBOX_DI_ARCH_LIST   = arm64
     48else # Assume amd64 for now
     49 VBOX_DI_TARGET_ARCH = x86-64
     50 VBOX_DI_ARCH_LIST   = i386,arm64
    4351endif
    4452
     
    211219                --output $(VBOX_PATH_PACK_TMP)/VirtualBox.dist.res/English.lproj/Welcome.rtf \
    212220                $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Welcome.rtf
     221        @# Do keyword replacement in the distribution script.
     222        $(SED) \
     223                -e 's/@VBOX_TARGET_ARCH@/$(VBOX_DI_TARGET_ARCH)/g' \
     224                -e 's/@VBOX_ARCH_LIST@/$(VBOX_DI_ARCH_LIST)/g' \
     225                --output $(VBOX_PATH_PACK_TMP)/distribution.dist \
     226                $(if $(VBOX_WITH_VBOXDRV), $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution.dist, $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution-driverless.dist)
    213227        @# Copy the resources.
    214228        $(INSTALL) -m 0644 $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/Conclusion.rtf                   $(VBOX_PATH_PACK_TMP)/VirtualBox.dist.res/English.lproj/Conclusion.rtf
     
    240254        @# Build the package.
    241255        $(VBOX_PRODUCTBUILD) \
    242                 --distribution $(if $(VBOX_WITH_VBOXDRV), $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution.dist, $(VBOX_PATH_DI_SRC)/VirtualBox_mpkg/distribution-driverless.dist) \
     256                --distribution $(VBOX_PATH_PACK_TMP)/distribution.dist \
    243257                --package-path $(VBOX_PATH_PACK_TMP)/Packages \
    244258                --resources $(VBOX_PATH_PACK_TMP)/VirtualBox.dist.res \
  • trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution-driverless.dist

    r94855 r94866  
    1515<installer-gui-script minSpecVersion="1.0">
    1616    <title>VirtualBox_title</title>
    17     <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="i386,arm64"/>
     17    <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="@VBOX_ARCH_LIST@"/>
    1818    <installation-check script="checkPrerequisite()"></installation-check>
    1919    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
     
    4242           test = system.sysctl('hw.machine');
    4343           system.log("Hardware architecture detected: " + test);
    44            result = (test == 'x86_64');
     44           result = (test == '@VBOX_TARGET_ARCH@');
    4545       } catch (e) { system.log(e); result = false; }
    4646
  • trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist

    r94855 r94866  
    1515<installer-gui-script minSpecVersion="1.0">
    1616    <title>VirtualBox_title</title>
    17     <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="i386,arm64"/>
     17    <options customize="allow" allow-external-scripts="yes" rootVolumeOnly="true" hostArchitectures="@VBOX_ARCH_LIST@"/>
    1818    <installation-check script="checkPrerequisite()"></installation-check>
    1919    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
     
    4242           test = system.sysctl('hw.machine');
    4343           system.log("Hardware architecture detected: " + test);
    44            result = (test == 'x86_64');
     44           result = (test == '@VBOX_TARGET_ARCH@');
    4545       } catch (e) { system.log(e); result = false; }
    4646
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