summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2019-03-27 17:58:49 +0300
committerAnup Patel <anup@brainfault.org>2019-03-29 13:19:11 +0300
commitf9cfe301c92aede87e46069e66e250d4039e413e (patch)
tree9ad888e9926a14a20ba6b3d291ff9e8f8f056dcc /docs
parent215c200ccbf39d834dfb64771c8fa5a06ad5b4e0 (diff)
downloadopensbi-f9cfe301c92aede87e46069e66e250d4039e413e.tar.xz
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>
Diffstat (limited to 'docs')
-rw-r--r--docs/firmware/fw.md15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/firmware/fw.md b/docs/firmware/fw.md
index acff4a6..8ca54b6 100644
--- a/docs/firmware/fw.md
+++ b/docs/firmware/fw.md
@@ -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.