run: Move shared procedure to load/pxe.inc

The install_pxe_bootloader_to_run_dir procedure is required by the tftp
as well as the ipxe load script. Move it to a separate file which is
include by both.
This commit is contained in:
Adrian-Ken Rueegsegger 2018-02-27 14:46:44 +01:00 committed by Christian Helmuth
parent 9a46c670c1
commit 9cb71d0260
3 changed files with 14 additions and 14 deletions

View File

@ -6,6 +6,7 @@
#
source [genode_dir]/tool/run/load.inc
source [genode_dir]/tool/run/load/pxe.inc
##

12
tool/run/load/pxe.inc Normal file
View File

@ -0,0 +1,12 @@
##
# Install files needed to boot via PXE
#
proc install_pxe_bootloader_to_run_dir { } {
exec mkdir -p [run_dir]/boot
exec cp [genode_dir]/tool/boot/pulsar [run_dir]/boot/pulsar
exec chmod a+r [run_dir]/boot/pulsar
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
exec chmod a+r [run_dir]/boot/bender
exec cp [genode_dir]/tool/boot/unzip [run_dir]/boot/unzip
exec chmod a+r [run_dir]/boot/unzip
}

View File

@ -8,6 +8,7 @@
#
source [genode_dir]/tool/run/load.inc
source [genode_dir]/tool/run/load/pxe.inc
##
@ -29,20 +30,6 @@ proc load_tftp_offset_dir { } { return [get_cmd_arg --load-tftp-offset-dir ""] }
proc load_tftp_use_absolute { } { return [get_cmd_switch --load-tftp-absolute] }
##
# Install files needed to boot via PXE
#
proc install_pxe_bootloader_to_run_dir { } {
exec mkdir -p [run_dir]/boot
exec cp [genode_dir]/tool/boot/pulsar [run_dir]/boot/pulsar
exec chmod a+r [run_dir]/boot/pulsar
exec cp [genode_dir]/tool/boot/bender [run_dir]/boot/bender
exec chmod a+r [run_dir]/boot/bender
exec cp [genode_dir]/tool/boot/unzip [run_dir]/boot/unzip
exec chmod a+r [run_dir]/boot/unzip
}
##
# Generate pulsar config file used for loading files from TFTP
#