aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan Li <pan2.li@intel.com>2023-12-13 15:23:33 +0800
committerChristoph Müllner <christophm30@gmail.com>2023-12-13 10:56:45 +0100
commit99e2d2bac5144f5152ba6d3fbf04bdd9b9ba4381 (patch)
treef3b89aab5ee80189544805d5d4c86dda0679ae97
parentae9efcc33c4968f97ab89b4b13c7f6520b145f94 (diff)
downloadriscv-gnu-toolchain-99e2d2bac5144f5152ba6d3fbf04bdd9b9ba4381.zip
riscv-gnu-toolchain-99e2d2bac5144f5152ba6d3fbf04bdd9b9ba4381.tar.gz
riscv-gnu-toolchain-99e2d2bac5144f5152ba6d3fbf04bdd9b9ba4381.tar.bz2
Fix one bug of generate target board2023.12.14
The default value of subarray is the length, thus we should take `idx` instead of `idx - 1` here. Signed-off-by: Pan Li <pan2.li@intel.com>
-rwxr-xr-xscripts/generate_target_board2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/generate_target_board b/scripts/generate_target_board
index 9996f7e..c4d91ee 100755
--- a/scripts/generate_target_board
+++ b/scripts/generate_target_board
@@ -64,7 +64,7 @@ def main(argv):
one_target_board = generate_one_target_board(extra_test, "", options)
target_board_list.append(one_target_board)
else:
- arch_abi = extra_test[:idx - 1]
+ arch_abi = extra_test[:idx]
flags = extra_test[idx + 1:]
for flag in flags.split(","):