[v5,12/14] C-SKY: Add build-many-glibcs.py support

Message ID dc5424c72c0974866aabb614c90471242673dc59.1542598110.git.han_mao@c-sky.com
State Superseded
Headers show
Series
  • port C-SKY to glibc
Related show

Commit Message

Mao Han Nov. 19, 2018, 5:22 a.m.
* scripts/build-many-glibcs.py: Add C-SKY targets
---
 scripts/build-many-glibcs.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

-- 
2.7.4

Patch

diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index 1bf8ee1..ad0269a 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -181,6 +181,15 @@  class Context(object):
                         variant='be8',
                         gcc_cfg=['--with-float=hard', '--with-arch=armv7-a',
                                  '--with-fpu=vfpv3'])
+        self.add_config(arch='csky',
+                        os_name='linux-gnuabiv2',
+                        variant='soft',
+                        gcc_cfg=['--disable-multilib',
+                                 '--enable-initfini-array'])
+        self.add_config(arch='csky',
+                        os_name='linux-gnuabiv2',
+                        gcc_cfg=['--with-float=hard', '--disable-multilib',
+                                 '--enable-initfini-array'])
         self.add_config(arch='hppa',
                         os_name='linux-gnu')
         self.add_config(arch='i686',
@@ -1247,6 +1256,7 @@  class Config(object):
         arch_map = {'aarch64': 'arm64',
                     'alpha': 'alpha',
                     'arm': 'arm',
+                    'csky': 'csky',
                     'hppa': 'parisc',
                     'i486': 'x86',
                     'i586': 'x86',