diff options
author | Toni Uhlig <matzeton@googlemail.com> | 2023-06-30 13:12:44 +0200 |
---|---|---|
committer | Toni Uhlig <matzeton@googlemail.com> | 2023-06-30 13:48:13 +0200 |
commit | de3d64ca85fcd3fa4251a4d4719c452da2a56987 (patch) | |
tree | b453ce58b24fbf073c93872658d49d27e2d1e18c /Makefile.inc | |
parent | f72851a80c90960822c5498b717fac738a92971b (diff) |
Sign drivers on native Windows. Fixes #2.
Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
Diffstat (limited to 'Makefile.inc')
-rw-r--r-- | Makefile.inc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc index 39e456d..802f23a 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -40,6 +40,7 @@ endif DDK_GLOBAL_DEPS := deps $(LOCAL_MINGW64_BUILD_SCRIPT) $(LOCAL_MINGW64_BUILD_DIR) $(LOCAL_MINGW64_CC) $(LOCAL_MINGW64_CXX) $(LOCAL_MINGW64_AR) $(LOCAL_MINGW64_RC) INSTALL = install +SED = sed CMAKE = cmake CC = $(LOCAL_MINGW64_CC) CXX = $(LOCAL_MINGW64_CXX) @@ -226,8 +227,11 @@ define INSTALL_EXEC_SIGN $(SIGNTOOL) sign -pkcs12 '$(DPP_ROOT)/$(SIGNTOOL_PREFIX)-code.p12' \ -in "$$target" \ -out "$(DESTDIR)/$$target"; \ + $(INSTALL) "$(DPP_ROOT)/sign-driver-on-windows.bat.in" "$(DESTDIR)/$$(basename $$target .sys)-sign-driver-on-windows.bat"; \ + $(SED) -i -e "s/{{\s*DRIVER_NAME\s*}}/$$target/g" "$(DESTDIR)/$$(basename $$target .sys)-sign-driver-on-windows.bat"; \ done $(INSTALL) "$(DPP_ROOT)/$(SIGNTOOL_PREFIX)-ca-cert.pem" '$(DESTDIR)/$(SIGNTOOL_PREFIX)-ca-cert.crt' + $(INSTALL) "$(DPP_ROOT)/create_codesign_ca.bat" '$(DESTDIR)/create-codesign-ca-on-windows.bat' endef define INSTALL_HEADERS |