]> git.ipfire.org Git - thirdparty/u-boot.git/commit
bootm: Fix flags used for bootargs string substitution
authorPiotr Kubik <piotr.kubik@iopsys.eu>
Fri, 24 Nov 2023 16:30:46 +0000 (17:30 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 20 Dec 2023 15:46:54 +0000 (10:46 -0500)
commit7481632b192f61b5bcb028c885a460d8b9c2731c
treed9324601c3458c8d2efc1ea41d83ffbdb40f75fe
parent785834d62ef3c4121601a4a68a032d96100b7475
bootm: Fix flags used for bootargs string substitution

Commit 51bb33846ad2 ("bootm: Support string substitution in
bootargs") introduced a feature of bootargs string substitution
and changed a flag used in bootm_process_cmdline_env() call
to be either true or false. With this flag value,
condition in bootm_process_cmdline()
`if (flags & BOOTM_CL_SUBST)` is never true
and process_subst() is never called.

Add a simple test to verify if substitution works OK.

Signed-off-by: Piotr Kubik <piotr.kubik@iopsys.eu>
Reviewed-by: Simon Glass <sjg@chromium.org>
boot/bootm.c
test/py/tests/test_fit.py