diff mbox

[v4,10/10] Add RISC-V 32-bit target to build-many-glibcs.py

Message ID 858a04037082f99ac74766df696f6a7c9c986ada.1543572707.git.zongbox@gmail.com
State New
Headers show

Commit Message

Zong Li Dec. 1, 2018, 3:10 a.m. UTC
Support building three variant of 32 bit RISC-V glibc as follows:
- riscv32-linux-gnu-rv32imac-ilp32
- riscv32-linux-gnu-rv32imafdc-ilp32
- riscv32-linux-gnu-rv32imafdc-ilp32d

2018-11-29  Zong Li  <zong@andestech.com>

	* scripts/build-many-glibcs.py (Context): Add rv32 targets.
---
 ChangeLog                    |  1 +
 scripts/build-many-glibcs.py | 15 +++++++++++++++
 2 files changed, 16 insertions(+)
diff mbox

Patch

diff --git a/ChangeLog b/ChangeLog
index ee74249..c569cc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -43,6 +43,7 @@ 
 	* sysdeps/unix/sysv/linux/riscv/shlib-versions: Likewise.
 	* sysdeps/riscv/preconfigure: Likewise.
 	* sysdeps/riscv/rv32/fix-fp-int-convert-overflow.h: New file.
+	* scripts/build-many-glibcs.py (Context): Add rv32 targets.
 
 2018-11-28  Florian Weimer  <fweimer@redhat.com>
 
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 98acabc..e322696 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -320,6 +320,21 @@  class Context(object):
                         variant='e500v1',
                         gcc_cfg=['--disable-multilib', '--enable-secureplt',
                                  '--enable-obsolete'])
+        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',