committed by
Christian Helmuth
parent
c2950e13eb
commit
972031cbbc
@@ -119,6 +119,25 @@ proc run_boot_dir {binaries} {
|
||||
close $fh
|
||||
}
|
||||
|
||||
if {[have_include image/uefi]} {
|
||||
exec mkdir -p [run_dir]/efi/boot
|
||||
exec cp [genode_dir]/tool/boot/grub2_32.efi [run_dir]/efi/boot/bootia32.efi
|
||||
exec cp [genode_dir]/tool/boot/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
|
||||
|
||||
#
|
||||
# Generate GRUB2 config file
|
||||
#
|
||||
set fh [open "[run_dir]/boot/grub/grub.cfg" "WRONLY CREAT TRUNC"]
|
||||
puts $fh "set timeout=0"
|
||||
puts $fh "menuentry 'Genode on base-hw' {"
|
||||
puts $fh " multiboot2 /boot/bender serial_fallback"
|
||||
puts $fh " module2 /image.elf"
|
||||
puts $fh "}"
|
||||
close $fh
|
||||
}
|
||||
|
||||
run_image [run_dir]/image.elf
|
||||
|
||||
# set symbolic link to image.elf file in TFTP directory for PXE boot
|
||||
|
||||
Reference in New Issue
Block a user