Message ID | 1527677142-10406-13-git-send-email-vincentc@andestech.com |
---|---|
State | New |
Headers | show |
Series | nds32 glibc port, v2 | expand |
On Wed, 30 May 2018, Vincent Chen wrote: > diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py > index 19411c1..ca015d0 100755 > --- a/scripts/build-many-glibcs.py > +++ b/scripts/build-many-glibcs.py > @@ -302,6 +302,14 @@ class Context(object): > 'ccopts': '-mabi=32'}, > {'variant': 'n64-nan2008-soft', > 'ccopts': '-mabi=64'}]) > + self.add_config(arch='nds32le', > + os_name='linux-gnu', > + gcc_cfg=['--with-nds32-lib=glibc', > + '--with-arch=v3', '--with-cpu=n13', > + '--enable-default-relax=no', > + '--with-nds32-lib=glibc', > + '--disable-libsanitizer', > + '--disable-multilib']) --disable-libsanitizer is used by build-many-glibcs.py by default; you shouldn't need to add it here. --with-nds32-lib=glibc should only need to be present once, not twice (and it's dubious that it's needed at all - any *-linux-gnu configuration should default to glibc in GCC, different target triplets such as *-linux-uclibc should be used for different default libc for configurations using the Linux kernel).
diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py index 19411c1..ca015d0 100755 --- a/scripts/build-many-glibcs.py +++ b/scripts/build-many-glibcs.py @@ -302,6 +302,14 @@ class Context(object): 'ccopts': '-mabi=32'}, {'variant': 'n64-nan2008-soft', 'ccopts': '-mabi=64'}]) + self.add_config(arch='nds32le', + os_name='linux-gnu', + gcc_cfg=['--with-nds32-lib=glibc', + '--with-arch=v3', '--with-cpu=n13', + '--enable-default-relax=no', + '--with-nds32-lib=glibc', + '--disable-libsanitizer', + '--disable-multilib']) self.add_config(arch='nios2', os_name='linux-gnu') self.add_config(arch='powerpc', @@ -1256,6 +1264,7 @@ class Config(object): 'm68k': 'm68k', 'microblaze': 'microblaze', 'mips': 'mips', + 'nds32': 'nds32', 'nios2': 'nios2', 'powerpc': 'powerpc', 's390': 's390',
From: Che-Wei Chuang <cnoize@andestech.com> The nds32 toochain cannot be generated successfully by this patch because the nds32 port of Binutils and GCC on upstream is too old. This patch is used to help reviewer to review the glibc port for Andes nds32 ISA. 2018-05-30 Che-Wei Chuang <cnoize@andestech.com> * scripts/build-many-glibcs.py (Context): Add nds32 targets. (Config): Likewise. --- scripts/build-many-glibcs.py | 9 +++++++++ 1 file changed, 9 insertions(+)