-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmake.mk
More file actions
18 lines (17 loc) · 810 Bytes
/
make.mk
File metadata and controls
18 lines (17 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
keys:
mkdir keys
chmod 700 keys
cp hack/uki/secureboot-cert.conf keys/
openssl genrsa -out keys/secureboot.key 2048
openssl req -config keys/secureboot-cert.conf -new -x509 -newkey rsa:2048 -keyout keys/secureboot.key -outform PEM -out keys/secureboot.pem -nodes -days 3650 -subj "/CN=FeOS/"
openssl x509 -in keys/secureboot.pem -out keys/secureboot.der -outform DER
uki: keys
docker run --rm -u $${UID} -v "`pwd`:/feos" feos-builder ukify build \
--os-release @/feos/hack/uki/os-release.txt \
--linux /feos/target/kernel/vmlinuz \
--initrd /feos/target/initramfs.zst \
--microcode /feos/target/ucode.cpio \
--cmdline @/feos/target/cmdline \
--secureboot-private-key /feos/keys/secureboot.key \
--secureboot-certificate /feos/keys/secureboot.pem \
--output /feos/target/uki.efi