diff options
author | Pan Li <pan2.li@intel.com> | 2023-12-13 15:23:33 +0800 |
---|---|---|
committer | Christoph Müllner <christophm30@gmail.com> | 2023-12-13 10:56:45 +0100 |
commit | 99e2d2bac5144f5152ba6d3fbf04bdd9b9ba4381 (patch) | |
tree | f3b89aab5ee80189544805d5d4c86dda0679ae97 | |
parent | ae9efcc33c4968f97ab89b4b13c7f6520b145f94 (diff) | |
download | riscv-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-x | scripts/generate_target_board | 2 |
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(","): |