Changeset 106247 in vbox
- Timestamp:
- Oct 8, 2024 9:50:21 PM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Config.kmk
r106170 r106247 4506 4506 $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1,,-digest_algo SHA2) 4507 4507 4508 ## Sign an executable image .4508 ## Sign an executable image, normal method. 4509 4509 # @param 1 The file to sign. 4510 4510 # @param 2 File description. Optional. 4511 4511 # @param 3 Set to 2 if the expression will be expanded twice before chopped into commands (for _CMDS). 4512 4512 if1of (win_with_ev, $(VBOX_WITH_CORP_CODE_SIGNING)) 4513 VBOX_SIGN_IMAGE_ FN ?= $(call VBOX_SIGN_IMAGE_WITH_EV_FN,$(1),$(2),/ph,$(3))4514 VBOX_SIGN_IMAGE_ ORDERDEPS ?= $(VBOX_RTSIGNTOOL) $(VBOX_SIGNTOOL_ORDERDEPS)4513 VBOX_SIGN_IMAGE_NORMAL_FN ?= $(call VBOX_SIGN_IMAGE_WITH_EV_FN,$(1),$(2),/ph,$(3)) 4514 VBOX_SIGN_IMAGE_NORMAL_ORDERDEPS ?= $(VBOX_RTSIGNTOOL) $(VBOX_SIGNTOOL_ORDERDEPS) 4515 4515 else 4516 VBOX_SIGN_IMAGE_ FN ?= $(call VBOX_SIGN_FILE_FN,$(1),$(2),/ph,$(3))4517 VBOX_SIGN_IMAGE_ ORDERDEPS ?= $(VBOX_SIGNTOOL_ORDERDEPS)4516 VBOX_SIGN_IMAGE_NORMAL_FN ?= $(call VBOX_SIGN_FILE_FN,$(1),$(2),/ph,$(3)) 4517 VBOX_SIGN_IMAGE_NORMAL_ORDERDEPS ?= $(VBOX_SIGNTOOL_ORDERDEPS) 4518 4518 endif 4519 4519 … … 4523 4523 VBOX_SIGN_DRIVER_ORDERDEPS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_RTSIGNTOOL) $(VBOX_SIGNTOOL_ORDERDEPS)) 4524 4524 else if $(intersects win_planc,$(VBOX_WITH_CORP_CODE_SIGNING)) 4525 VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_ FN,$(out),,2,nodual))4525 VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_NORMAL_FN,$(out),,2,nodual)) 4526 4526 VBOX_SIGN_DRIVER_ORDERDEPS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_RTSIGNTOOL) $(VBOX_SIGNTOOL_ORDERDEPS)) 4527 4527 else 4528 VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_ FN,$(out),,2))4529 VBOX_SIGN_DRIVER_ORDERDEPS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_SIGN_IMAGE_ ORDERDEPS))4528 VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_NORMAL_FN,$(out),,2)) 4529 VBOX_SIGN_DRIVER_ORDERDEPS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_SIGN_IMAGE_NORMAL_ORDERDEPS)) 4530 4530 endif 4531 4531 … … 4553 4553 endif 4554 4554 4555 ## Functions + deps for signing an executable or a dll image. See VBOX_SIGN_IMAGE_NORMAL_FN for parameters. 4556 if defined(VBOX_CERTIFICATE_SUBJECT_NAME) && $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING)) 4557 VBOX_SIGN_IMAGE_FN ?= $(call VBOX_SIGN_IMAGE_PLAN_B_FN,$(1),$(2),/ph,$(3)) 4558 VBOX_SIGN_IMAGE_ORDERDEPS ?= $(VBOX_RTSIGNTOOL) $(VBOX_SIGNTOOL_ORDERDEPS) 4559 else if defined(VBOX_CERTIFICATE_SUBJECT_NAME) && $(intersects win_planc,$(VBOX_WITH_CORP_CODE_SIGNING)) 4560 VBOX_SIGN_IMAGE_FN ?= $(call VBOX_SIGN_IMAGE_PLAN_C_FN,$(1),$(2),/ph,$(3)) 4561 VBOX_SIGN_IMAGE_ORDERDEPS ?= $(VBOX_RTSIGNTOOL) $(VBOX_SIGNTOOL_ORDERDEPS) 4562 else 4563 VBOX_SIGN_IMAGE_FN ?= $(call VBOX_SIGN_IMAGE_NORMAL_FN,$(1),$(2),$(3)) 4564 VBOX_SIGN_IMAGE_ORDERDEPS ?= $(VBOX_SIGN_IMAGE_NORMAL_ORDERDEPS) 4565 endif 4566 4555 4567 # Go nuts, sign everything. 4556 4568 if "$(VBOX_SIGNING_MODE)" == "release" || defined(VBOX_WITH_HARDENING) … … 4563 4575 VBOX_SIGN_IMAGE_CMDS_ORDERDEPS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_RTSIGNTOOL) $(VBOX_SIGNTOOL_ORDERDEPS)) 4564 4576 else 4565 VBOX_SIGN_IMAGE_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_ FN,$(out),,2))4566 VBOX_SIGN_IMAGE_CMDS_ORDERDEPS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_SIGN_IMAGE_ ORDERDEPS))4577 VBOX_SIGN_IMAGE_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_NORMAL_FN,$(out),,2)) 4578 VBOX_SIGN_IMAGE_CMDS_ORDERDEPS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(VBOX_SIGN_IMAGE_NORMAL_ORDERDEPS)) 4567 4579 endif 4568 4580 endif -
trunk/src/VBox/Additions/WINNT/Installer/Makefile.kmk
r106061 r106247 316 316 $(if $(VBOX_WIN_ATTESTATION_SIGNING),$(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME)) \ 317 317 $(VBOX_VERSION_STAMP) \ 318 $$(VBoxDrvInst_1_STAGE_TARGET) 318 $$(VBoxDrvInst_1_STAGE_TARGET) \ 319 | $(VBOX_SIGN_IMAGE_ORDERDEPS) 319 320 $(call MSG_L1,Creating $@, from $<) 320 ifdef VBOX_WIN_ATTESTATION_SIGNING # Unpack the attestation signed drivers - this is an ugly has 'ing heck hack!321 ifdef VBOX_WIN_ATTESTATION_SIGNING # Unpack the attestation signed drivers - this is an ugly as 'ing heck hack! 321 322 $(TOOL_ZIP_UNPACK) -oj $(PATH_OUT)/repackadd/$(VBOX_SIGNED_DRIVERS_ZIP_NAME) -d $(PATH_STAGE_BIN)/additions/ 322 323 endif … … 332 333 $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES),'/DVBOX_BRAND_$(lang)_LICENSE_RTF=1') \ 333 334 '$(subst /,\,$<)' 334 $(call VBOX_SIGN_ FILE_FN,$@)335 $(call VBOX_SIGN_IMAGE_FN,$@) 335 336 336 337 … … 378 379 '$(subst /,\,$<)' 379 380 380 $(PATH_TARGET)/uninst.exe: $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe | $$(dir $$@) 381 $(PATH_TARGET)/uninst.exe: \ 382 $(PATH_TARGET)/VBoxWindowsAdditions-$(KBUILD_TARGET_ARCH)-uninst.exe | $$(dir $$@) $(VBOX_SIGN_IMAGE_ORDERDEPS) 381 383 $(call MSG_L1,Creating $@, from $<) 382 384 $(QUIET)$(RM) -f $@ 383 385 -$(REDIRECT) -E __COMPAT_LAYER=RUNASINVOKER -- $< 384 386 $(TEST) -f $@ 385 $(call VBOX_SIGN_ FILE_FN,$@)387 $(call VBOX_SIGN_IMAGE_FN,$@) 386 388 387 389 endif # VBOX_SIGNING_MODE
Note:
See TracChangeset
for help on using the changeset viewer.