docs/system/riscv: sifive_u: Update S-mode U-Boot image build instructions
authorBin Meng <bmeng@tinylab.org>
Thu, 4 Jan 2024 07:15:23 +0000 (15:15 +0800)
committerAlistair Francis <alistair.francis@wdc.com>
Wed, 10 Jan 2024 08:47:47 +0000 (18:47 +1000)
commite0299f71b34cb511257bcb0d2ed698b7c2a42ef4
treed5491a8f9cd4eb3ca9a7cae42459b41f2efa3bd4
parent3ca78c0689d504366d7c8dc516e7144940aa7c0c
docs/system/riscv: sifive_u: Update S-mode U-Boot image build instructions

Currently, the documentation outlines the process for building the
S-mode U-Boot image using `make menuconfig` and manual actions within
the menuconfig UI. However, this approach is fragile due to Kconfig
options potentially changing across different releases. For example,
CONFIG_OF_PRIOR_STAGE has been replaced by CONFIG_BOARD since v2022.01
release, and CONFIG_TEXT_BASE has been moved to the 'General setup'
menu from the 'Boot options' menu in v2024.01 release.

This update aims to make the S-mode U-Boot image build instructions
future-proof. It leverages the 'config' script provided in the U-Boot
source tree to edit the .config file, followed by a `make olddefconfig`.

Validated with U-Boot v2024.01 release.

Signed-off-by: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240104071523.273702-1-bmeng@tinylab.org>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
docs/system/riscv/sifive_u.rst