VirtualBox

Changeset 59431 in vbox


Ignore:
Timestamp:
Jan 21, 2016 8:16:38 PM (9 years ago)
Author:
vboxsync
Message:

Config.kmk: Windows VBOX_SIGN_FILE_FN hack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r59430 r59431  
    27662766  endif
    27672767
    2768   VBOX_RETRY    ?= $(KBUILD_DEVTOOLS)/bin/retry.sh
     2768  VBOX_RETRY    ?= $(ASH) $(KBUILD_DEVTOOLS)/bin/retry.sh
    27692769  VBOX_SIGNTOOL ?= $(VBOX_RETRY) "$(VBOX_PATH_SIGN_TOOLS)/signtool.exe"
    27702770  VBOX_INF2CAT  ?= $(VBOX_PATH_SELFSIGN)/inf2cat.exe
     
    28132813
    28142814  ## Commands for signing a driver image after link.
    2815   VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_FN,$(out)))
     2815  VBOX_SIGN_DRIVER_CMDS ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_FN,$(out),,2))
    28162816  ## Sign a file (generic).
    28172817  # @param 1  The file to sign.
    28182818  # @param 2  File description. Optional.
    28192819  # @param 3  Additional parameters. Optional.
     2820  # @param 4  Set to 2 if the expression will be expanded twice before chopped into commands (for _CMDS).
    28202821  ifndef VBOX_SIGN_FILE_FN
    28212822   ifdef VBOX_CERTIFICATE_SHA2_SUBJECT_NAME
    2822     VBOX_SIGN_FILE_FN     = $(VBOX_SIGNTOOL) sign /fd sha1 \
     2823    VBOX_SIGN_FILE_FN     = $(VBOX_SIGNTOOL) \
     2824        sign /fd sha1\
    28232825        $(VBOX_CROSS_CERTIFICATE_FILE_ARGS) \
    28242826        $(VBOX_CERTIFICATE_STORE_ARGS) \
     
    28292831        $(3) \
    28302832        $(1) \
    2831        && \
    2832         $(VBOX_SIGNTOOL) sign /as /fd sha256 \
     2833        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(VBOX_SIGNTOOL) \
     2834        sign /as /fd sha256 \
    28332835        $(VBOX_CROSS_CERTIFICATE_SHA2_FILE_ARGS) \
    28342836        $(VBOX_CERTIFICATE_SHA2_STORE_ARGS) \
     
    28552857  # @param 1  The file to sign.
    28562858  # @param 2  File description. Optional.
    2857   VBOX_SIGN_IMAGE_FN     ?= $(call VBOX_SIGN_FILE_FN,$(1),$(2),/ph)
     2859  # @param 3  Set to 2 if the expression will be expanded twice before chopped into commands (for _CMDS).
     2860  VBOX_SIGN_IMAGE_FN     ?= $(call VBOX_SIGN_FILE_FN,$(1),$(2),/ph,$(3))
    28582861
    28592862  ## Create a security catalog file.
     
    28652868        $(NL)$(TAB)$(VBOX_INF2CAT) /driver:$(strip $(1)) /os:$(strip $(subst ;,$(COMMA),$(3))) /verbose \
    28662869        $(NL)$(TAB)$(MV) $(2) $(2) \
    2867         $(NL)$(TAB)$(call VBOX_SIGN_FILE_FN,$(2))
     2870        $(NL)$(TAB)$(call VBOX_SIGN_FILE_FN,$(2),,,$(NL)$(TAB))
    28682871  VBOX_MAKE_CAT64_FN   ?= $(call VBOX_MAKE_CAT_HLP_FN,$(1),$(2),XP_X64;Server2003_X64;Vista_X64)
    28692872  VBOX_MAKE_CAT32_FN   ?= $(call VBOX_MAKE_CAT_HLP_FN,$(1),$(2),2000;XP_X86;Server2003_X86;Vista_X86)
     
    28772880  if "$(VBOX_SIGNING_MODE)" == "release" || defined(VBOX_WITH_HARDENING)
    28782881   ## Commands for signing an executable or a dll image after link.
    2879    VBOX_SIGN_IMAGE_CMDS  ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_FN,$(out)))
     2882   VBOX_SIGN_IMAGE_CMDS  ?= $(if $(eq $(tool_do),LINK_LIBRARY),,$(call VBOX_SIGN_IMAGE_FN,$(out),,2))
    28802883  endif
    28812884  ## Enable signing of the additions.
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