mirror of
https://github.com/riscv-software-src/opensbi.git
synced 2025-08-24 23:41:23 +01:00
lib: Disable the boot prints if SBI_SCRATCH_NO_BOOT_PRINTS is set
Use the newly introduced "options" in "struct sbi_scratch" to conditionally disable the boot prints. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
This commit is contained in:
@@ -75,3 +75,18 @@ make PLATFORM=<platform_subdir> FW_PAYLOAD_PATH=<payload path>
|
||||
The instructions to build each payload is different and the details can
|
||||
be found in the
|
||||
*docs/firmware/payload_<payload_name>.md* files.
|
||||
|
||||
Options for OpenSBI Firmware behaviors
|
||||
--------------------------------------
|
||||
An optional compile time flag FW_OPTIONS can be used to control the OpenSBI
|
||||
firmware run-time behaviors.
|
||||
|
||||
```
|
||||
make PLATFORM=<platform_subdir> FW_OPTIONS=<options>
|
||||
```
|
||||
|
||||
FW_OPTIONS is a bitwise or'ed value of various options, eg: *FW_OPTIONS=0x1*
|
||||
stands for disabling boot prints from the OpenSBI library.
|
||||
|
||||
For all supported options, please check "enum sbi_scratch_options" in the
|
||||
*include/sbi/sbi_scratch.h* header file.
|
||||
|
Reference in New Issue
Block a user