VirtualBox

Changeset 83118 in vbox for trunk


Ignore:
Timestamp:
Feb 19, 2020 4:32:36 PM (5 years ago)
Author:
vboxsync
Message:

/Config.kmk: Apply VBOX_RETRY also to macOS signing. Make sure that all relevant extpack content (dylibs) is signed, otherwise Mojave and later refuse to load.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r83100 r83118  
    34323432  $(error VBOX_SIGNING_MODE must be either 'test' or 'release'. The value '$(VBOX_SIGNING_MODE)' is not recognized.)
    34333433 endif
     3434 VBOX_RETRY    ?= $(ASH) $(KBUILD_DEVTOOLS)/bin/retry.sh
    34343435 # Corp code signing client.
    34353436 VBOX_CCS_CLIENT_JAR := $(firstword $(rsort \
     
    34743475  endif
    34753476
    3476   VBOX_RETRY    ?= $(ASH) $(KBUILD_DEVTOOLS)/bin/retry.sh
    34773477  VBOX_SIGNTOOL ?= $(VBOX_RETRY) "$(VBOX_PATH_SIGN_TOOLS)/signtool.exe"
    34783478  VBOX_INF2CAT  ?= $(VBOX_PATH_SELFSIGN)/inf2cat.exe
     
    37603760        $(1) \
    37613761        $(if $(2),--identifier "$(2)",)
     3762  endif
     3763
     3764  ## Commands for signing an the extpack dylib files after link.
     3765  if $(intersects darwin all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
     3766   VBOX_SIGN_EXTPACK_DYLIB_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),, \
     3767        $(call VBOX_CCS_SIGN_CMD,binary,$(out),, \
     3768                $(if $(VBOX_WITH_MACOS_HARDENED_RUNTIME),-hardened_runtime)) )
     3769  else
     3770   VBOX_SIGN_EXTPACK_DYLIB_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),, \
     3771        $(VBOX_CODESIGN) \
     3772        --verbose=9 \
     3773        --force \
     3774        $(if-expr $(KBUILD_HOST_VERSION_MAJOR) <= 14,--digest-algorithm sha256,) \
     3775        $(if $(VBOX_WITH_MACOS_HARDENED_RUNTIME),$(if-expr $(KBUILD_HOST_VERSION_MAJOR) <= 16,--options 0x10000,--options runtime)) \
     3776        --file-list - \
     3777        $(if-expr defined(VBOX_TSA_URL),--timestamp="$(VBOX_TSA_URL)") \
     3778        $(VBOX_CERTIFICATE_SUBJECT_NAME_ARGS) \
     3779        $(out) )
    37623780  endif
    37633781
     
    63986416        $(VBOX_LIB_VMM_LAZY)
    63996417 endif
     6418 ifeq ($(KBUILD_TARGET),darwin)
     6419  TEMPLATE_VBoxR3ExtPack_POST_CMDS = $(VBOX_SIGN_EXTPACK_DYLIB_CMDS)
     6420 endif
    64006421
    64016422 TEMPLATE_VBoxR3ExtPackApi = For the ring-3 context extension pack modules using the Main API.
     
    64256446        $(LIB_RUNTIME) \
    64266447        $(VBOX_LIB_VMM_LAZY)
     6448 endif
     6449 ifeq ($(KBUILD_TARGET),darwin)
     6450  TEMPLATE_VBoxR3ExtPackApi_POST_CMDS = $(VBOX_SIGN_EXTPACK_DYLIB_CMDS)
    64276451 endif
    64286452
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