From: Heinrich Schuchardt Date: Fri, 21 Feb 2025 09:58:55 +0000 (+0100) Subject: board: starfive: spl: strip off 'starfive/' prefix X-Git-Tag: v2025.07-rc1~18^2~16^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3962acf0a492fb3dbf1d3780a7c7367a7b25b065;p=pandora-u-boot.git 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 Reviewed-by: Leo Yu-Chi Liang --- 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') &&