forked from platformio/platformio-core
Don't run mkspiffs target by default
This commit is contained in:
@ -14,7 +14,7 @@
|
||||
|
||||
import sys
|
||||
|
||||
VERSION = (2, 7, "0.dev2")
|
||||
VERSION = (2, 7, "0.dev3")
|
||||
__version__ = ".".join([str(s) for s in VERSION])
|
||||
|
||||
__title__ = "platformio"
|
||||
|
@ -318,8 +318,10 @@ env.AlwaysBuild(target_upload)
|
||||
# Target: Upload SPIFFS image
|
||||
#
|
||||
|
||||
target_mkspiffs = env.DataToBin(join("$BUILD_DIR", "spiffs_image"),
|
||||
"$PROJECTDATA_DIR")
|
||||
target_mkspiffs = None
|
||||
if "uploadfs" in COMMAND_LINE_TARGETS:
|
||||
target_mkspiffs = env.DataToBin(join("$BUILD_DIR", "spiffs_image"),
|
||||
"$PROJECTDATA_DIR")
|
||||
target_uploadfs = env.Alias(
|
||||
"uploadfs", target_mkspiffs,
|
||||
[lambda target, source, env: env.AutodetectUploadPort(), "$UPLOADFSCMD"])
|
||||
|
Reference in New Issue
Block a user