[PATCH v2 10/19] bootstd: Add a function to update a command line
Bin Meng
bmeng.cn at gmail.com
Wed Jul 12 13:48:01 CEST 2023
On Tue, Jun 20, 2023 at 4:25 PM Simon Glass <sjg at chromium.org> wrote:
>
> The Linux command line consists of a number of words with optional values.
> At present U-Boot allows this to be changed using the bootargs environment
> variable.
>
> But this is quite painful, since the command line can be very long.
>
> Add a function which can adjust a single field in the command line, so
> that it is easier to make changes before booting.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
> Changes in v2:
> - Add comment for copy_in()
> - Avoid multiplication on a boolean
> - Add a comment as to why @len is needed
>
> boot/bootflow.c | 190 +++++++++++++++++++++++++++++++++++++++++++
> include/bootflow.h | 40 +++++++++
> test/boot/bootflow.c | 154 +++++++++++++++++++++++++++++++++++
> 3 files changed, 384 insertions(+)
>
Reviewed-by: Bin Meng <bmeng.cn at gmail.com>
More information about the U-Boot
mailing list