mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
image/uefi: factor out common boot parts
to avoid divergence. Issue #4741
This commit is contained in:
parent
264ee999a1
commit
eb354be20d
@ -117,14 +117,7 @@ proc run_boot_dir {binaries} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if {[have_include image/uefi]} {
|
if {[have_include image/uefi]} {
|
||||||
set grub2_path [get_grub2_dir]
|
install_uefi_bootloader_to_run_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
|
|
||||||
|
|
||||||
set serial_bender_opt "serial_fallback"
|
set serial_bender_opt "serial_fallback"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,15 +120,7 @@ proc run_boot_dir {binaries} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if {[have_include image/uefi]} {
|
if {[have_include image/uefi]} {
|
||||||
exec mkdir -p [run_dir]/efi/boot
|
install_uefi_bootloader_to_run_dir
|
||||||
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
|
|
||||||
|
|
||||||
append options_bender " serial_fallback"
|
append options_bender " serial_fallback"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -67,14 +67,7 @@ proc run_boot_dir {binaries} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if {[have_include image/uefi]} {
|
if {[have_include image/uefi]} {
|
||||||
set grub2_path [get_grub2_dir]
|
install_uefi_bootloader_to_run_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
|
|
||||||
|
|
||||||
set serial_bender_opt "serial_fallback"
|
set serial_bender_opt "serial_fallback"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,3 +39,15 @@ proc run_image { } {
|
|||||||
|
|
||||||
exec rm -f [run_dir].header [run_dir].partition
|
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
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user