gems: use [build_artifacts] in run scripts

Issue #4860
This commit is contained in:
Norman Feske 2023-11-17 18:11:02 +01:00 committed by Christian Helmuth
parent b843dbf045
commit 5a75a2f930
31 changed files with 56 additions and 183 deletions

View File

@ -8,7 +8,7 @@ if {[get_cmd_switch --autopilot] && [have_board virt_qemu_riscv]} {
exit 0
}
build "core init test/aes_cbc_4k"
build { core lib/ld init lib/libc lib/vfs lib/libcrypto test/aes_cbc_4k }
create_boot_directory
@ -132,10 +132,8 @@ if {$debug_steps} { exit 0 }
#
# build and boot image
#
set boot_modules { core ld.lib.so init }
append boot_modules { libc.lib.so vfs.lib.so libcrypto.lib.so test-aes_cbc_4k }
build_boot_image $boot_modules
build_boot_image [build_artifacts]
append qemu_args "-nographic "

View File

@ -147,6 +147,7 @@ install_config {
</start>
</config>}
build_boot_image {}
build_boot_image [build_artifacts]
append qemu_args " -smp 4,cores=4 "
run_genode_until forever

View File

@ -5,8 +5,8 @@ if { ![have_spec foc] && ![have_spec hw] && ![have_spec nova] &&
}
set build_components {
core init timer
server/cpu_sampler
core lib/ld init timer
server/cpu_sampler lib/cpu_sampler_platform
test/cpu_sampler
}
@ -74,11 +74,7 @@ proc binary_name_cpu_sampler_platform_lib_so { } {
}
}
build_boot_image {
core ld.lib.so init timer
cpu_sampler cpu_sampler_platform.lib.so
test-cpu_sampler
}
build_boot_image [build_artifacts]
append qemu_args "-nographic "

View File

