1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

basic: update the Arch tuples for LoongArch

This commit is contained in:
Xiaotian Wu 2022-03-08 11:15:25 +08:00 committed by Yu Watanabe
parent dd2396f20d
commit 0172289348
2 changed files with 24 additions and 3 deletions

View File

@ -199,9 +199,16 @@ int uname_architecture(void);
# define LIB_ARCH_TUPLE "sh4a-linux-gnu" # define LIB_ARCH_TUPLE "sh4a-linux-gnu"
# endif # endif
#elif defined(__loongarch64) #elif defined(__loongarch64)
# pragma message "Please update the Arch tuple of loongarch64 after psABI is stable"
# define native_architecture() ARCHITECTURE_LOONGARCH64 # define native_architecture() ARCHITECTURE_LOONGARCH64
# define LIB_ARCH_TUPLE "loongarch64-linux-gnu" # if defined(__loongarch_double_float)
# define LIB_ARCH_TUPLE "loongarch64-linux-gnuf64"
# elif defined(__loongarch_single_float)
# define LIB_ARCH_TUPLE "loongarch64-linux-gnuf32"
# elif defined(__loongarch_soft_float)
# define LIB_ARCH_TUPLE "loongarch64-linux-gnusf"
# else
# error "Unrecognized loongarch architecture variant"
# endif
#elif defined(__m68k__) #elif defined(__m68k__)
# define native_architecture() ARCHITECTURE_M68K # define native_architecture() ARCHITECTURE_M68K
# define LIB_ARCH_TUPLE "m68k-linux-gnu" # define LIB_ARCH_TUPLE "m68k-linux-gnu"

View File

@ -63,6 +63,20 @@ static const BaseFilesystem table[] = {
"usr/lib64\0", "ld-linux-x86-64.so.2" }, "usr/lib64\0", "ld-linux-x86-64.so.2" },
# define KNOW_LIB64_DIRS 1 # define KNOW_LIB64_DIRS 1
#elif defined(__ia64__) #elif defined(__ia64__)
#elif defined(__loongarch64)
# define KNOW_LIB64_DIRS 1
# if defined(__loongarch_double_float)
{ "lib64", 0, "usr/lib/"LIB_ARCH_TUPLE"\0"
"usr/lib64\0", "ld-linux-loongarch-lp64d.so.1" },
# elif defined(__loongarch_single_float)
{ "lib64", 0, "usr/lib/"LIB_ARCH_TUPLE"\0"
"usr/lib64\0", "ld-linux-loongarch-lp64f.so.1" },
# elif defined(__loongarch_soft_float)
{ "lib64", 0, "usr/lib/"LIB_ARCH_TUPLE"\0"
"usr/lib64\0", "ld-linux-loongarch-lp64s.so.1" },
# else
# error "Unknown LoongArch ABI"
# endif
#elif defined(__m68k__) #elif defined(__m68k__)
/* No link needed. */ /* No link needed. */
# define KNOW_LIB64_DIRS 1 # define KNOW_LIB64_DIRS 1