Skip to content

Commit 9e6c33e

Browse files
committed
arm64-apple-darwin get.py
1 parent d8ff31d commit 9e6c33e

File tree

2 files changed

+38
-10
lines changed

2 files changed

+38
-10
lines changed

package/package_esp8266com_index.template.json

+28
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,13 @@
209209
"checksum": "SHA-256:01a5bf1fa264c6f04cfaadf4c6e9f6caaacb6833ef40104dfbe953fcdb9bca1c",
210210
"size": "25494144"
211211
},
212+
{
213+
"host": "arm64-apple-darwin",
214+
"url": "https://github.com/earlephilhower/pico-quick-toolchain/releases/download/2.2.0/python3.18-portable-darwin_arm64.tar.gz",
215+
"archiveFileName": "python3.18-portable-darwin_arm64.tar.gz",
216+
"checksum": "SHA-256:ac6ee694191ac4db770e147429a7606b50063110db9ccbaf46e0e5ff8f7dcd20",
217+
"size": "90294119"
218+
},
212219
{
213220
"host": "x86_64-pc-linux-gnu",
214221
"url": "https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.2.0-gcc10.3/python3-via-env.tar.gz",
@@ -257,6 +264,13 @@
257264
"checksum": "SHA-256:59c9890ac51cfdd687e072e310f86e3aa2da549a02fa4d1dcda7f9bc2dffb0fe",
258265
"size": "77742495"
259266
},
267+
{
268+
"host": "x86_64-apple-darwin",
269+
"url": "https://github.com/mcspr/esp-quick-toolchain/releases/download/4.0.0-test1/aarch64-apple-darwin20.4.xtensa-lx106-elf-e4b552e.250513.tar.gz",
270+
"archiveFileName": "aarch64-apple-darwin20.4.xtensa-lx106-elf-e4b552e.250513.tar.gz",
271+
"checksum": "SHA-256:e3cfd40ad89572b9bb576e04af9fa084357f2ee921a0f57d0fa9f936ca511998",
272+
"size": "70464186"
273+
},
260274
{
261275
"host": "x86_64-pc-linux-gnu",
262276
"url": "https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.2.0-gcc10.3/x86_64-linux-gnu.xtensa-lx106-elf-c791b74.230224.tar.gz",
@@ -312,6 +326,13 @@
312326
"checksum": "SHA-256:3d5dc573f46b726dc38d3971dfe70500e818b78230f7d531d4370b779fef3710",
313327
"size": "380164"
314328
},
329+
{
330+
"host": "arm64-apple-darwin",
331+
"url": "https://github.com/mcspr/esp-quick-toolchain/releases/download/4.0.0-test1/aarch64-apple-darwin20.4.mkspiffs-7fefeac.250513.tar.gz",
332+
"archiveFileName": "aarch64-apple-darwin20.4.mkspiffs-7fefeac.250513.tar.gz",
333+
"checksum": "SHA-256:3c610a71b40a2ee126c77186ff410655427d184bc826df189883356909db54d2",
334+
"size": "71395"
335+
},
315336
{
316337
"host": "x86_64-pc-linux-gnu",
317338
"url": "https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.2.0-gcc10.3/x86_64-linux-gnu.mkspiffs-7fefeac.230224.tar.gz",
@@ -367,6 +388,13 @@
367388
"checksum": "SHA-256:13048f6ae246b00ea1902156542a832c767ba43d839fc62b2f6668e8821bd899",
368389
"size": "378772"
369390
},
391+
{
392+
"host": "arm64-apple-darwin",
393+
"url": "https://github.com/mcspr/esp-quick-toolchain/releases/download/4.0.0-test1/aarch64-apple-darwin20.4.mklittlefs-dee63fd.250513.tar.gz",
394+
"archiveFileName": "aarch64-apple-darwin20.4.mklittlefs-dee63fd.250513.tar.gz",
395+
"checksum": "SHA-256:51374d6c077b5d5e2e283eb5b54544a0050c53d6b23112f57b2cfc6caf9f9792",
396+
"size": "70357"
397+
},
370398
{
371399
"host": "x86_64-pc-linux-gnu",
372400
"url": "https://github.com/earlephilhower/esp-quick-toolchain/releases/download/3.2.0-gcc10.3/x86_64-linux-gnu.mklittlefs-4aca452.230224.tar.gz",

tools/get.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -99,21 +99,21 @@ def load_tools_list(filename, platform):
9999
return tools_to_download
100100

101101
def identify_platform():
102-
arduino_platform_names = {'Darwin' : {32 : 'i386-apple-darwin', 64 : 'x86_64-apple-darwin'},
103-
'Linux' : {32 : 'i686-pc-linux-gnu', 64 : 'x86_64-pc-linux-gnu'},
104-
'LinuxARM': {32 : 'arm-linux-gnueabihf', 64 : 'aarch64-linux-gnu'},
105-
'Windows' : {32 : 'i686-mingw32', 64 : 'x86_64-mingw32'}}
102+
arduino_platform_names = {'Darwin' : {32 : 'i386-apple-darwin', 64 : 'x86_64-apple-darwin'},
103+
'DarwinARM': {32 : 'arm64-apple-darwin', 64 : 'arm64-apple-darwin'},
104+
'Linux' : {32 : 'i686-pc-linux-gnu', 64 : 'x86_64-pc-linux-gnu'},
105+
'LinuxARM' : {32 : 'arm-linux-gnueabihf', 64 : 'aarch64-linux-gnu'},
106+
'Windows' : {32 : 'i686-mingw32', 64 : 'x86_64-mingw32'}}
106107
bits = 32
107108
if sys.maxsize > 2**32:
108109
bits = 64
109110
sys_name = platform.system()
110-
if 'Linux' in sys_name and (platform.platform().find('arm') > 0 or platform.platform().find('aarch64') > 0):
111+
sys_platform = platform.platform()
112+
if 'Darwin' in sys_name and (sys_platform.find('arm') > 0 or sys_platform.find('arm64') > 0):
113+
sys_name = 'DarwinARM'
114+
if 'Linux' in sys_name and (sys_platform.find('arm') > 0 or sys_platform.find('aarch64') > 0):
111115
sys_name = 'LinuxARM'
112-
if 'CYGWIN_NT' in sys_name:
113-
sys_name = 'Windows'
114-
if 'MSYS_NT' in sys_name:
115-
sys_name = 'Windows'
116-
if 'MINGW' in sys_name:
116+
if ('CYGWIN_NT' in sys_name) or ('MSYS_NT' in sys_name) or ('MINGW' in sys_name):
117117
sys_name = 'Windows'
118118
return arduino_platform_names[sys_name][bits]
119119

0 commit comments

Comments
 (0)