mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
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:
parent
9a46c670c1
commit
9cb71d0260
@ -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
12
tool/run/load/pxe.inc
Normal 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
|
||||
}
|
@ -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
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user