diff options
author | Zong Li <zongbox@gmail.com> | 2018-11-30 17:18:00 +0800 |
---|---|---|
committer | Alistair Francis <alistair.francis@wdc.com> | 2020-08-27 08:17:43 -0700 |
commit | 72dfddeffcc993a726bdcbe5e515afa1180095e8 (patch) | |
tree | c164b32b945df48e74ad88e1f4e539bd44a4b5de /sysdeps/riscv | |
parent | 30b963c143eaa07f09567f2e0649edb7525c43fd (diff) | |
download | glibc-72dfddeffcc993a726bdcbe5e515afa1180095e8.zip glibc-72dfddeffcc993a726bdcbe5e515afa1180095e8.tar.gz glibc-72dfddeffcc993a726bdcbe5e515afa1180095e8.tar.bz2 |
RISC-V: Build infrastructure for 32-bit port
This patch lays out the top-level organisation of the RISC-V 32-bit port.
It provides all the Implies files as well as various other fragments of
the build infrastructure.
Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
Diffstat (limited to 'sysdeps/riscv')
-rw-r--r-- | sysdeps/riscv/preconfigure | 6 | ||||
-rw-r--r-- | sysdeps/riscv/rv32/Implies-after | 1 | ||||
-rw-r--r-- | sysdeps/riscv/rv32/rvd/Implies | 3 | ||||
-rw-r--r-- | sysdeps/riscv/rv32/rvf/Implies | 1 |
4 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/riscv/preconfigure b/sysdeps/riscv/preconfigure index d9adb31..1ab5d20 100644 --- a/sysdeps/riscv/preconfigure +++ b/sysdeps/riscv/preconfigure @@ -6,11 +6,7 @@ riscv*) atomic=`$CC $CFLAGS $CPPFLAGS -E -dM -xc /dev/null | grep '#define __riscv_atomic' | cut -d' ' -f2` case "$xlen" in - 32) - echo "glibc does not yet support 32-bit systems" >&2 - exit 1 - ;; - 64) + 64 | 32) ;; *) echo "Unable to determine XLEN" >&2 diff --git a/sysdeps/riscv/rv32/Implies-after b/sysdeps/riscv/rv32/Implies-after new file mode 100644 index 0000000..39a34c5 --- /dev/null +++ b/sysdeps/riscv/rv32/Implies-after @@ -0,0 +1 @@ +wordsize-32 diff --git a/sysdeps/riscv/rv32/rvd/Implies b/sysdeps/riscv/rv32/rvd/Implies new file mode 100644 index 0000000..1151214 --- /dev/null +++ b/sysdeps/riscv/rv32/rvd/Implies @@ -0,0 +1,3 @@ +riscv/rv32/rvf +riscv/rvd +riscv/rvf diff --git a/sysdeps/riscv/rv32/rvf/Implies b/sysdeps/riscv/rv32/rvf/Implies new file mode 100644 index 0000000..66c4014 --- /dev/null +++ b/sysdeps/riscv/rv32/rvf/Implies @@ -0,0 +1 @@ +riscv/rvf |