mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 02:40:08 +00:00
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:
parent
37b08797c0
commit
bad002acb1
@ -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/ *]
|
||||
|
Loading…
Reference in New Issue
Block a user