mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 20:42:56 +01:00
image/uefi: factor out common boot parts
to avoid divergence. Issue #4741
This commit is contained in:
committed by
Christian Helmuth
parent
264ee999a1
commit
eb354be20d
@@ -117,14 +117,7 @@ proc run_boot_dir {binaries} {
|
||||
}
|
||||
|
||||
if {[have_include image/uefi]} {
|
||||
set grub2_path [get_grub2_dir]
|
||||
|
||||
exec mkdir -p [run_dir]/efi/boot
|
||||
exec cp $grub2_path/boot/grub2/grub2_32.efi [run_dir]/efi/boot/bootia32.efi
|
||||
exec cp $grub2_path/boot/grub2/grub2_64.efi [run_dir]/efi/boot/bootx64.efi
|
||||
exec mkdir -p [run_dir]/boot/grub
|
||||
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
|
||||
|
||||
install_uefi_bootloader_to_run_dir
|
||||
set serial_bender_opt "serial_fallback"
|
||||
}
|
||||
|
||||
|
||||
@@ -120,15 +120,7 @@ proc run_boot_dir {binaries} {
|
||||
}
|
||||
|
||||
if {[have_include image/uefi]} {
|
||||
exec mkdir -p [run_dir]/efi/boot
|
||||
exec cp [get_grub2_dir]/boot/grub2/grub2_32.efi [run_dir]/efi/boot/bootia32.efi
|
||||
exec cp [get_grub2_dir]/boot/grub2/grub2_64.efi [run_dir]/efi/boot/bootx64.efi
|
||||
exec mkdir -p [run_dir]/boot/grub
|
||||
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
|
||||
|
||||
exec cp [genode_dir]/tool/boot/boot.png [run_dir]/boot/boot.png
|
||||
exec cp [get_grub2_dir]/boot/font.pf2 [run_dir]/boot/font.pf2
|
||||
|
||||
install_uefi_bootloader_to_run_dir
|
||||
append options_bender " serial_fallback"
|
||||
}
|
||||
|
||||
|
||||
@@ -67,14 +67,7 @@ proc run_boot_dir {binaries} {
|
||||
}
|
||||
|
||||
if {[have_include image/uefi]} {
|
||||
set grub2_path [get_grub2_dir]
|
||||
|
||||
exec mkdir -p [run_dir]/efi/boot
|
||||
exec cp $grub2_path/boot/grub2/grub2_32.efi [run_dir]/efi/boot/bootia32.efi
|
||||
exec cp $grub2_path/boot/grub2/grub2_64.efi [run_dir]/efi/boot/bootx64.efi
|
||||
exec mkdir -p [run_dir]/boot/grub
|
||||
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
|
||||
|
||||
install_uefi_bootloader_to_run_dir
|
||||
set serial_bender_opt "serial_fallback"
|
||||
}
|
||||
|
||||
|
||||
@@ -39,3 +39,15 @@ proc run_image { } {
|
||||
|
||||
exec rm -f [run_dir].header [run_dir].partition
|
||||
}
|
||||
|
||||
|
||||
proc install_uefi_bootloader_to_run_dir { } {
|
||||
exec mkdir -p [run_dir]/efi/boot
|
||||
exec cp [get_grub2_dir]/boot/grub2/grub2_32.efi [run_dir]/efi/boot/bootia32.efi
|
||||
exec cp [get_grub2_dir]/boot/grub2/grub2_64.efi [run_dir]/efi/boot/bootx64.efi
|
||||
exec mkdir -p [run_dir]/boot/grub
|
||||
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
|
||||
|
||||
exec cp [genode_dir]/tool/boot/boot.png [run_dir]/boot/boot.png
|
||||
exec cp [get_grub2_dir]/boot/font.pf2 [run_dir]/boot/font.pf2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user