mirror of
				https://github.com/esp8266/Arduino.git
				synced 2025-11-03 14:33:37 +03:00 
			
		
		
		
	Add ARM tools (#269)
This commit is contained in:
		@@ -126,6 +126,13 @@
 | 
				
			|||||||
              "archiveFileName": "esptool-0.4.8-linux32.tar.gz",
 | 
					              "archiveFileName": "esptool-0.4.8-linux32.tar.gz",
 | 
				
			||||||
              "checksum": "SHA-256:b0d6e71e6f41d4ed7e167bb4b3f4f0b1b3e49d69af50ab7fbe952cbfed83f164",
 | 
					              "checksum": "SHA-256:b0d6e71e6f41d4ed7e167bb4b3f4f0b1b3e49d69af50ab7fbe952cbfed83f164",
 | 
				
			||||||
              "size": "15444"
 | 
					              "size": "15444"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					              "host": "arm-linux-gnueabihf",
 | 
				
			||||||
 | 
					              "url": "https://github.com/igrr/esptool-ck/releases/download/0.4.8/esptool-0.4.8-linux-armhf.tar.gz",
 | 
				
			||||||
 | 
					              "archiveFileName": "esptool-0.4.8-linux-armhf.tar.gz",
 | 
				
			||||||
 | 
					              "checksum": "SHA-256:e9c4dfb81781610556a6af0377c8efc7cde359e0e2cda2fd48e0a32bae10f506",
 | 
				
			||||||
 | 
					              "size": "13630"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          ]
 | 
					          ]
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
@@ -167,6 +174,13 @@
 | 
				
			|||||||
              "archiveFileName": "linux32-xtensa-lx106-elf.tar.gz",
 | 
					              "archiveFileName": "linux32-xtensa-lx106-elf.tar.gz",
 | 
				
			||||||
              "checksum": "SHA-256:b24817819f0078fb05895a640e806e0aca9aa96b47b80d2390ac8e2d9ddc955a",
 | 
					              "checksum": "SHA-256:b24817819f0078fb05895a640e806e0aca9aa96b47b80d2390ac8e2d9ddc955a",
 | 
				
			||||||
              "size": "32734156"
 | 
					              "size": "32734156"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					              "host": "arm-linux-gnueabihf",
 | 
				
			||||||
 | 
					              "url": "http://arduino.esp8266.com/linuxarm-xtensa-lx106-elf-g46f160f.tar.gz",
 | 
				
			||||||
 | 
					              "archiveFileName": "linuxarm-xtensa-lx106-elf-g46f160f.tar.gz",
 | 
				
			||||||
 | 
					              "checksum": "SHA-256:1ac752bac7fff6be95ce10f56689f155fefea09e4ef710dbd75cb573798ff9c0",
 | 
				
			||||||
 | 
					              "size": "34929527"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          ]
 | 
					          ]
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
@@ -208,6 +222,13 @@
 | 
				
			|||||||
              "archiveFileName": "mkspiffs-0.1.2-linux32.tar.gz",
 | 
					              "archiveFileName": "mkspiffs-0.1.2-linux32.tar.gz",
 | 
				
			||||||
              "checksum": "SHA-256:e990d545dfcae308aabaac5fa9e1db734cc2b08167969e7eedac88bd0839667c",
 | 
					              "checksum": "SHA-256:e990d545dfcae308aabaac5fa9e1db734cc2b08167969e7eedac88bd0839667c",
 | 
				
			||||||
              "size": "45272"
 | 
					              "size": "45272"
 | 
				
			||||||
 | 
					            },
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					              "host": "arm-linux-gnueabihf",
 | 
				
			||||||
 | 
					              "url": "https://github.com/igrr/mkspiffs/releases/download/0.1.2/mkspiffs-0.1.2-linux-armhf.tar.gz",
 | 
				
			||||||
 | 
					              "archiveFileName": "mkspiffs-0.1.2-linux-armhf.tar.gz",
 | 
				
			||||||
 | 
					              "checksum": "SHA-256:5a8836932cd24325d69054cebdd46359eba02919ffaa87b130c54acfecc13f46",
 | 
				
			||||||
 | 
					              "size": "41685"
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
          ]
 | 
					          ]
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -92,11 +92,14 @@ def load_tools_list(filename, platform):
 | 
				
			|||||||
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'},
 | 
					                              'Linux'   : {32 : 'i686-pc-linux-gnu',   64 : 'x86_64-pc-linux-gnu'},
 | 
				
			||||||
 | 
					                              'LinuxARM': {32 : 'arm-linux-gnueabihf', 64 : 'aarch64-linux-gnu'},
 | 
				
			||||||
                              'Windows' : {32 : 'i686-mingw32',        64 : 'i686-mingw32'}}
 | 
					                              'Windows' : {32 : 'i686-mingw32',        64 : 'i686-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()
 | 
				
			||||||
 | 
					    if 'Linux' in sys_name and platform.platform().find('arm') > 0:
 | 
				
			||||||
 | 
					        sys_name = 'LinuxARM'
 | 
				
			||||||
    if 'CYGWIN_NT' in sys_name:
 | 
					    if 'CYGWIN_NT' in sys_name:
 | 
				
			||||||
        sys_name = 'Windows'
 | 
					        sys_name = 'Windows'
 | 
				
			||||||
    return arduino_platform_names[sys_name][bits]
 | 
					    return arduino_platform_names[sys_name][bits]
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user