summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiang Lu <[email protected]>2022-09-06 04:00:11 +0800
committerJiang Lu <[email protected]>2022-09-06 04:04:34 +0800
commitaeb6be2d831fc28efd62065dde34627cb1dba9e6 (patch)
treebf7248f2a8ba03db2b501674e9046696725871dd
parentcfa0c527f0b86daaa906d93c499eceea7785ba0e (diff)
wdk-rule: add digest algorithm option for signtool
-rw-r--r--xmake/rules/wdk/sign/sign.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/rules/wdk/sign/sign.lua b/xmake/rules/wdk/sign/sign.lua
index bd46af76a..8bf68b53a 100644
--- a/xmake/rules/wdk/sign/sign.lua
+++ b/xmake/rules/wdk/sign/sign.lua
@@ -84,6 +84,11 @@ function main(target, filepath, mode)
table.insert(argv, "/s")
table.insert(argv, store)
end
+ local digest_algorithm = target:values("wdk.sign.digest_algorithm")
+ if digest_algorithm then
+ table.insert(argv, "/fd")
+ table.insert(argv, digest_algorithm)
+ end
-- uses the default test certificate
if mode == "test" and (not certfile and not thumbprint and not store) then