File tree Expand file tree Collapse file tree 3 files changed +35
-10
lines changed Expand file tree Collapse file tree 3 files changed +35
-10
lines changed Original file line number Diff line number Diff line change @@ -27,19 +27,29 @@ Boards manager link: `http://arduino.esp8266.com/staging/package_esp8266com_inde
27
27
Documentation: [ Reference] ( http://arduino.esp8266.com/staging/doc/reference.html )
28
28
29
29
30
- ### Building latest version from source [ ![ Linux build status] ( https://travis-ci.org/esp8266/Arduino.svg )] ( https://travis-ci.org/esp8266/Arduino )
31
-
30
+ ### Using git version [ ![ Linux build status] ( https://travis-ci.org/esp8266/Arduino.svg )] ( https://travis-ci.org/esp8266/Arduino )
31
+
32
+ - Install Arduino 1.6.5
33
+ - Go to Arduino directory
34
+ - Clone this repository into hardware/esp8266com/esp8266 directory (or clone it elsewhere and create a symlink)
35
+ ``` bash
36
+ cd hardware
37
+ mkdir esp8266com
38
+ cd esp8266com
39
+ git clone https://github.com/esp8266/Arduino.git esp8266
32
40
```
33
- $ git clone https://github.com/esp8266/Arduino.git
34
- $ cd Arduino/build
35
- $ ant dist
41
+ - Download binary tools (you need Python 2.7)
42
+ ``` bash
43
+ cd esp8266/tools
44
+ python get.py
36
45
```
46
+ - Restart Arduino
37
47
38
48
Documentation for latest development version:
39
49
40
- - [ Reference] ( hardware/esp8266com/esp8266/ doc/reference.md)
41
- - [ Supported boards] ( hardware/esp8266com/esp8266/ doc/boards.md)
42
- - [ Change log] ( hardware/esp8266com/esp8266/ doc/changes.md)
50
+ - [ Reference] ( doc/reference.md )
51
+ - [ Supported boards] ( doc/boards.md )
52
+ - [ Change log] ( doc/changes.md )
43
53
44
54
### Issues and support ###
45
55
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ name=ESP8266 Modules
9
9
version=1.6.4
10
10
11
11
runtime.tools.xtensa-lx106-elf-gcc.path={runtime.platform.path}/tools/xtensa-lx106-elf
12
- runtime.tools.esptool.path={runtime.platform.path}/tools
12
+ runtime.tools.esptool.path={runtime.platform.path}/tools/esptool
13
13
14
14
compiler.path={runtime.tools.xtensa-lx106-elf-gcc.path}/bin/
15
15
compiler.sdk.path={runtime.platform.path}/tools/sdk
@@ -91,7 +91,13 @@ recipe.size.regex.data=^(?:\.data|\.rodata|\.bss)\s+([0-9]+).*
91
91
92
92
tools.esptool.cmd=esptool
93
93
tools.esptool.cmd.windows=esptool.exe
94
- tools.esptool.path={runtime.platform.path}/tools
94
+ tools.esptool.path={runtime.platform.path}/tools/esptool
95
+ #runtime.tools.esptool.path
96
+
97
+ tools.mkspiffs.cmd=mkspiffs
98
+ tools.mkspiffs.cmd.windows=mkspiffs.exe
99
+ tools.mkspiffs.path={runtime.platform.path}/tools/mkspiffs
100
+ #runtime.tools.mkspiffs.path
95
101
96
102
tools.esptool.upload.protocol=esp
97
103
tools.esptool.upload.params.verbose=-vv
Original file line number Diff line number Diff line change 6
6
from __future__ import print_function
7
7
import urllib
8
8
import os
9
+ import errno
9
10
import os .path
10
11
import hashlib
11
12
import json
@@ -24,6 +25,13 @@ def sha256sum(filename, blocksize=65536):
24
25
hash .update (block )
25
26
return hash .hexdigest ()
26
27
28
+ def mkdir_p (path ):
29
+ try :
30
+ os .makedirs (path )
31
+ except OSError as exc :
32
+ if exc .errno != errno .EEXIST or not os .path .isdir (path ):
33
+ raise
34
+
27
35
def report_progress (count , blockSize , totalSize ):
28
36
percent = int (count * blockSize * 100 / totalSize )
29
37
percent = min (100 , percent )
@@ -90,5 +98,6 @@ def identify_platform():
90
98
if __name__ == '__main__' :
91
99
print ('Platform: {0}' .format (identify_platform ()))
92
100
tools_to_download = load_tools_list ('tools.json' , identify_platform ())
101
+ mkdir_p (dist_dir )
93
102
for tool in tools_to_download :
94
103
get_tool (tool )
You can’t perform that action at this time.
0 commit comments