diff options
| author | Heinrich Schuchardt <[email protected]> | 2025-02-21 10:58:55 +0100 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2025-03-25 16:25:39 +0800 |
| commit | 3962acf0a492fb3dbf1d3780a7c7367a7b25b065 (patch) | |
| tree | 330c2324c403bf2e6656c63f828a1734a9e3b557 | |
| parent | b8903f550b4bd46e189c79ca4f7d8d851cc6d214 (diff) | |
board: starfive: spl: strip off 'starfive/' prefix
The configuration descriptions generated by binman contain the vendor
device-tree directory. Instead of adding it to all match strings just strip
it off.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Reviewed-by: Leo Yu-Chi Liang <[email protected]>
| -rw-r--r-- | board/starfive/visionfive2/spl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/board/starfive/visionfive2/spl.c b/board/starfive/visionfive2/spl.c index 1538d6aec73..13a48939c8f 100644 --- a/board/starfive/visionfive2/spl.c +++ b/board/starfive/visionfive2/spl.c @@ -121,6 +121,10 @@ int board_fit_config_name_match(const char *name) product_id = get_product_id_from_eeprom(); + /* Strip off prefix */ + if (strncmp(name, "starfive/", 9)) + return -EINVAL; + name += 9; if (!strncmp(product_id, "VF7110", 6)) { version = get_pcb_revision_from_eeprom(); if ((version == 'b' || version == 'B') && |
