* updated ksystemlog (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / architecture / mips64 / archtest.sh
blob9a32f622aa7304811f32c2b9a3d12d2886a45f59
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: architecture/mips64/archtest.sh
5 # Copyright (C) 2004 - 2020 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 case "$SDECFG_MIPS64_ENDIANESS" in
16 EL)
17 arch_bigendian=no
18 arch_target="mips64el-t2-linux" ;;
19 EB)
20 arch_bigendian=yes
21 arch_target="mips64-t2-linux" ;;
22 esac
24 if [ "$SDECFG_MIPS64_N32" = 1 ]; then
25 arch_sizeof_long=4 && arch_sizeof_char_p=4
26 arch_target="${arch_target}-gnuabin32"
27 else
28 arch_target="${arch_target}-gnuabi64"