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:
parent
de4b83f923
commit
86992a243b
5
Makefile
5
Makefile
@ -2453,7 +2453,10 @@ all: modules
|
|||||||
|
|
||||||
modules:
|
modules:
|
||||||
$(MAKE) ARCH=$(ARCH) CROSS_COMPILE=$(CROSS_COMPILE) -C $(KSRC) M=$(shell pwd) 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:
|
strip:
|
||||||
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
$(CROSS_COMPILE)strip $(MODULE_NAME).ko --strip-unneeded
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user