Skip to content

Commit

Permalink
feat: backport uefi configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
AxelDum committed Mar 8, 2024
1 parent bb9ffe2 commit dd63dcb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions target/linux/x86/image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ define Build/combined
$(if $(filter $(1),efi),
$(INSTALL_DIR) $@.boot/efi/boot
$(CP) $(STAGING_DIR_IMAGE)/grub2/boot$(if $(CONFIG_x86_64),x64,ia32).efi $@.boot/efi/boot/
$(CP) ./startup.nsh $@.boot/
)
PADDING="1" SIGNATURE="$(IMG_PART_SIGNATURE)" \
$(if $(filter $(1),efi),GUID="$(IMG_PART_DISKGUID)") $(SCRIPT_DIR)/gen_image_generic.sh \
Expand Down
7 changes: 7 additions & 0 deletions target/linux/x86/image/startup.nsh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
for %d in 9 8 7 6 5 4 3 2 1 0
set bootapp "fs%d:\efi\boot\bootx64.efi"
if exist %bootapp% then
%bootapp%
endif
endfor
exit

0 comments on commit dd63dcb

Please sign in to comment.