Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
arduino-esp32
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
arduino-esp32
Commits
91420a38
Commit
91420a38
authored
Feb 08, 2023
by
me-no-dev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update get.py to support Apple ARM64
parent
165595b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
tools/get.py
tools/get.py
+19
-5
No files found.
tools/get.py
View file @
91420a38
...
@@ -177,20 +177,34 @@ def load_tools_list(filename, platform):
...
@@ -177,20 +177,34 @@ def load_tools_list(filename, platform):
for
t
in
tools_info
:
for
t
in
tools_info
:
tool_platform
=
[
p
for
p
in
t
[
'systems'
]
if
p
[
'host'
]
==
platform
]
tool_platform
=
[
p
for
p
in
t
[
'systems'
]
if
p
[
'host'
]
==
platform
]
if
len
(
tool_platform
)
==
0
:
if
len
(
tool_platform
)
==
0
:
continue
# Fallback to x86 on Apple ARM
if
platform
==
'arm64-apple-darwin'
:
tool_platform
=
[
p
for
p
in
t
[
'systems'
]
if
p
[
'host'
]
==
'x86_64-apple-darwin'
]
if
len
(
tool_platform
)
==
0
:
continue
# Fallback to 32bit on 64bit x86 Windows
elif
platform
==
'x86_64-mingw32'
:
tool_platform
=
[
p
for
p
in
t
[
'systems'
]
if
p
[
'host'
]
==
'i686-mingw32'
]
if
len
(
tool_platform
)
==
0
:
continue
else
:
continue
tools_to_download
.
append
(
tool_platform
[
0
])
tools_to_download
.
append
(
tool_platform
[
0
])
return
tools_to_download
return
tools_to_download
def
identify_platform
():
def
identify_platform
():
arduino_platform_names
=
{
'Darwin'
:
{
32
:
'i386-apple-darwin'
,
64
:
'x86_64-apple-darwin'
},
arduino_platform_names
=
{
'Darwin'
:
{
32
:
'i386-apple-darwin'
,
64
:
'x86_64-apple-darwin'
},
'Linux'
:
{
32
:
'i686-pc-linux-gnu'
,
64
:
'x86_64-pc-linux-gnu'
},
'DarwinARM'
:
{
32
:
'arm64-apple-darwin'
,
64
:
'arm64-apple-darwin'
},
'LinuxARM'
:
{
32
:
'arm-linux-gnueabihf'
,
64
:
'aarch64-linux-gnu'
},
'Linux'
:
{
32
:
'i686-pc-linux-gnu'
,
64
:
'x86_64-pc-linux-gnu'
},
'Windows'
:
{
32
:
'i686-mingw32'
,
64
:
'i686-mingw32'
}}
'LinuxARM'
:
{
32
:
'arm-linux-gnueabihf'
,
64
:
'aarch64-linux-gnu'
},
'Windows'
:
{
32
:
'i686-mingw32'
,
64
:
'x86_64-mingw32'
}}
bits
=
32
bits
=
32
if
sys
.
maxsize
>
2
**
32
:
if
sys
.
maxsize
>
2
**
32
:
bits
=
64
bits
=
64
sys_name
=
platform
.
system
()
sys_name
=
platform
.
system
()
sys_platform
=
platform
.
platform
()
sys_platform
=
platform
.
platform
()
if
'Darwin'
in
sys_name
and
(
sys_platform
.
find
(
'arm'
)
>
0
or
sys_platform
.
find
(
'arm64'
)
>
0
):
sys_name
=
'DarwinARM'
if
'Linux'
in
sys_name
and
(
sys_platform
.
find
(
'arm'
)
>
0
or
sys_platform
.
find
(
'aarch64'
)
>
0
):
if
'Linux'
in
sys_name
and
(
sys_platform
.
find
(
'arm'
)
>
0
or
sys_platform
.
find
(
'aarch64'
)
>
0
):
sys_name
=
'LinuxARM'
sys_name
=
'LinuxARM'
if
'CYGWIN_NT'
in
sys_name
:
if
'CYGWIN_NT'
in
sys_name
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment