Skip to content

Commit 3707341

Browse files
committed
Merge branch 'release/v1.0.0'
2 parents 3e0f182 + 79258be commit 3707341

File tree

4 files changed

+22
-31
lines changed

4 files changed

+22
-31
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ Espressif Systems is a privately held fabless semiconductor company. They provid
1616
> platformio platform install espressif
1717

1818
# install development version
19-
> platformio platform install https://github.com/platformio/platform-espressif/archive/develop.zip
19+
> platformio platform install https://github.com/platformio/platform-espressif.git
2020
```

builder/frameworks/arduino.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
CPPPATH=[
4242
join(FRAMEWORK_DIR, "tools", "sdk", "include"),
4343
join(FRAMEWORK_DIR, "tools", "sdk", "lwip", "include"),
44-
join("$BUILD_DIR", "FrameworkArduino")
44+
join(FRAMEWORK_DIR, "cores", env.BoardConfig().get("build.core"))
4545
],
4646
LIBPATH=[join(FRAMEWORK_DIR, "tools", "sdk", "lib")],
4747
LIBS=[
@@ -57,11 +57,6 @@
5757
]
5858
)
5959

60-
env.VariantDirWrap(
61-
join("$BUILD_DIR", "generic"),
62-
join(FRAMEWORK_DIR, "variants", "generic")
63-
)
64-
6560
#
6661
# Target: Build Core Library
6762
#
@@ -71,7 +66,8 @@
7166
if "build.variant" in env.BoardConfig():
7267
env.Append(
7368
CPPPATH=[
74-
join("$BUILD_DIR", "FrameworkArduinoVariant")
69+
join(FRAMEWORK_DIR, "variants",
70+
env.BoardConfig().get("build.variant"))
7571
]
7672
)
7773
libs.append(env.BuildLibrary(

builder/main.py

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import re
2222
from os.path import join
2323

24-
from SCons.Script import (COMMAND_LINE_TARGETS, AlwaysBuild, Builder, Default,
25-
DefaultEnvironment)
24+
from SCons.Script import (ARGUMENTS, COMMAND_LINE_TARGETS, AlwaysBuild,
25+
Builder, Default, DefaultEnvironment)
2626

2727

2828
def _get_flash_size(env):
@@ -151,7 +151,7 @@ def _get_board_f_flash(env):
151151
ASFLAGS=env.get("CCFLAGS", [])[:]
152152
)
153153

154-
if not env.GetOption("silent"):
154+
if int(ARGUMENTS.get("PIOVERBOSE", 0)):
155155
env.Prepend(UPLOADERFLAGS=["-vv"])
156156

157157

@@ -189,14 +189,14 @@ def _fetch_spiffs_size(target, source, env):
189189
env.Append(
190190
BUILDERS=dict(
191191
DataToBin=Builder(
192-
action=" ".join([
192+
action=env.VerboseAction(" ".join([
193193
'"$MKSPIFFSTOOL"',
194194
"-c", "$SOURCES",
195195
"-p", "${int(SPIFFS_PAGE, 16)}",
196196
"-b", "${int(SPIFFS_BLOCK, 16)}",
197197
"-s", "${int(SPIFFS_END, 16) - int(SPIFFS_START, 16)}",
198198
"$TARGET"
199-
]),
199+
]), "Building SPIFFS image from '$SOURCES' directory to $TARGET"),
200200
emitter=_fetch_spiffs_size,
201201
source_factory=env.Dir,
202202
suffix=".bin"
@@ -223,7 +223,7 @@ def _fetch_spiffs_size(target, source, env):
223223

224224
BUILDERS=dict(
225225
ElfToBin=Builder(
226-
action=" ".join([
226+
action=env.VerboseAction(" ".join([
227227
'"$OBJCOPY"',
228228
"-eo",
229229
'"%s"' % join("$FRAMEWORK_ARDUINOESP8266_DIR",
@@ -241,7 +241,7 @@ def _fetch_spiffs_size(target, source, env):
241241
"-bs", ".data",
242242
"-bs", ".rodata",
243243
"-bc", "-ec"
244-
]),
244+
]), "Building $TARGET"),
245245
suffix=".bin"
246246
)
247247
)
@@ -270,7 +270,7 @@ def _fetch_spiffs_size(target, source, env):
270270

271271
BUILDERS=dict(
272272
ElfToBin=Builder(
273-
action=" ".join([
273+
action=env.VerboseAction(" ".join([
274274
'"$OBJCOPY"',
275275
"-eo", "$SOURCES",
276276
"-bo", "${TARGETS[0]}",
@@ -284,7 +284,7 @@ def _fetch_spiffs_size(target, source, env):
284284
"-eo", "$SOURCES",
285285
"-es", ".irom0.text", "${TARGETS[1]}",
286286
"-ec", "-v"
287-
]),
287+
]), "Building $TARGET"),
288288
suffix=".bin"
289289
)
290290
)
@@ -345,7 +345,9 @@ def _fetch_spiffs_size(target, source, env):
345345
# Target: Print binary size
346346
#
347347

348-
target_size = env.Alias("size", target_elf, "$SIZEPRINTCMD")
348+
target_size = env.Alias(
349+
"size", target_elf,
350+
env.VerboseAction("$SIZEPRINTCMD", "Calculating size $SOURCE"))
349351
AlwaysBuild(target_size)
350352

351353
#
@@ -354,17 +356,13 @@ def _fetch_spiffs_size(target, source, env):
354356

355357
target_upload = env.Alias(
356358
["upload", "uploadlazy", "uploadfs"], target_firm,
357-
[env.AutodetectUploadPort, "$UPLOADCMD"])
359+
[env.VerboseAction(env.AutodetectUploadPort, "Looking for upload port..."),
360+
env.VerboseAction("$UPLOADCMD", "Uploading $SOURCE")])
358361
env.AlwaysBuild(target_upload)
359362

360-
#
361-
# Target: Unit Testing
362-
#
363-
364-
AlwaysBuild(env.Alias("test", [target_firm, target_size]))
365363

366364
#
367-
# Target: Define targets
365+
# Default targets
368366
#
369367

370368
Default([target_firm, target_size])

platform.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@
44
"description": "Espressif Systems is a privately held fabless semiconductor company. They provide wireless communications and Wi-Fi chips which are widely used in mobile devices and the Internet of Things applications.",
55
"url": "https://espressif.com/",
66
"homepage": "http://platformio.org/platforms/espressif",
7-
"license": {
8-
"type": "Apache-2.0",
9-
"url": "http://opensource.org/licenses/apache2.0.php"
10-
},
7+
"license": "Apache-2.0",
118
"engines": {
12-
"platformio": "~3.0.0",
9+
"platformio": "^3.0.0",
1310
"scons": ">=2.3.0,<2.6.0"
1411
},
1512
"repository": {
1613
"type": "git",
1714
"url": "https://github.com/platformio/platform-espressif.git"
1815
},
19-
"version": "0.1.2",
16+
"version": "1.0.0",
2017
"packageRepositories": [
2118
"https://dl.bintray.com/platformio/dl-packages/manifest.json",
2219
"https://sourceforge.net/projects/platformio-storage/files/packages/manifest.json/download",

0 commit comments

Comments
 (0)