build the kernel. create a bootable efi image.

This commit is contained in:
Matt Knoop
2025-11-12 18:37:10 -07:00
parent bde0a7e0fb
commit 112169798d
6 changed files with 146 additions and 9 deletions

15
container_cmd.sh Normal file
View File

@@ -0,0 +1,15 @@
set -e
cores=$(nproc)
echo "${cores}"
/usr/bin/make clean
/usr/bin/make defconfig
#cat /boot/config-$(uname -r) > ./linux/.config
sed -i 's/CONFIG_SYSTEM_TRUSTED_KEYS="\.\*"/CONFIG_SYSTEM_TRUSTED_KEYS=""/' ./.config
sed -i 's/CONFIG_SYSTEM_REVOCATION_KEYS="\.\*"/CONFIG_SYSTEM_REVOCATION_KEYS=""/' ./.config
sed -i 's/CONFIG_EFI_STUB="\.\*"/CONFIG_EFI_STUB="n"/' ./.config
echo "CONFIG_FB_EFI=y" >> ./.config
echo "CONFIG_EFI=y" >> ./.config
echo "CONFIG_SYSFB=y" >> ./.config
echo "CONFIG_FB=y" >> ./.config
echo "CONFIG_FRAMEBUFFER_CONSOLE=y" >> ./.config
/usr/bin/make -j ${cores}