Browse Source

Changed install_subdir to $host_alias with substituted 64->32 instead… (#89)

* Changed install_subdir to $host_alias with substituted 64->32 instead of hardcoded riscv[32|64]-unknown-elf

* Updated readme to reflect changes in install_subdir.
pull/90/head
Rishi Khan 8 years ago
committed by Andrew Waterman
parent
commit
5e6005587d
  1. 7
      README.md
  2. 5
      configure
  3. 4
      configure.ac

7
README.md

@ -35,6 +35,7 @@ By default, 64-bit (RV64) versions of `pk` and `bbl` are built. To
built 32-bit (RV32) versions, supply a `--enable-32bit` flag to the
configure command.
The `install` step installs 64-bit build products into
`$RISCV/riscv64-unknown-elf`, and 32-bit versions into
`$RISCV/riscv32-unknown-elf`.
The `install` step installs 64-bit build products into a directory
matching your host (e.g. `$RISCV/riscv64-unknown-elf`). 32-bit versions
are installed into a directory matching a 32-bit version of your host (e.g.
`$RISCV/riscv32-unknown-elf`).

5
configure

@ -4086,12 +4086,13 @@ case "${BUILD_32BIT}" in
echo "Building 32-bit pk"
CFLAGS="$default_CFLAGS -m32"
LDFLAGS="-m32"
install_subdir="riscv32-unknown-elf"
install_subdir="`echo $host_alias | sed -e 's/64/32/g'`"
;;
*)
CFLAGS="$default_CFLAGS"
LDFLAGS=
install_subdir="riscv64-unknown-elf"
install_subdir=$host_alias
;;
esac

4
configure.ac

@ -90,12 +90,12 @@ case "${BUILD_32BIT}" in
echo "Building 32-bit pk"
CFLAGS="$default_CFLAGS -m32"
LDFLAGS="-m32"
install_subdir="riscv32-unknown-elf"
install_subdir="`echo $host_alias | sed -e 's/64/32/g'`"
;;
*)
CFLAGS="$default_CFLAGS"
LDFLAGS=
install_subdir="riscv64-unknown-elf"
install_subdir=$host_alias
;;
esac

Loading…
Cancel
Save