Skip to main content

warn_env_overrides_statement

Function warn_env_overrides_statement 

Source
pub fn warn_env_overrides_statement(stated: &BootConfig<'_>)
Expand description

On a host the environment WINS over what the image’s system.toml states (a user ruling, for testing convenience), and says so at boot, one warning per field, through nros_log.

stated is the image’s statement and nothing else, which is why only the linux board and the host C/C++ runners call this, where the baked rung IS the statement. An RTOS simulator’s baked rung is its board config whether or not anything was stated, so it would report a default as a statement. A malformed environment is not reported here: the resolver refuses it, and says why, right after.