Changeset 75280 in vbox
- Timestamp:
- Nov 6, 2018 12:51:50 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r75210 r75280 3621 3621 endif 3622 3622 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. 3624 3627 ifdef VBOX_WITH_CORP_CODE_SIGNING 3625 3628 ## @todo cannot handle $(2), the identifier. $(3) is hopefully either empty or --deep 3626 3629 VBOX_SIGN_BUNDLE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB) \ 3627 ditto -c -k$(1) $(1).zip$(NLTAB) \3628 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)/../ 3630 3633 else 3631 3634 VBOX_SIGN_BUNDLE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(VBOX_CODESIGN) \ … … 3634 3637 --file-list - \ 3635 3638 $(if-expr defined(VBOX_TSA_URL),--timestamp="$(VBOX_TSA_URL)") \ 3636 3639 $(3) \ 3637 3640 $(VBOX_CERTIFICATE_SUBJECT_NAME_ARGS) \ 3638 3641 $(1) $(if $(2),--identifier "$(2)",) … … 3640 3643 3641 3644 ## Sign a Mach-O image. 3642 # @param 1 The bundle to sign.3645 # @param 1 The file to sign. 3643 3646 # @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) \ 3645 3652 --verbose=9 \ 3646 3653 --force \ … … 3650 3657 $(1) \ 3651 3658 $(if $(2),--identifier "$(2)",) 3659 endif 3652 3660 3653 3661 ## Sign a VMM Mach-O image. 3654 # @param 1 The bundle to sign.3662 # @param 1 The file to sign. 3655 3663 # @param 2 Identifier, optional. 3656 3664 VBOX_SIGN_VMM_MOD_FN = $(VBOX_SIGN_MACHO_FN) 3657 3665 3658 3666 ## Sign a non-executable file. 3659 # @param 1 The bundle to sign.3667 # @param 1 The file to sign. 3660 3668 # @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) \ 3662 3674 --verbose=9 \ 3663 3675 --force \ … … 3667 3679 $(1) \ 3668 3680 $(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 3669 3702 3670 3703 ## @def VBOX_TEST_SIGN_KEXT -
trunk/src/VBox/Installer/darwin/Makefile.kmk
r74770 r75280 164 164 ifndef VBOX_WITHOUT_SIGNED_DMG 165 165 @# Sign the created dmg. 166 $(call VBOX_SIGN_ FILE_FN,$@,org.virtualbox.dmg)166 $(call VBOX_SIGN_DMG_FN,$@,org.virtualbox.dmg) 167 167 endif 168 168 endif … … 239 239 $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \ 240 240 $@ 241 ifdef 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 246 endif 241 247 @# Cleanup. 242 248 sudo rm -Rf \ … … 325 331 $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \ 326 332 $@ 333 ifdef 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 338 endif 327 339 @# Cleanup 328 340 sudo chown -R "$(shell whoami)" \ … … 816 828 $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \ 817 829 $@ 830 ifdef 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 835 endif 818 836 @# Cleanup 819 837 sudo chown -R "$(shell whoami)" \ … … 891 909 $(if $(VBOX_MACOSX_INSTALLER_SIGN),--sign "$(VBOX_MACOSX_INSTALLER_SIGN)",) \ 892 910 $@ 911 ifdef 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 916 endif 893 917 @# Cleanup 894 918 sudo chown -R "$(shell whoami)" \
Note:
See TracChangeset
for help on using the changeset viewer.