summaryrefslogtreecommitdiff
path: root/scripts/build_tx_riscv.sh
blob: 930bb9a31f34beaee1d415e308193b2a95b4c650 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
##############################################################################
# Copyright (c) 2024 Microsoft Corporation
# Copyright (c) 2026 Eclipse ThreadX contributors
#
# This program and the accompanying materials are made available under the
# terms of the MIT License which is available at
# https://opensource.org/licenses/MIT.
#
# SPDX-License-Identifier: MIT
##############################################################################

# Build RISC-V regression tests for both RV32 and RV64.
# Usage: build_tx_riscv.sh [all|<config>]

SCRIPT_DIR="$(dirname "$(realpath "$0")")"
RUN_SH="${SCRIPT_DIR}/../test/tx/cmake/riscv/run.sh"

ARGS="${@:-all}"

echo "=== Building RISC-V32 ==="
"$RUN_SH" riscv32 build $ARGS

echo ""
echo "=== Building RISC-V64 ==="
"$RUN_SH" riscv64 build $ARGS