1Recognise mips64 n32/n64 2 3These are supported in systemd now a days 4 5Upstream-Status: Backport [https://github.com/systemd/systemd/commit/caf49b95b3a6efe9455078098c729d83b08e5206] 6Signed-off-by: Khem Raj <raj.khem@gmail.com> 7 8--- a/src/architecture.h 9+++ b/src/architecture.h 10@@ -127,13 +127,22 @@ int uname_architecture(void); 11 # define native_architecture() ARCHITECTURE_SPARC 12 # define LIB_ARCH_TUPLE "sparc-linux-gnu" 13 # define PROC_CPUINFO_MODEL "cpu" 14-#elif defined(__mips64__) 15+#elif defined(__mips64) && defined(__LP64__) 16 # if __BYTE_ORDER == __BIG_ENDIAN 17 # define native_architecture() ARCHITECTURE_MIPS64 18-# error "Missing LIB_ARCH_TUPLE for MIPS64" 19+# define LIB_ARCH_TUPLE "mips64-linux-gnuabi64" 20 # else 21 # define native_architecture() ARCHITECTURE_MIPS64_LE 22-# error "Missing LIB_ARCH_TUPLE for MIPS64_LE" 23+# define LIB_ARCH_TUPLE "mips64el-linux-gnuabi64" 24+# endif 25+# define PROC_CPUINFO_MODEL "cpu model" 26+#elif defined(__mips64) 27+# if __BYTE_ORDER == __BIG_ENDIAN 28+# define native_architecture() ARCHITECTURE_MIPS64 29+# define LIB_ARCH_TUPLE "mips64-linux-gnuabin32" 30+# else 31+# define native_architecture() ARCHITECTURE_MIPS64_LE 32+# define LIB_ARCH_TUPLE "mips64el-linux-gnuabin32" 33 # endif 34 # define PROC_CPUINFO_MODEL "cpu model" 35 #elif defined(__mips__) 36