Changeset 77766 in vbox
- Timestamp:
- Mar 18, 2019 5:38:34 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r77352 r77766 3513 3513 # @param 6 non-zero for alternative command separator. This is used for generating repacking scripts. 3514 3514 ifndef VBOX_SIGN_FILE_FN 3515 ifeq ($(VBOX_WITH_CORP_CODE_SIGNING),all) 3516 VBOX_SIGN_FILE_FN = $(call VBOX_CCS_SIGN_CMD,driver,$1,$(dir $1)) 3515 if $(intersects win all,$(VBOX_WITH_CORP_CODE_SIGNING)) 3516 VBOX_SIGN_FILE_FN = $(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1,$(dir $1),-digest_algo SHA1) \ 3517 $(if-expr "$5" == "",\ 3518 $(if-expr "$6" == "",$(if-expr "$4" == "2",$$(NLTAB),$(NLTAB)),$6)$(call VBOX_CCS_SIGN_CMD, \ 3519 driver$(if-expr "$3" == "/ph",_pagehash,),$1,$(dir $1),-digest_algo SHA1)) 3517 3520 else ifdef VBOX_CERTIFICATE_SHA2_SUBJECT_NAME 3518 3521 VBOX_SIGN_FILE_FN = $(VBOX_SIGNTOOL) \ … … 3592 3595 3593 3596 ## Commands for signing a driver image after link. 3594 if defined(VBOX_WITH_CORP_CODE_SIGNING) && "$(VBOX_WITH_CORP_CODE_SIGNING)" != "all"3597 if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING)) 3595 3598 VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_PLAN_B_FN,$(out),,/ph,2)) 3596 3599 VBOX_SIGN_DRIVER_ORDERDEPS ?= $(VBOX_RTSIGNTOOL) … … 3608 3611 $(NL)$(TAB)$(VBOX_INF2CAT) "/driver:$(strip $(1))" "/os:$(strip $(subst ;,$(COMMA),$(3)))" /verbose \ 3609 3612 $(NL)$(TAB)$(MV) -- "$(2)" "$(2)" 3610 if defined(VBOX_WITH_CORP_CODE_SIGNING) && "$(VBOX_WITH_CORP_CODE_SIGNING)" != "all"3613 if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING)) 3611 3614 VBOX_MAKE_CAT_HLP_FN += $(NL)$(TAB)$(call VBOX_SIGN_IMAGE_PLAN_B_FN,$(2),,,$(NL)$(TAB)) 3612 3615 else … … 3659 3662 # @param 2 Identifier, optional. 3660 3663 # @param 3 Additional codesign command line parameters, optional. 3661 if def VBOX_WITH_CORP_CODE_SIGNING3664 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 3662 3665 ## @todo cannot handle $(2), the identifier. $(3) is hopefully either empty or --deep 3663 3666 VBOX_SIGN_BUNDLE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB) \ … … 3680 3683 # @param 1 The file to sign. 3681 3684 # @param 2 Identifier, optional. 3682 if def VBOX_WITH_CORP_CODE_SIGNING3685 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 3683 3686 ## @todo cannot handle $(2), the identifier. 3684 3687 VBOX_SIGN_MACHO_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,binary,$(1)) … … 3702 3705 # @param 1 The file to sign. 3703 3706 # @param 2 Identifier, optional. 3704 if def VBOX_WITH_CORP_CODE_SIGNING3707 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 3705 3708 ## @todo cannot handle $(2), the identifier. 3706 3709 VBOX_SIGN_FILE_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,binary,$(1)) … … 3724 3727 # @param 1 The file to sign. 3725 3728 # @param 2 Identifier, optional. 3726 if def VBOX_WITH_CORP_CODE_SIGNING3729 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 3727 3730 ## @todo cannot handle $(2), the identifier. 3728 3731 VBOX_SIGN_PKG_FN = $(call MSG_TOOL,SIGNTOOL,,$(1),$(2))$(NLTAB)$(call VBOX_CCS_SIGN_CMD,mac_pkg,$(1)) … … 3799 3802 3800 3803 ## Commands for signing a driver image after link. 3801 if def VBOX_WITH_CORP_CODE_SIGNING3804 if $(intersects solaris all,$(VBOX_WITH_CORP_CODE_SIGNING)) 3802 3805 VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_CCS_SIGN_CMD,solaris_elf,$(out))) 3803 3806 else -
trunk/src/VBox/Additions/Makefile.kmk
r76553 r77766 283 283 ifndef VBOX_SIGNING_MODE 284 284 GUESTADDITIONS_FILESPEC.win = 285 else if "$(VBOX_WITH_CORP_CODE_SIGNING)" == "all" || (!defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !defined(VBOX_WITH_CORP_CODE_SIGNING))285 else if !defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !$(intersects win all,$(VBOX_WITH_CORP_CODE_SIGNING)) 286 286 GUESTADDITIONS_FILESPEC.win = cert/vbox.cer=$(VBOX_PATH_ADDITIONS.win)/vbox.cer 287 287 else … … 289 289 cert/vbox-sha1.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha1.cer \ 290 290 cert/vbox-sha256.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256.cer 291 if defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && defined(VBOX_WITH_CORP_CODE_SIGNING)291 if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING)) 292 292 GUESTADDITIONS_FILESPEC.win += cert/vbox-sha256-r3.cer=$(VBOX_PATH_ADDITIONS.win)/vbox-sha256-r3.cer 293 293 endif -
trunk/src/VBox/Additions/WINNT/tools/Makefile.kmk
r76553 r77766 58 58 endef 59 59 60 if "$(VBOX_WITH_CORP_CODE_SIGNING)" == "all" || (!defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !defined(VBOX_WITH_CORP_CODE_SIGNING))60 if !defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !$(intersects win all,$(VBOX_WITH_CORP_CODE_SIGNING)) 61 61 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,0) 62 62 else 63 63 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha1.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,0) 64 64 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,1) 65 if defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && defined(VBOX_WITH_CORP_CODE_SIGNING)65 if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING)) 66 66 $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256-r3.cer,$(VBOX_PATH_ADDITIONS)/VBoxCertUtil.exe,1) 67 67 endif -
trunk/src/VBox/Installer/darwin/Makefile.kmk
r76866 r77766 241 241 $@ 242 242 ifdef VBOX_SIGNING_MODE 243 if def VBOX_WITH_CORP_CODE_SIGNING243 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 244 244 @# Sign the created pkg. 245 245 $(call VBOX_SIGN_PKG_FN,$@,org.VirtualBox.mpkg.virtualbox) … … 333 333 $@ 334 334 ifdef VBOX_SIGNING_MODE 335 if def VBOX_WITH_CORP_CODE_SIGNING335 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 336 336 @# Sign the created pkg. 337 337 $(call VBOX_SIGN_PKG_FN,$@,org.virtualbox.pkg.vboxkexts) … … 814 814 $@ 815 815 ifdef VBOX_SIGNING_MODE 816 if def VBOX_WITH_CORP_CODE_SIGNING816 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 817 817 @# Sign the created pkg. 818 818 $(call VBOX_SIGN_PKG_FN,$@,org.virtualbox.pkg.virtualbox) … … 901 901 $@ 902 902 ifdef VBOX_SIGNING_MODE 903 if def VBOX_WITH_CORP_CODE_SIGNING903 if $(intersects darwin all,$(VBOX_WITH_CORP_CODE_SIGNING)) 904 904 @# Sign the created pkg. 905 905 $(call VBOX_SIGN_PKG_FN,$@,org.virtualbox.pkg.virtualboxcli) -
trunk/src/VBox/Installer/win/Stub/Makefile.kmk
r76553 r77766 63 63 $(VBOX_BIN2C) -ascii --append VBoxStubTrustedCert0 "[email protected]" $@ 64 64 $(APPEND) "[email protected]" " { g_abVBoxStubTrustedCert0, sizeof(g_abVBoxStubTrustedCert0) }, " 65 if defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && (!defined(VBOX_WITH_CORP_CODE_SIGNING) || "$(VBOX_WITH_CORP_CODE_SIGNING)" != "all")65 if defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) || $(intersects win all,$(VBOX_WITH_CORP_CODE_SIGNING)) 66 66 $(VBOX_RTSIGNTOOL) extract-exe-signer-cert --signature-index 1 --exe "$(PATH_STAGE_SYS)/VBoxDrv.sys" --output "[email protected]" --der 67 67 $(VBOX_BIN2C) -ascii --append VBoxStubTrustedCert1 "[email protected]" $@ 68 68 $(APPEND) "[email protected]" " { g_abVBoxStubTrustedCert1, sizeof(g_abVBoxStubTrustedCert1) }, " 69 69 endif 70 if defined(VBOX_WITH_CORP_CODE_SIGNING) && "$(VBOX_WITH_CORP_CODE_SIGNING)" != "all" && "$(VBOX_SIGNING_MODE)" == "release"70 if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING)) 71 71 $(VBOX_RTSIGNTOOL) extract-exe-signer-cert --signature-index 1 --exe "$(VBOX_RTSIGNTOOL)" --output "[email protected]" --der 72 72 $(VBOX_BIN2C) -ascii --append VBoxStubTrustedCert2 "[email protected]" $@
Note:
See TracChangeset
for help on using the changeset viewer.