xref: /netbsd-src/external/gpl3/binutils.old/dist/ld/emulparams/arc-endianness.sh (revision 9fd8799cb5ceb66c69f2eb1a6d26a1d587ba1f1e)
1# Select an appropriate endinaness based on the value of target.  When
2# building for all targets we select little endian, which is what the
3# '*' pattern is for.
4case ${target} in
5    arceb-*)
6	ARC_ENDIAN="big"
7	;;
8    arc-* | * )
9	ARC_ENDIAN="little"
10	;;
11esac
12