run: compress image.elf in NOVA boot dir

This commit is contained in:
Norman Feske 2017-09-09 12:11:28 +02:00 committed by Christian Helmuth
parent e1ada57bfa
commit ab0b0ac3a0
4 changed files with 9 additions and 4 deletions

View File

@ -45,7 +45,7 @@ code respectively the download source of binaries are described below.
Source code was obtained from git://git.savannah.gnu.org/grub.git, git
commit 972765fe8245cdf44d465329f33b5aa9ac6c2f47.
The following modules were included: part_msdos iso9660 part_gpt ext2 multiboot multiboot2 fat normal configfile setpci serial efi_uga efi_gop
The following modules were included: part_msdos iso9660 part_gpt ext2 multiboot multiboot2 fat normal configfile setpci serial efi_uga efi_gop gzio
:'tianocore.bin'

Binary file not shown.

Binary file not shown.

View File

@ -56,8 +56,13 @@ proc run_boot_dir {binaries} {
exec rm -rf [run_dir]/genode
if {[have_include "image/iso"] || [have_include "image/disk"] || [have_include image/uefi]} {
#
# Compress Genode image, to be uncompressed by GRUB
#
exec gzip [run_dir]/image.elf
if {[have_include "image/iso"] || [have_include "image/disk"]} {
#
# Install isolinux/GRUB files and bender
#
install_iso_bootloader_to_run_dir
@ -71,7 +76,7 @@ proc run_boot_dir {binaries} {
puts $fh "\ntitle Genode on NOVA"
puts $fh " kernel /boot/bender"
puts $fh " module /hypervisor iommu serial novpid novga"
puts $fh " module /image.elf"
puts $fh " module /image.elf.gz"
close $fh
}
@ -91,7 +96,7 @@ proc run_boot_dir {binaries} {
puts $fh "menuentry 'Genode on NOVA' {"
puts $fh " multiboot2 /boot/bender serial_fallback"
puts $fh " module2 /hypervisor hypervisor iommu serial novpid novga"
puts $fh " module2 /image.elf image.elf"
puts $fh " module2 /image.elf.gz image.elf"
puts $fh "}"
close $fh
}