diff options
| author | Simon Glass <[email protected]> | 2026-05-03 14:49:20 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2026-05-14 15:39:09 -0600 |
| commit | 825f8ee2fcf64ef5875a0bc0a3e2d8650acdc298 (patch) | |
| tree | 64cda83068fd6511855ba17b82ad5e9cbcd0aafd /scripts/const_structs.checkpatch | |
| parent | bb0f3eebb3c196d9b6efbbd1e5aa9b16abbb9ad6 (diff) | |
ti: Quote board_init in ti_common.env
bootcmd_ti_mmc skips a per-board init hook with:
if test -n ${board_init}; then run board_init; fi;
The default case is "no board override", i.e. board_init unset. The
expression then expands to 'test -n' with no operand and relies on a
U-Boot 'test' quirk that treats a missing operand as false to skip the
run.
Quote the variable so an unset board_init expands to 'test -n ""' and
the emptiness check is explicit.
Fixes: 8b0619579b22 ("cmd: test: fix handling of single-argument form of test")
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions
