[9/9] Add 32 bit RISC-V to build-many-glibcs.py

Message ID 4aee5401c3e8163c166d85df6820122b30dc18dc.1531384754.git.zong@andestech.com
State New
Headers show
Series
  • RISC-V glibc port for the 32 bit
Related show

Commit Message

Zong Li July 12, 2018, 10:26 a.m.
Support building three variant of 32 bit RISC-V glibc.
---
 scripts/build-many-glibcs.py | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

Patch

diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 601718d..4bbb730 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -330,6 +330,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',