Projet_SETI_RISC-V/riscv-gnu-toolchain/gdb/ld/emulparams/arc-endianness.sh

12 lines
262 B
Bash
Raw Normal View History

2023-03-06 14:48:14 +01:00
# Select an appropriate endinaness based on the value of target. When
# building for all targets we select little endian, which is what the
# '*' pattern is for.
case ${target} in
arceb-*)
ARC_ENDIAN="big"
;;
arc-* | * )
ARC_ENDIAN="little"
;;
esac