< prev index next >
make/autoconf/build-aux/config.sub
Print this page
rev 49266 : 8199138: Add RISC-V support to Zero
Reviewed-by: aph, erikj, ehelin
*** 27,38 ****
# autoconf system (which might easily get lost in a future update), we
# wrap it and fix the broken property, if needed.
DIR=`dirname $0`
! # First, filter out everything that doesn't begin with "aarch64-"
! if ! echo $* | grep '^aarch64-' >/dev/null ; then
. $DIR/autoconf-config.sub "$@"
# autoconf-config.sub exits, so we never reach here, but just in
# case we do:
exit
fi
--- 27,38 ----
# autoconf system (which might easily get lost in a future update), we
# wrap it and fix the broken property, if needed.
DIR=`dirname $0`
! # First, filter out everything that doesn't begin with "aarch64-" or "riscv64-"
! if ! echo $* | grep '^aarch64-\|^riscv64-' >/dev/null ; then
. $DIR/autoconf-config.sub "$@"
# autoconf-config.sub exits, so we never reach here, but just in
# case we do:
exit
fi
*** 43,52 ****
--- 43,56 ----
shift; break ;;
aarch64-* )
config=`echo $1 | sed 's/^aarch64-/arm-/'`
sub_args="$sub_args $config"
shift; ;;
+ riscv64-* )
+ config=`echo $1 | sed 's/^riscv64-/x86-/'`
+ sub_args="$sub_args $config"
+ shift; ;;
- ) # Use stdin as input.
sub_args="$sub_args $1"
shift; break ;;
* )
sub_args="$sub_args $1"
*** 55,64 ****
done
result=`. $DIR/autoconf-config.sub $sub_args "$@"`
exitcode=$?
! result=`echo $result | sed "s/^arm-/aarch64-/"`
echo $result
exit $exitcode
--- 59,68 ----
done
result=`. $DIR/autoconf-config.sub $sub_args "$@"`
exitcode=$?
! result=`echo $result | sed "s/^arm-/aarch64-/" | sed "s/^x86-/riscv64-/"`
echo $result
exit $exitcode
< prev index next >