VirtualBox

Changeset 85336 in vbox


Ignore:
Timestamp:
Jul 14, 2020 11:47:13 AM (4 years ago)
Author:
vboxsync
Message:

/Config.kmk: Teach VBOX_CCS_SIGN_CMD and VBOX_CCS_NOTARIZE_CMD to deal properly (well, it assumes the filename contains no '?') with filenames containing spaces. Additionally some cleanup, minimizing the times the special VBOX_DIRX substitute needs to be used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r85332 r85336  
    35163516 endif
    35173517 VBOX_RETRY    ?= $(ASH) $(KBUILD_DEVTOOLS)/bin/retry.sh
     3518 # temporary solution for a $(dir ...) equivalent which assumes that it gets a single path, possibly with spaces.
     3519 VBOX_DIRX = $(subst ?,$(SP),$(dir $(subst $(SP),?,$1)))
    35183520 # Corp code signing client.
    35193521 VBOX_CCS_CLIENT_JAR := $(firstword $(rsort \
     
    35323534        sign -user "$(VBOX_CCS_USER)" -global_uid "$(VBOX_CCS_GLOBAL_UID)" \
    35333535                -job_timeout 90 -server_timeout 75 -server "$(VBOX_CCS_SERVER)" \
    3534                 -sign_method "$1" -file_to_sign "$2" -signed_location "$(if $3,$3,$(dir $2))" $4
     3536                -sign_method "$1" -file_to_sign "$2" -signed_location "$(if $3,$3,$(call VBOX_DIRX,$2))" $4
    35353537
    35363538 ifeq ($(KBUILD_HOST),win)
     
    36243626  ifndef VBOX_SIGN_FILE_FN
    36253627   if $(intersects win all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
    3626     VBOX_SIGN_FILE_FN     = $(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1,$(dir $1),-digest_algo SHA1) \
     3628    VBOX_SIGN_FILE_FN     = $(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1,,-digest_algo SHA1) \
    36273629        $(if-expr "$5" == "",\
    36283630         $(if-expr "$6" == "",$(if-expr "$4" == "2",$$(NLTAB),$(NLTAB)),$6) \
    3629          $(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1,$(dir $1),-dual_sign -digest_algo SHA2))
     3631         $(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1,,-dual_sign -digest_algo SHA2))
    36303632   else ifdef VBOX_CERTIFICATE_SHA2_SUBJECT_NAME
    36313633    VBOX_SIGN_FILE_FN     = $(VBOX_SIGNTOOL) \
     
    36683670  ifndef VBOX_SIGN_EV_FILE_FN
    36693671   if $(intersects win_ev all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
    3670     VBOX_SIGN_EV_FILE_FN  = $(call VBOX_CCS_SIGN_CMD,microsoftev,$1,$(if $2,$2,$(dir $1)))
     3672    VBOX_SIGN_EV_FILE_FN  = $(call VBOX_CCS_SIGN_CMD,microsoftev,$1,$(if $2,$2,))
    36713673   else ifdef VBOX_CERTIFICATE_EV_SUBJECT_NAME
    36723674    VBOX_SIGN_EV_FILE_FN  = $(VBOX_SIGNTOOL) \
     
    37103712        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(RM) -f -- "$1.ccs" \
    37113713        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(CP) -- "$1" "$1.ccs" \
    3712         $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1.ccs,$(dir $1.ccs),-digest_algo SHA2) \
     3714        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1.ccs,,-digest_algo SHA2) \
    37133715        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(VBOX_RTSIGNTOOL) add-nested-$(if-expr "$(suffix $1)" == ".cat",cat,exe)-signature -v "$1" "$1.ccs" \
    37143716        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(RM) -f -- "$1.ccs" \
     
    37933795        mac_notarize -user "$(VBOX_CCS_USER)" -global_uid "$(VBOX_CCS_GLOBAL_UID)" \
    37943796                -job_timeout 90 -server_timeout 75 -server "$(VBOX_CCS_SERVER)" \
    3795                 -file_to_notarize "$1" -bundle_id "$2" -download_location "$(if $3,$3,$(dir $1))"
     3797                -file_to_notarize "$1" -bundle_id "$2" -download_location "$(if $3,$3,$(call VBOX_DIRX,$1))"
    37963798
    37973799  ## Sign an application bundle, framework or kernel extension.
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