run: Add iPXE support to hw

This commit is contained in:
Adrian-Ken Rueegsegger 2015-12-18 13:09:39 +01:00 committed by Christian Helmuth
parent fcde1d668c
commit 316134caf8
1 changed files with 24 additions and 0 deletions

View File

@ -207,6 +207,30 @@ proc run_boot_dir {binaries} {
generate_tftp_config
}
if {[have_spec x86] && [have_include "load/ipxe"]} {
#
# Generate iPXE config file
#
set fh [open "[run_dir]/boot.cfg" "WRONLY CREAT TRUNC"]
puts $fh "#!ipxe"
if {[have_spec "muen"]} {
puts $fh "kernel image.bin"
} else {
puts $fh "kernel boot/bender"
puts $fh "module image.elf"
#
# Install bender
#
install_bender_to_run_dir
}
puts $fh "boot"
close $fh
update_ipxe_boot_dir
}
# retrieve stand-alone core
exec cp $core_target/$core_bin.standalone bin/$core_bin
exec rm $core_target/$core_bin.standalone