run: save [run_dir].config also on hw and linux

This was missing as boot_dir/hw and boot_dir/linux do not use
`proc build_core_image`.
This commit is contained in:
Christian Helmuth 2019-02-27 14:17:03 +01:00
parent b06ec370d1
commit 28c25f120e
2 changed files with 7 additions and 0 deletions

View File

@ -96,6 +96,10 @@ proc run_boot_dir {binaries} {
build_core [run_dir]/genode/$core_obj $modules [run_dir]/genode/core.elf [core_link_address]
exec [cross_dev_prefix]strip [run_dir]/genode/core.elf
build_core [run_dir]/genode/$bootstrap_obj { core.elf } [run_dir]/image.elf [bootstrap_link_address]
# Save config part of the image.elf for easy inspection
exec cp -f [run_dir]/genode/config [run_dir].config
remove_genode_dir
exec [cross_dev_prefix]strip [run_dir]/image.elf

View File

@ -17,6 +17,9 @@ proc run_boot_dir {binaries} {
# check syntax of all boot modules named *.config
foreach file [glob -nocomplain [run_dir]/genode/*.config] {
check_xml_syntax $file }
# Save config part of the image.elf for easy inspection
exec cp -f [run_dir]/genode/config [run_dir].config
}