Skip to content

Commit

Permalink
sculpt: disable serial output when LOG!=core
Browse files Browse the repository at this point in the history
Issue #5180
  • Loading branch information
alex-ab authored and chelmuth committed Apr 19, 2024
1 parent 0a5e174 commit 7e23b70
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions repos/gems/run/sculpt.run
Expand Up @@ -25,8 +25,29 @@ proc assert_platform_supported { } {
assert_platform_supported


if {[have_spec nova]} {
proc kernel_output { } { return "novga serial logmem" }
proc log_core { } {

global ::env

if {[info exists ::env(LOG)]} {
if {$::env(LOG) == "core"} { return true }
}

return false
}


if {[log_core]} {
if {[have_spec nova]} {
proc kernel_output { } { return "novga serial logmem" }
}
} else {
# disable default enabled serial log output via core
proc boot_output { } { return "" }

if {[have_spec nova]} {
proc kernel_output { } { return "novga logmem" }
}
}


Expand Down Expand Up @@ -141,10 +162,8 @@ import_from_depot [depot_user]/src/[base_src] \

proc log_route { } {

global ::env
if {[info exists ::env(LOG)]} {
if {$::env(LOG) == "core"} {
return {<service name="LOG"> <parent/> </service>} } }
if {[log_core]} {
return {<service name="LOG"> <parent/> </service>} }

return {<service name="LOG"> <child name="log"/> </service>}
}
Expand Down

0 comments on commit 7e23b70

Please sign in to comment.