hw: link core with debug symbols optionally

This commit changes the semantic of run_boot_dir to link a core
binary with debug symbols only when the designated library is in place.

Follow-up fix refering to issues #2339 and #2700
This commit is contained in:
Stefan Kalkowski 2018-03-02 09:50:35 +01:00 committed by Christian Helmuth
parent 37b08797c0
commit bad002acb1

View File

@ -74,8 +74,10 @@ proc run_boot_dir {binaries} {
set bootstrap_obj bootstrap-hw.o
# create core and bootstrap binary without modules for debugging
build_core debug/$core_obj {} [run_dir].core [core_link_address]
build_core [run_dir]/genode/$bootstrap_obj {} [run_dir].bootstrap [bootstrap_link_address]
if {[file exists debug/$core_obj]} {
build_core debug/$core_obj {} [run_dir].core [core_link_address]
build_core [run_dir]/genode/$bootstrap_obj {} [run_dir].bootstrap [bootstrap_link_address]
}
# determine modules to be incorporated into the core image
set modules [glob -tails -directory [run_dir]/genode/ *]