Skip to content

Commit 797c78d

Browse files
committed
Add ARM tools (#269)
1 parent d7ce823 commit 797c78d

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

package/package_esp8266com_index.template.json

+21
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,13 @@
126126
"archiveFileName": "esptool-0.4.8-linux32.tar.gz",
127127
"checksum": "SHA-256:b0d6e71e6f41d4ed7e167bb4b3f4f0b1b3e49d69af50ab7fbe952cbfed83f164",
128128
"size": "15444"
129+
},
130+
{
131+
"host": "arm-linux-gnueabihf",
132+
"url": "https://github.com/igrr/esptool-ck/releases/download/0.4.8/esptool-0.4.8-linux-armhf.tar.gz",
133+
"archiveFileName": "esptool-0.4.8-linux-armhf.tar.gz",
134+
"checksum": "SHA-256:e9c4dfb81781610556a6af0377c8efc7cde359e0e2cda2fd48e0a32bae10f506",
135+
"size": "13630"
129136
}
130137
]
131138
},
@@ -167,6 +174,13 @@
167174
"archiveFileName": "linux32-xtensa-lx106-elf.tar.gz",
168175
"checksum": "SHA-256:b24817819f0078fb05895a640e806e0aca9aa96b47b80d2390ac8e2d9ddc955a",
169176
"size": "32734156"
177+
},
178+
{
179+
"host": "arm-linux-gnueabihf",
180+
"url": "http://arduino.esp8266.com/linuxarm-xtensa-lx106-elf-g46f160f.tar.gz",
181+
"archiveFileName": "linuxarm-xtensa-lx106-elf-g46f160f.tar.gz",
182+
"checksum": "SHA-256:1ac752bac7fff6be95ce10f56689f155fefea09e4ef710dbd75cb573798ff9c0",
183+
"size": "34929527"
170184
}
171185
]
172186
},
@@ -208,6 +222,13 @@
208222
"archiveFileName": "mkspiffs-0.1.2-linux32.tar.gz",
209223
"checksum": "SHA-256:e990d545dfcae308aabaac5fa9e1db734cc2b08167969e7eedac88bd0839667c",
210224
"size": "45272"
225+
},
226+
{
227+
"host": "arm-linux-gnueabihf",
228+
"url": "https://github.com/igrr/mkspiffs/releases/download/0.1.2/mkspiffs-0.1.2-linux-armhf.tar.gz",
229+
"archiveFileName": "mkspiffs-0.1.2-linux-armhf.tar.gz",
230+
"checksum": "SHA-256:5a8836932cd24325d69054cebdd46359eba02919ffaa87b130c54acfecc13f46",
231+
"size": "41685"
211232
}
212233
]
213234
}

tools/get.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,16 @@ def load_tools_list(filename, platform):
9090
return tools_to_download
9191

9292
def identify_platform():
93-
arduino_platform_names = {'Darwin' : {32 : 'i386-apple-darwin', 64 : 'x86_64-apple-darwin'},
94-
'Linux' : {32 : 'i686-pc-linux-gnu', 64 : 'x86_64-pc-linux-gnu'},
95-
'Windows' : {32 : 'i686-mingw32', 64 : 'i686-mingw32'}}
93+
arduino_platform_names = {'Darwin' : {32 : 'i386-apple-darwin', 64 : 'x86_64-apple-darwin'},
94+
'Linux' : {32 : 'i686-pc-linux-gnu', 64 : 'x86_64-pc-linux-gnu'},
95+
'LinuxARM': {32 : 'arm-linux-gnueabihf', 64 : 'aarch64-linux-gnu'},
96+
'Windows' : {32 : 'i686-mingw32', 64 : 'i686-mingw32'}}
9697
bits = 32
9798
if sys.maxsize > 2**32:
9899
bits = 64
99100
sys_name = platform.system()
101+
if 'Linux' in sys_name and platform.platform().find('arm') > 0:
102+
sys_name = 'LinuxARM'
100103
if 'CYGWIN_NT' in sys_name:
101104
sys_name = 'Windows'
102105
return arduino_platform_names[sys_name][bits]

0 commit comments

Comments
 (0)