run: support for accessing depot content
Run scripts can use the new 'import_from_depot' function to incorporate archive content from the depot into a scenario. The function must be called after the 'create_boot_directory' function and takes any number of pkg, src, or raw archives as arguments. An archive is specified as depot-relative path of the form <user>/<type>/name. Run scripts may call 'import_from_depot' repeatedly. An argument can refer to a specific version of an archive or just the version-less archive name. In the latter case, the current version (as defined by a corresponding archive recipe in the source tree) is used. If a 'src' archive is specified, the run tool integrates the content of the corrsponding binary archive into the scenario. The binary archives are selected according the spec values as defined for the build directory. As of now, only x86_32 and x86_64 are supported by the 'depot_spec' function. Issue #2339
This commit is contained in:
committed by
Christian Helmuth
parent
b58fbe5ba5
commit
a196fc171a
@@ -76,3 +76,10 @@ proc run_boot_dir {binaries} {
|
||||
create_symlink_for_iso
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } { return base-fiasco }
|
||||
|
||||
|
||||
@@ -183,3 +183,10 @@ proc run_boot_dir {binaries} {
|
||||
if {[have_spec x86]} { return [run_boot_dir_x86 $binaries] }
|
||||
if {[have_spec arm]} { return [run_boot_dir_arm $binaries] }
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } { return base-foc }
|
||||
|
||||
|
||||
@@ -145,3 +145,16 @@ proc run_boot_dir {binaries} {
|
||||
update_ipxe_boot_dir
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } {
|
||||
|
||||
if {[have_spec x86_64]} { return base-hw-pc }
|
||||
if {[have_spec pbxa9]} { return base-hw-pbxa9 }
|
||||
|
||||
puts stderr "base-hw kernel does not support this build configuration"
|
||||
exit 1
|
||||
}
|
||||
|
||||
@@ -14,3 +14,9 @@ proc run_boot_dir {binaries} {
|
||||
set src_binary_path "../../../../bin/[kernel_specific_binary $binary]"
|
||||
exec ln -sf $src_binary_path [run_dir]/genode/$binary }
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } { return base-linux }
|
||||
|
||||
@@ -111,3 +111,10 @@ proc run_boot_dir {binaries} {
|
||||
create_symlink_for_iso
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } { return base-nova }
|
||||
|
||||
|
||||
@@ -207,3 +207,10 @@ proc run_boot_dir {binaries} {
|
||||
generate_tftp_config
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } { return base-okl4 }
|
||||
|
||||
|
||||
@@ -69,3 +69,10 @@ proc run_boot_dir {binaries} {
|
||||
generate_tftp_config
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } { return base-pistachio }
|
||||
|
||||
|
||||
@@ -64,3 +64,10 @@ proc run_boot_dir {binaries} {
|
||||
create_symlink_for_iso
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
##
|
||||
# Base source archive within depot
|
||||
#
|
||||
proc base_src { } { return base-sel4 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user