1
0
mirror of https://github.com/aircrack-ng/rtl8812au.git synced 2024-11-25 14:44:09 +00:00

Add Makefile secure boot signing support

This commit is contained in:
kimocoder 2022-12-20 00:10:22 +01:00
parent de4b83f923
commit 86992a243b

View File

@ -2453,7 +2453,10 @@ all: modules
modules:
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) modules
sign:
@openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=Custom MOK/"
@mokutil --import MOK.der
@$(KSRC)/scripts/sign-file sha256 MOK.priv MOK.der $(MODULE_NAME)
strip:
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded