diff options
author | Patryk Duda <pdk@semihalf.com> | 2023-02-23 15:48:51 +0100 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-02-24 18:50:45 +0000 |
commit | 19edf9ec2d6ef217553c3959de1c51cf79bfbbe7 (patch) | |
tree | 78e1066383b1ff55f8c8aafa601205e99b6ea162 /util | |
parent | 8441cf441de4cfc0e46bc5f511ac36c89ab196b2 (diff) | |
download | chrome-ec-19edf9ec2d6ef217553c3959de1c51cf79bfbbe7.tar.gz |
flash_fp_mcu: Remove any numbers from board namestabilize-15364.B-main
Strongbad64 is a variant of strongbad board, so flash_fp_mcu should
recognise it as strongbad similar to e.g. strongbad-kernelnext.
BUG=b:270542279
BRANCH=none
TEST=tast run <IP> firmware.Fp{FlashFpMcuHello,UpdaterSucceeded,\
AddEntropy,BioWash,CheckWriteProtect,RDP0,RDP1,ROCanUpdateRW,\
ObeysRollback,ROOnlyBootsValidRW,RWNoUpdateRO,ReadFlash,\
RebootPowerCycle,RebootToRO,SoftwareWriteProtect,SystemIsLocked,\
TpmSeed,Updater}
Change-Id: Ifc69a1f3dd58d7f01d0da1439bebf9def7f52ee3
Signed-off-by: Patryk Duda <pdk@semihalf.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4287435
Reviewed-by: Tom Hughes <tomhughes@chromium.org>
Tested-by: Patryk Duda <patrykd@google.com>
Commit-Queue: Patryk Duda <patrykd@google.com>
Diffstat (limited to 'util')
-rw-r--r-- | util/flash_fp_mcu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/util/flash_fp_mcu b/util/flash_fp_mcu index 8a01a074df..e383186a9f 100644 --- a/util/flash_fp_mcu +++ b/util/flash_fp_mcu @@ -231,13 +231,17 @@ match_kernel_regex() { # * platform_base_name "hatch-arc-r" --> "hatch" # * platform_base_name "hatch-borealis" --> "hatch" # * platform_base_name "hatch" --> "hatch" +# * platform_base_name "strongbad64" --> "strongbad" # # Usage: platform_base_name <platform_name> platform_base_name() { local platform_name="$1" # We remove any suffix starting at the first '-'. - echo "${platform_name%%-*}" + local base_name="${platform_name%%-*}" + + # Remove any numbers from the base name. + echo "${base_name//[0-9]/}" } get_default_fw() { |