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

Message ID 20220719012210.1464764-4-caiyinyu@loongson.cn
State Committed
Commit 3be5fc00ad04b89a709f79e0b008ca119c4aa01e
Headers
Series [v7,01/13] LoongArch: Add LoongArch entries to config.h.in |

Checks

Context Check Description
dj/TryBot-apply_patch success Patch applied to master at the time it was sent

Commit Message

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

Comments

Adhemerval Zanella Netto July 20, 2022, 5:16 p.m. UTC | #1
LGTM, thanks.

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

On 18/07/22 22:22, 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..da9b905900 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='lp64d',
> +                        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',
  

Patch

diff --git a/scripts/build-many-glibcs.py b/scripts/build-many-glibcs.py
index cc058e115c..da9b905900 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='lp64d',
+                        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',