Retro68/binutils/ld/emulparams/arc-endianness.sh

12 lines
262 B
Bash
Raw Normal View History

2017-04-10 13:32:00 +02: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-*)
2018-12-28 16:25:28 +01:00
ARC_ENDIAN="big"
;;
2017-04-10 13:32:00 +02:00
arc-* | * )
2018-12-28 16:25:28 +01:00
ARC_ENDIAN="little"
;;
2017-04-10 13:32:00 +02:00
esac