VirtualBox

Changeset 75280 in vbox


Ignore:
Timestamp:
Nov 6, 2018 12:51:50 PM (6 years ago)
Author:
vboxsync
Message:

Config.kmk, nstaller/darwin/Makefile.kmk: More VBOX_CCS_SIGN_CMD and VBOX_WITH_CORP_CODE_SIGNING use for darwin.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r75210 r75280  
    36213621  endif
    36223622
    3623   # The above version with complicated requirements is what Xcode 5.0.1GM suggest for kexts.
     3623  ## Sign an application bundle, framework or kernel extension.
     3624  # @param 1  The bundle to sign.
     3625  # @param 2  Identifier, optional.
     3626  # @param 3  Additional codesign command line parameters, optional.
    36243627  ifdef VBOX_WITH_CORP_CODE_SIGNING
    36253628   ## @todo cannot handle $(2), the identifier. $(3) is hopefully either empty or --deep
    36263629   VBOX_SIGN_BUNDLE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB) \
    3627     ditto -c -k $(1) $(1).zip$(NLTAB) \
    3628     $(call VBOX_CCS_SIGN_CMD,apple,$(1).zip,,$(3))$(NLTAB) \
    3629         ditto -x -k $(1).zip $(1)
     3630        ditto -c -k --keepParent $(1) $(1).zip$(NLTAB) \
     3631        $(call VBOX_CCS_SIGN_CMD,apple,$(1).zip,,$(3))$(NLTAB) \
     3632        ditto -x -k $(1).zip $(1)/../
    36303633  else
    36313634   VBOX_SIGN_BUNDLE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(VBOX_CODESIGN) \
     
    36343637        --file-list - \
    36353638        $(if-expr defined(VBOX_TSA_URL),--timestamp="$(VBOX_TSA_URL)") \
    3636        $(3) \
     3639        $(3) \
    36373640        $(VBOX_CERTIFICATE_SUBJECT_NAME_ARGS) \
    36383641        $(1) $(if $(2),--identifier "$(2)",)
     
    36403643
    36413644  ## Sign a Mach-O image.
    3642   # @param 1  The bundle to sign.
     3645  # @param 1  The file to sign.
    36433646  # @param 2  Identifier, optional.
    3644   VBOX_SIGN_MACHO_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(VBOX_CODESIGN) \
     3647  ifdef VBOX_WITH_CORP_CODE_SIGNING
     3648   ## @todo cannot handle $(2), the identifier.
     3649   VBOX_SIGN_MACHO_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,binary,$(1))
     3650  else
     3651   VBOX_SIGN_MACHO_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(VBOX_CODESIGN) \
    36453652        --verbose=9 \
    36463653        --force \
     
    36503657        $(1) \
    36513658        $(if $(2),--identifier "$(2)",)
     3659  endif
    36523660
    36533661  ## Sign a VMM Mach-O image.
    3654   # @param 1  The bundle to sign.
     3662  # @param 1  The file to sign.
    36553663  # @param 2  Identifier, optional.
    36563664  VBOX_SIGN_VMM_MOD_FN = $(VBOX_SIGN_MACHO_FN)
    36573665
    36583666  ## Sign a non-executable file.
    3659   # @param 1  The bundle to sign.
     3667  # @param 1  The file to sign.
    36603668  # @param 2  Identifier, optional.
    3661   VBOX_SIGN_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(VBOX_CODESIGN) \
     3669  ifdef VBOX_WITH_CORP_CODE_SIGNING
     3670   ## @todo cannot handle $(2), the identifier.
     3671   VBOX_SIGN_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,binary,$(1))
     3672  else
     3673   VBOX_SIGN_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(VBOX_CODESIGN) \
    36623674        --verbose=9 \
    36633675        --force \
     
    36673679        $(1) \
    36683680        $(if $(2),--identifier "$(2)",)
     3681  endif
     3682
     3683  ## Sign a DMG image.
     3684  # @param 1  The file to sign.
     3685  # @param 2  Identifier, optional.
     3686  ifdef VBOX_WITH_CORP_CODE_SIGNING
     3687   ## @todo cannot handle $(2), the identifier.
     3688   VBOX_SIGN_DMG_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB) \
     3689        $(call VBOX_CCS_SIGN_CMD,mac_dmg,$(1))$(NLTAB) \
     3690        ditto -x -k $(1).zip $(dir $(1))
     3691  else
     3692   VBOX_SIGN_DMG_FN = $(VBOX_SIGN_FILE_FN)
     3693  endif
     3694
     3695  ## Sign a PKG file. Used with corp code signing only.
     3696  # @param 1  The file to sign.
     3697  # @param 2  Identifier, optional.
     3698  ifdef VBOX_WITH_CORP_CODE_SIGNING
     3699   ## @todo cannot handle $(2), the identifier.
     3700   VBOX_SIGN_PKG_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,mac_pkg,$(1)) \
     3701  endif
    36693702
    36703703  ## @def VBOX_TEST_SIGN_KEXT
  • trunk/src/VBox/Installer/darwin/Makefile.kmk

    r74770 r75280  
    164164 ifndef VBOX_WITHOUT_SIGNED_DMG
    165165        @# Sign the created dmg.
    166         $(call VBOX_SIGN_FILE_FN,$@,org.virtualbox.dmg)
     166        $(call VBOX_SIGN_DMG_FN,$@,org.virtualbox.dmg)
    167167 endif
    168168endif
     
    239239                $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \
    240240                $@
     241ifdef VBOX_SIGNING_MODE
     242 ifdef VBOX_WITH_CORP_CODE_SIGNING
     243        @# Sign the created pkg.
     244        $(call VBOX_SIGN_PKG_FN,$@,org.VirtualBox.mpkg.virtualbox)
     245 endif
     246endif
    241247        @# Cleanup.
    242248        sudo rm -Rf \
     
    325331                $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \
    326332                $@
     333ifdef VBOX_SIGNING_MODE
     334 ifdef VBOX_WITH_CORP_CODE_SIGNING
     335        @# Sign the created pkg.
     336        $(call VBOX_SIGN_PKG_FN,$@,org.virtualbox.pkg.vboxkexts)
     337 endif
     338endif
    327339        @# Cleanup
    328340        sudo chown -R "$(shell whoami)" \
     
    816828                $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \
    817829                $@
     830ifdef VBOX_SIGNING_MODE
     831 ifdef VBOX_WITH_CORP_CODE_SIGNING
     832        @# Sign the created pkg.
     833        $(call VBOX_SIGN_PKG_FN,$@,org.virtualbox.pkg.virtualbox)
     834 endif
     835endif
    818836        @# Cleanup
    819837        sudo chown -R "$(shell whoami)" \
     
    891909                $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \
    892910                $@
     911ifdef VBOX_SIGNING_MODE
     912 ifdef VBOX_WITH_CORP_CODE_SIGNING
     913        @# Sign the created pkg.
     914        $(call VBOX_SIGN_PKG_FN,$@,org.virtualbox.pkg.virtualboxcli)
     915 endif
     916endif
    893917        @# Cleanup
    894918        sudo chown -R "$(shell whoami)" \
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