parent
7ff6e96623
commit
44adc3c404
@ -0,0 +1 @@
|
||||
62b897bbff200f0ce5a0c01e52135cfdc7656104
|
@ -0,0 +1,10 @@
|
||||
LICENSE := GPLv3
|
||||
VERSION := git
|
||||
DOWNLOADS := g2fg.git
|
||||
|
||||
URL(g2fg) := https://github.com/alex-ab/g2fg.git
|
||||
REV(g2fg) := ed4811471d3b7f5acdd409870e35d63de037003d
|
||||
DIR(g2fg) := boot
|
||||
|
||||
default: $(DOWNLOADS)
|
||||
$(VERBOSE)tar -C boot -xjf boot/grub2.tar.bz2
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,5 +0,0 @@
|
||||
DEFAULT grub
|
||||
|
||||
LABEL grub
|
||||
KERNEL chain.c32
|
||||
APPEND grub=/boot/grub/stage2_eltorito
|
Binary file not shown.
Binary file not shown.
@ -0,0 +1,17 @@
|
||||
##
|
||||
# Determine GRUB2 directory
|
||||
#
|
||||
proc get_grub2_dir { } {
|
||||
set ::env(MAKEFLAGS) s
|
||||
set grub2_path [exec [genode_dir]/tool/ports/current grub2]
|
||||
|
||||
if {![file exists $grub2_path]} {
|
||||
puts ""
|
||||
puts "GRUB2 binaries are missing."
|
||||
puts "You can download the GRUB2 binaries by invoking:"
|
||||
puts "\ttool/ports/prepare_port grub2"
|
||||
puts ""
|
||||
exit 1
|
||||
}
|
||||
return $grub2_path
|
||||
}
|
@ -1,20 +1,21 @@
|
||||
##
|
||||
# Install files needed to create a bootable ISO image
|
||||
#
|
||||
# The ISO boot concept uses isolinux to load GRUB, which in turn loads Genode.
|
||||
# This way we can make use of isolinux' support for booting ISO images from a
|
||||
# USB stick.
|
||||
# The ISO boot concept uses GRUB2 and xorriso to boot from ISO and USB stick.
|
||||
#
|
||||
|
||||
source [genode_dir]/tool/run/grub2.inc
|
||||
|
||||
proc install_iso_bootloader_to_run_dir { } {
|
||||
puts "install bootloader"
|
||||
|
||||
exec mkdir -p [run_dir]/boot/isolinux
|
||||
exec cp [genode_dir]/tool/boot/chain.c32 [run_dir]/boot/isolinux
|
||||
exec cp [genode_dir]/tool/boot/isolinux.bin [run_dir]/boot/isolinux
|
||||
exec cp [genode_dir]/tool/boot/isolinux.cfg [run_dir]/boot/isolinux
|
||||
set grub2_path [get_grub2_dir]
|
||||
|
||||
exec mkdir -p [run_dir]/boot/grub
|
||||
exec cp [genode_dir]/tool/boot/stage2_eltorito [run_dir]/boot/grub
|
||||
exec mkdir -p [run_dir]/boot/grub/i386-pc
|
||||
exec cp $grub2_path/boot/grub2/eltorito.img [run_dir]/boot/grub/i386-pc/.
|
||||
foreach file [glob -nocomplain $grub2_path/boot/grub2/\*.mod] {
|
||||
exec cp $file [run_dir]/boot/grub/i386-pc/[file tail $file]
|
||||
}
|
||||
|
||||
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
|
||||
}
|
||||
|
Loading…
Reference in New Issue