VirtualBox

Changeset 95685 in vbox


Ignore:
Timestamp:
Jul 17, 2022 9:38:52 PM (2 years ago)
Author:
vboxsync
Message:

SUP: Added a dummy build program (bldSUPSignedDummy) for singing certificate extraction, as bldRTSignTool cannot easily sign itself (cyclic dependency). bugref:8691

Location:
trunk/src/VBox
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/Makefile.kmk

    r94439 r95685  
    126126endif
    127127
     128if  ("$(KBUILD_TARGET)" == "win"    && defined(VBOX_SIGNING_MODE)) \
     129 || ("$(KBUILD_TARGET)" == "darwin" && defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE))
     130 BLDPROGS += bldSUPSignedDummy
     131 bldSUPSignedDummy_TEMPLATE         = VBoxBldProg
     132 bldSUPSignedDummy_SOURCES          = bldSUPSignedDummy.cpp
     133 bldSUPSignedDummy_ORDERDEPS.win    = $(VBOX_SIGN_IMAGE_ORDERDEPS)
     134 bldSUPSignedDummy_POST_CMDS.win    = $(call VBOX_SIGN_IMAGE_FN,$(out),,2)
     135 bldSUPSignedDummy_POST_CMDS.darwin = $(call VBOX_SIGN_MACHO_FN,$(out),org.virtualbox.org.bldtool.$(target))
     136endif
     137
    128138$$(VBOX_SUP_WIN_CERTS_FILE): $(MAKEFILE_CURRENT) \
    129139                $(foreach cert,$(VBOX_SUP_WIN_CERTS),$(VBOX_PATH_SUPR3_CERTIFICATES)/$(lastword $(subst =,$(SPACE) ,$(cert)))) \
    130140                $(VBOX_BIN2C) \
    131                 $(if-expr  ("$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING)) \
    132                         || ("$(KBUILD_TARGET)" == "darwin" && defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE)) \
    133                 ,$(VBOX_RTSIGNTOOL)) \
     141                $(if-expr defined(bldSUPSignedDummy_SOURCES),$(VBOX_RTSIGNTOOL) $$(bldSUPSignedDummy_1_TARGET),) \
    134142                | $$(dir $$@)
    135143        $(QUIET)$(RM) -f -- $@ [email protected]
     
    143151                "$@")
    144152# The build certificate.
    145 if  ("$(KBUILD_TARGET)" == "win" && defined(VBOX_WITH_HARDENING) && defined(VBOX_SIGNING_MODE)) \
    146  || ("$(KBUILD_TARGET)" == "darwin" && defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE))
    147         $(VBOX_RTSIGNTOOL) extract-exe-signer-cert --exe $(VBOX_RTSIGNTOOL) --output "[email protected]" --der
     153ifdef bldSUPSignedDummy_SOURCES
     154        $(VBOX_RTSIGNTOOL) extract-exe-signer-cert --exe "$(bldSUPSignedDummy_1_TARGET)" --output "[email protected]" --der
    148155        $(VBOX_BIN2C) -ascii --append SUPBuildCert "[email protected]" $@
    149156        $(QUIET)$(RM) -f -- [email protected]
  • trunk/src/VBox/Runtime/tools/Makefile.kmk

    r95682 r95685  
    7979  bldRTSignTool_DEFS      := IPRT_IN_BUILD_TOOL
    8080  bldRTSignTool_LIBS.win  := Crypt32.lib NCrypt.lib
    81   bldRTSignTool_POST_CMDS.win = $(VBOX_SIGN_IMAGE_CMDS)
    82   if defined(VBOX_WITH_DARWIN_R0_DARWIN_IMAGE_VERIFICATION) && defined(VBOX_SIGNING_MODE)
    83    bldRTSignTool_POST_CMDS.darwin = $(call VBOX_SIGN_MACHO_FN,$(out),org.virtualbox.org.bldtool.$(target))
    84   endif
    8581  ifndef VBOX_WITH_BLD_RTSIGNTOOL_SIGNING
    8682   bldRTSignTool_DEFS     += IPRT_SIGNTOOL_NO_SIGNING
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