mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
committed by
Norman Feske
parent
10b56afff0
commit
23e3079f46
@@ -4,7 +4,9 @@
|
||||
# \param --load-tftp-base-dir base directory of TFTP
|
||||
# \param --load-tftp-offset-dir offset directory within TFTP
|
||||
# \param --load-tftp-absolute path is absolute, i.e. /base_dir/offset_dir
|
||||
# instead of only /offset_dir is used
|
||||
# instead of only /offset_dir is used
|
||||
# \param --load-tftp-copy-files avoid creating links in tftp dir by making
|
||||
# copies instead
|
||||
#
|
||||
|
||||
source [genode_dir]/tool/run/load.inc
|
||||
@@ -30,6 +32,21 @@ 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] }
|
||||
|
||||
|
||||
proc load_tftp_copy_files { } { return [get_cmd_switch --load-tftp-copy-files] }
|
||||
|
||||
|
||||
##
|
||||
# Return command used to install files in tftp directory
|
||||
#
|
||||
proc load_tftp_inst_cmd { } {
|
||||
if {[load_tftp_copy_files]} {
|
||||
return "cp --remove-destination"
|
||||
} else {
|
||||
return "ln -sf"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Generate pulsar config file used for loading files from TFTP
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user