diff mbox series

buildman: Enable buildman on aarch64 hosts

Message ID 20200117095337.2111-1-matthias.bgg@kernel.org
State New
Headers show
Series buildman: Enable buildman on aarch64 hosts | expand

Commit Message

Matthias Brugger Jan. 17, 2020, 9:53 a.m. UTC
From: Matthias Brugger <mbrugger at suse.com>

At kernel.org aarch64 toolchains are published in folder
arm64. Fix the URL for that case, so that we can fetch
toolchains on aarch64 machines.

Signed-off-by: Matthias Brugger <mbrugger at suse.com>

---

 tools/buildman/toolchain.py | 2 ++
 1 file changed, 2 insertions(+)

Comments

Matthias Brugger Jan. 25, 2020, 9:34 a.m. UTC | #1
On 17/01/2020 10:53, matthias.bgg at kernel.org wrote:
> From: Matthias Brugger <mbrugger at suse.com>
> 
> At kernel.org aarch64 toolchains are published in folder
> arm64. Fix the URL for that case, so that we can fetch
> toolchains on aarch64 machines.
> 
> Signed-off-by: Matthias Brugger <mbrugger at suse.com>
> 

Friendly ping. :)

> ---
> 
>  tools/buildman/toolchain.py | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
> index 4f39bfd0ce..89c54d688a 100644
> --- a/tools/buildman/toolchain.py
> +++ b/tools/buildman/toolchain.py
> @@ -487,6 +487,8 @@ class Toolchains:
>                  URL containing this toolchain, if avaialble, else None
>          """
>          arch = command.OutputOneLine('uname', '-m')
> +        if arch == 'aarch64':
> +            arch = 'arm64'
>          base = 'https://www.kernel.org/pub/tools/crosstool/files/bin'
>          versions = ['7.3.0', '6.4.0', '4.9.4']
>          links = []
>
Simon Glass Jan. 30, 2020, 2:18 a.m. UTC | #2
On Fri, 17 Jan 2020 at 02:53, <matthias.bgg at kernel.org> wrote:
>
> From: Matthias Brugger <mbrugger at suse.com>
>
> At kernel.org aarch64 toolchains are published in folder
> arm64. Fix the URL for that case, so that we can fetch
> toolchains on aarch64 machines.
>
> Signed-off-by: Matthias Brugger <mbrugger at suse.com>
>
> ---
>
>  tools/buildman/toolchain.py | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg at chromium.org>
diff mbox series

Patch

diff --git a/tools/buildman/toolchain.py b/tools/buildman/toolchain.py
index 4f39bfd0ce..89c54d688a 100644
--- a/tools/buildman/toolchain.py
+++ b/tools/buildman/toolchain.py
@@ -487,6 +487,8 @@  class Toolchains:
                 URL containing this toolchain, if avaialble, else None
         """
         arch = command.OutputOneLine('uname', '-m')
+        if arch == 'aarch64':
+            arch = 'arm64'
         base = 'https://www.kernel.org/pub/tools/crosstool/files/bin'
         versions = ['7.3.0', '6.4.0', '4.9.4']
         links = []