about summary refs log tree commit diff
path: root/scripts
diff options
context:
space:
mode:
authorZong Li <zongbox@gmail.com>2018-11-30 17:18:40 +0800
committerAlistair Francis <alistair.francis@wdc.com>2020-08-27 08:17:44 -0700
commit567b1705017a0876b1cf9661a20521ef1e4ddc54 (patch)
treeecf154f129765213b29eb3eec5709aa38f016665 /scripts
parent389f6854eb43d892cca69f8b3bfaf813e0516127 (diff)
downloadglibc-567b1705017a0876b1cf9661a20521ef1e4ddc54.tar.gz
glibc-567b1705017a0876b1cf9661a20521ef1e4ddc54.tar.xz
glibc-567b1705017a0876b1cf9661a20521ef1e4ddc54.zip
Add RISC-V 32-bit target to build-many-glibcs.py
Support building three variants of 32-bit RISC-V glibc as follows:
- riscv32-linux-gnu-rv32imac-ilp32
- riscv32-linux-gnu-rv32imafdc-ilp32
- riscv32-linux-gnu-rv32imafdc-ilp32d

Reviewed-by: Maciej W. Rozycki <macro@wdc.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-many-glibcs.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 687c056b7a..31684eaee2 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -348,6 +348,21 @@ class Context(object):
         self.add_config(arch='powerpc64le',
                         os_name='linux-gnu',
                         gcc_cfg=['--disable-multilib', '--enable-secureplt'])
+        self.add_config(arch='riscv32',
+                        os_name='linux-gnu',
+                        variant='rv32imac-ilp32',
+                        gcc_cfg=['--with-arch=rv32imac', '--with-abi=ilp32',
+                                 '--disable-multilib'])
+        self.add_config(arch='riscv32',
+                        os_name='linux-gnu',
+                        variant='rv32imafdc-ilp32',
+                        gcc_cfg=['--with-arch=rv32imafdc', '--with-abi=ilp32',
+                                 '--disable-multilib'])
+        self.add_config(arch='riscv32',
+                        os_name='linux-gnu',
+                        variant='rv32imafdc-ilp32d',
+                        gcc_cfg=['--with-arch=rv32imafdc', '--with-abi=ilp32d',
+                                 '--disable-multilib'])
         self.add_config(arch='riscv64',
                         os_name='linux-gnu',
                         variant='rv64imac-lp64',