Retro68/binutils/ld/emulparams/arc-endianness.sh
2018-12-28 16:25:28 +01:00

12 lines
262 B
Bash

# 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