@ -176,6 +176,6 @@ install_config {
build { app/decorator }
build_boot_image { decorator }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -103,7 +103,6 @@ install_config {
build { app/decorator test/decorator_stress }
build_boot_image { decorator test-decorator_stress }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -447,7 +447,7 @@ proc prepare_to_run_genode { } {
# Build boot image from boot modules
#
set boot_modules { depot_autopilot }
set boot_modules [build_artifacts]
append boot_modules $test_modules
build_boot_image $boot_modules

View File

@ -293,7 +293,7 @@ set noswapfile
set viminfo=}
close $vimrc_fd
build_boot_image { depot_query depot_deploy }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -164,9 +164,7 @@ copy_file [genode_dir]/repos/gems/recipes/raw/depot_download/depot_download.conf
build { app/depot_download_manager app/depot_query }
append boot_modules { depot_download_manager depot_query }
build_boot_image $boot_modules
build_boot_image [build_artifacts]
append qemu_args " -nographic "
append_qemu_nic_args

View File

@ -136,7 +136,7 @@ install_config {
</config>}
build_boot_image { init depot_query depot_deploy vfs.lib.so }
build_boot_image [build_artifacts]
append qemu_args " -nographic "

View File

@ -138,16 +138,10 @@ set fd [open [run_dir]/genode/usb_policy "w"]
puts $fd {<usb/>}
close $fd
#
# Override 'drivers.config' as supplied with the 'drivers_managed-pc' pkg
# with the (possibly modified) version found in the source tree. This avoids
# the need to re-create the pkg while testing modifications of this file.
#
copy_file [genode_dir]/repos/gems/recipes/raw/drivers_managed-pc/drivers.config \
copy_file [genode_dir]/repos/gems/sculpt/drivers/pc \
[run_dir]/genode/drivers.config
build_boot_image { driver_manager test-driver_manager ld.lib.so }
build_boot_image [build_artifacts]
#
# Build ext2 file-system images to be supplied to Qemu

View File

@ -393,12 +393,7 @@ if {[have_board linux]} {
exec mkdir -p bin/file_vault_dir/trust_anchor
}
append boot_modules {
file_vault
file_vault-sync_to_tresor_vfs_init
file_vault-truncate_file
}
append boot_modules [build_artifacts]
lappend_if [have_board linux] boot_modules file_vault_dir

View File

@ -225,7 +225,7 @@ install_config {
build { app/sequence app/fs_query }
build_boot_image { sequence fs_query }
build_boot_image [build_artifacts]
append qemu_args " -nographic "

View File

@ -6,7 +6,7 @@ assert_spec linux
#
# Build
#
build { core init timer server/lx_block app/gpt_write }
build { core lib/ld init timer server/lx_block app/gpt_write }
create_boot_directory
@ -60,13 +60,7 @@ install_config {
#
catch { exec dd if=/dev/zero of=bin/gpt.img bs=1M count=256 }
#
# Boot modules
#
build_boot_image {
core ld.lib.so init timer lx_block gpt_write
gpt.img
}
build_boot_image [list {*}[build_artifacts] gpt.img]
run_genode_until {child "gpt_write" exited with exit value 0.*\n} 10

View File

@ -125,6 +125,6 @@ install_config {
build { server/gui_fader }
build_boot_image { gui_fader }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -330,6 +330,6 @@ install_config {
build { app/menu_view }
build_boot_image { menu_view menu_view_styles.tar }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -7,20 +7,16 @@ import_from_depot [depot_user]/src/dynamic_rom \
# Generate config
#
append config {
install_config {
<config>
<parent-provides>}
append config [qt5_parent_provides]
append config {
<parent-provides>
} [qt5_parent_provides] {
</parent-provides>
<default caps="100"/>
<default-route>
<any-service> <parent/> <any-child/> </any-service>
</default-route>}
append config [qt5_start_nodes]
append config {
</default-route>
} [qt5_start_nodes] {
<start name="dynamic_rom">
<resource name="RAM" quantum="4M"/>
<provides><service name="ROM"/></provides>
@ -80,15 +76,7 @@ append config {
</start>
</config>}
install_config $config
#
# Boot modules
#
append boot_modules [qt5_boot_modules]
build_boot_image $boot_modules
build_boot_image [qt5_boot_modules]
run_genode_until forever

View File

@ -8,7 +8,7 @@ import_from_depot [depot_user]/src/[base_src] \
[depot_user]/src/dynamic_rom \
[depot_user]/src/nitpicker
append config {
install_config {
<config>
<parent-provides>
<service name="ROM"/>
@ -112,10 +112,8 @@ append config {
</start>
</config>}
install_config $config
build { app/nano3d }
build_boot_image { nano3d }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -115,10 +115,7 @@ install_config {
</config>
}
build_boot_image { tcp_terminal }
# qemu config
build_boot_image [build_artifacts]
append qemu_args " -nographic "
append_qemu_nic_args "hostfwd=tcp::5555-:8888"

View File

@ -77,7 +77,7 @@ close $fd
build { server/terminal }
build_boot_image { terminal }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -94,6 +94,6 @@ install_config {
build { server/terminal_log test/nitpicker }
build_boot_image { terminal_log testnit }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -147,8 +147,8 @@ set fd [open [run_dir]/genode/focus w]
puts $fd "<focus label=\"text_area.2 -> \"/>"
close $fd
build { app/text_area app/menu_view }
build { app/text_area app/menu_view lib/vfs lib/sandbox }
build_boot_image { text_area sandbox.lib.so vfs.lib.so menu_view menu_view_styles.tar }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -99,6 +99,6 @@ set fd [open [run_dir]/genode/focus w]
puts $fd "<focus label=\"gui_fb -> \" domain=\"default\"/>"
close $fd
build_boot_image { vfs test-text_painter vfs_ttf.lib.so }
build_boot_image [build_artifacts]
run_genode_until forever

View File

@ -33,7 +33,7 @@ proc qt5_decorator_config { } {
</config>}
}
append config {
install_config {
<config>
<parent-provides>} [qt5_parent_provides] {
</parent-provides>
@ -219,18 +219,7 @@ append config {
</config>
}
install_config $config
# for debugging only
#append build_components { app/window_layouter app/themed_decorator }
#build $build_components
append boot_modules [qt5_boot_modules]
# for debugging only
#append boot_modules { window_layouter themed_decorator }
build_boot_image $boot_modules
build_boot_image [qt5_boot_modules]
run_genode_until forever

View File

@ -149,9 +149,7 @@ install_config {
exec rm -rf bin/fs
exec mkdir -p bin/fs
build_boot_image { lx_fs
fs
ping }
build_boot_image [list {*}[build_artifacts] fs]
append qemu_args " -nographic "

View File

@ -159,8 +159,7 @@ install_config {
exec rm -rf bin/fs
exec mkdir -p bin/fs
build_boot_image { lx_fs
fs }
build_boot_image [list {*}[build_artifacts] fs]
append qemu_args " -nographic "

View File

@ -129,9 +129,7 @@ install_config {
exec rm -rf bin/fs
exec mkdir -p bin/fs/
build_boot_image { lx_fs
fs
ping }
build_boot_image [list {*}[build_artifacts] fs]
append qemu_args " -nographic "

View File

@ -58,10 +58,8 @@ proc jent_avail { } {
}
append build_components {
core
init
timer
server/vfs
core lib/ld init timer
server/vfs lib/vfs lib/libc lib/libcrypto
app/tresor_tester
server/log_terminal
server/report_rom
@ -1115,27 +1113,9 @@ if {[have_board linux]} {
}
}
append boot_modules {
core
init
timer
tresor_tester
ld.lib.so
log_terminal
report_rom
vfs
libc.lib.so
libcrypto.lib.so
vfs.lib.so
vfs_tresor_trust_anchor.lib.so
vfs_tresor_crypto_aes_cbc.lib.so
vfs_import.lib.so
}
set boot_modules [build_artifacts]
append_if [jent_avail] boot_modules { vfs_jitterentropy.lib.so }
append_if [have_board linux] boot_modules { lx_fs }
append_if [have_board linux] boot_modules [tresor_image_name]
lappend_if [have_board linux] boot_modules [tresor_image_name]
build_boot_image $boot_modules

View File

@ -3,7 +3,7 @@ if {[get_cmd_switch --autopilot] && [have_board virt_qemu_riscv]} {
exit 0
}
build { app/sequence server/vfs lib/vfs_import test/libc }
build { app/sequence server/vfs lib/libc lib/vfs lib/vfs_import test/libc }
create_boot_directory
@ -104,7 +104,7 @@ install_config {
</config>
}
build_boot_image { vfs_import.lib.so libc.lib.so vfs vfs.lib.so sequence }
build_boot_image [build_artifacts]
append qemu_args " -nographic "

View File

@ -17,9 +17,7 @@ import_from_depot [depot_user]/pkg/[drivers_interactive_pkg] \
build {
core
timer
init
core lib/ld timer init
server/lx_fs
lib/vfs_tresor
lib/vfs_tresor_crypto_aes_cbc
@ -28,6 +26,7 @@ build {
lib/vfs_import
lib/vfs_jitterentropy
lib/vfs_pipe
lib/vfs lib/libc lib/posix lib/libcrypto
test/vfs_stress
test/libc
server/log_terminal
@ -295,35 +294,10 @@ set shell_script "run/vfs_tresor.sh"
set repo "[repository_contains $shell_script]"
exec cp $repo/$shell_script bin/
append boot_modules {
lx_fs
tresor_init_trust_anchor
vfs_tresor.lib.so
vfs_tresor_crypto_aes_cbc.lib.so
vfs_tresor_crypto_memcopy.lib.so
vfs_tresor_trust_anchor.lib.so
vfs_tresor.sh
vfs.lib.so
vfs_import.lib.so
vfs_jitterentropy.lib.so
vfs_pipe.lib.so
posix.lib.so
libc.lib.so
libcrypto.lib.so
log_terminal
fs_rom
report_rom
sequence
init
core
timer
ld.lib.so
}
set boot_modules [build_artifacts]
append boot_modules {
encrypted_private_key superblock_hash
}
append boot_modules [tresor_image_file]
append boot_modules { vfs_tresor.sh encrypted_private_key superblock_hash }
lappend boot_modules [tresor_image_file]
set fd [open [run_dir]/genode/focus w]
puts $fd "<focus label=\"terminal_service -> \" domain=\"default\"/>"

View File

@ -11,11 +11,11 @@ proc tresor_image_size_mb { } {
return $image_size
}
append build_components {
core init timer
build {
core lib/ld init timer
server/lx_block
server/lx_fs
server/vfs
server/vfs lib/vfs
app/sequence
app/tresor_init_trust_anchor
@ -27,8 +27,6 @@ append build_components {
lib/libcrypto
}
build $build_components
create_boot_directory
append config {
@ -147,28 +145,7 @@ install_config $config
exec rm -rf bin/[tresor_image_file]
exec truncate -s [tresor_image_size_mb]M bin/[tresor_image_file]
append boot_modules {
core
init
timer
lx_block
lx_fs
sequence
vfs
vfs.lib.so
vfs_jitterentropy.lib.so
ld.lib.so
libcrypto.lib.so
libc.lib.so
tresor_init_trust_anchor
tresor_init
vfs_tresor_trust_anchor.lib.so
vfs_tresor_crypto_aes_cbc.lib.so
}
append boot_modules [tresor_image_file]
build_boot_image $boot_modules
build_boot_image [list {*}[build_artifacts] [tresor_image_file]]
run_genode_until {.*child "initialize_tresor" exited with exit value 0.*\n} 240

View File

@ -158,6 +158,6 @@ copy_file [genode_dir]/repos/gems/recipes/raw/motif_wm/wm.config [run_dir]/genod
build { app/window_layouter app/decorator server/nitpicker server/wm test/nitpicker }
build_boot_image { window_layouter decorator nitpicker wm testnit }
build_boot_image [build_artifacts]
run_genode_until forever