diff mbox series

[v6,13/13] LoongArch: Update build-many-glibcs.py for the LoongArch Port.

Message ID 20220708065424.2328646-1-caiyinyu@loongson.cn
State New
Headers show
Series GLIBC LoongArch PATCHES | expand

Commit Message

caiyinyu July 8, 2022, 6:54 a.m. UTC
---
 scripts/build-many-glibcs.py | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Adhemerval Zanella July 13, 2022, 7:24 p.m. UTC | #1
LGTM, thanks.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>

On 08/07/22 03:54, caiyinyu wrote:
> ---
>  scripts/build-many-glibcs.py | 5 +++++
>  1 file changed, 5 insertions(+)
> 
> diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
> index cc058e115c..9e7e360125 100755
> --- a/scripts/build-many-glibcs.py
> +++ b/scripts/build-many-glibcs.py
> @@ -218,6 +218,10 @@ class Context(object):
>                          os_name='linux-gnu',
>                          first_gcc_cfg=['--with-system-libunwind'],
>                          binutils_cfg=['--enable-obsolete'])
> +        self.add_config(arch='loongarch64',
> +                        os_name='linux-gnu',
> +                        variant='hard',
> +                        gcc_cfg=['--with-abi=lp64d','--disable-multilib'])

I take the usual naming is to have hard float as default and 'soft' as a variant,
but it is up to you the arch maintainer how you will name it.

>          self.add_config(arch='m68k',
>                          os_name='linux-gnu',
>                          gcc_cfg=['--disable-multilib'])
> @@ -1271,6 +1275,7 @@ def install_linux_headers(policy, cmdlist):
>                  'i686': 'x86',
>                  'i786': 'x86',
>                  'ia64': 'ia64',
> +                'loongarch64': 'loongarch',
>                  'm68k': 'm68k',
>                  'microblaze': 'microblaze',
>                  'mips': 'mips',
diff mbox series

Patch

diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index cc058e115c..9e7e360125 100755
--- a/scripts/build-many-glibcs.py
+++ b/scripts/build-many-glibcs.py
@@ -218,6 +218,10 @@  class Context(object):
                         os_name='linux-gnu',
                         first_gcc_cfg=['--with-system-libunwind'],
                         binutils_cfg=['--enable-obsolete'])
+        self.add_config(arch='loongarch64',
+                        os_name='linux-gnu',
+                        variant='hard',
+                        gcc_cfg=['--with-abi=lp64d','--disable-multilib'])
         self.add_config(arch='m68k',
                         os_name='linux-gnu',
                         gcc_cfg=['--disable-multilib'])
@@ -1271,6 +1275,7 @@  def install_linux_headers(policy, cmdlist):
                 'i686': 'x86',
                 'i786': 'x86',
                 'ia64': 'ia64',
+                'loongarch64': 'loongarch',
                 'm68k': 'm68k',
                 'microblaze': 'microblaze',
                 'mips': 'mips',