Skip to content

Commit

Permalink
Merge pull request riscv-software-src#241 from riscv/autotools_version
Browse files Browse the repository at this point in the history
Check autotools/automake version for OpenOCD build
  • Loading branch information
timsifive authored Sep 7, 2018
2 parents 309be11 + 9f737e4 commit 1a64970
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,17 @@

echo "Starting RISC-V Toolchain build process"

check_version() {
$1 --version | awk "NR==1 {if (\$NF>$2) {exit 0} exit 1}" || (
echo $3 requires at least version $2 of $1. Aborting.
exit 1
)
}

check_version automake 1.14 "OpenOCD build"
check_version autoconf 2.64 "OpenOCD build"
build_project riscv-openocd --prefix=$RISCV --enable-remote-bitbang --enable-jtag_vpi --disable-werror

build_project riscv-fesvr --prefix=$RISCV
build_project riscv-isa-sim --prefix=$RISCV --with-fesvr=$RISCV
build_project riscv-gnu-toolchain --prefix=$RISCV
Expand Down

0 comments on commit 1a64970

Please sign in to comment.