From d675d6e54b40231e11da9f90d2aaf381a19526ff Mon Sep 17 00:00:00 2001 From: "Justin C. Miller" Date: Sun, 1 Aug 2021 14:25:18 -0700 Subject: [PATCH] [build] Strip the panic handler Since the panic handler will always stay resident, strip it to be as small as possible. --- configs/custom.ninja | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/configs/custom.ninja b/configs/custom.ninja index 5be0fd1..896842a 100644 --- a/configs/custom.ninja +++ b/configs/custom.ninja @@ -42,10 +42,13 @@ build ${build_root}/fatroot/efi/boot/bootx64.efi : cp ${build_root}/boot/boot.ef build ${build_root}/fatroot/testapp.elf : cp ${build_root}/user/testapp.elf name = null driver to FAT image -build ${build_root}/fatroot/drv.uefi_fb.elf : cp ${build_root}/user/drv.uefi_fb.elf - name = UEFI framebuffer driver to FAT image +build ${build_root}/panic.serial.elf : strip ${build_root}/kernel/panic.serial.elf + name = Serial panic handler -build ${build_root}/fatroot/panic.serial.elf : cp ${build_root}/kernel/panic.serial.elf +build ${build_root}/fatroot/panic.serial.elf : cp ${build_root}/panic.serial.elf + name = Serial panic handler to FAT image + +build ${build_root}/fatroot/drv.uefi_fb.elf : cp ${build_root}/user/drv.uefi_fb.elf name = UEFI framebuffer driver to FAT image build ${build_root}/fatroot/srv.init.elf : cp ${build_root}/user/srv.init.elf