mirror of
https://github.com/platformio/platformio-core.git
synced 2025-08-01 10:54:27 +02:00
Handle upload_flags option in platformio.ini // Resolve #368
This commit is contained in:
@@ -4,6 +4,12 @@ Release History
|
|||||||
PlatformIO 2.0
|
PlatformIO 2.0
|
||||||
--------------
|
--------------
|
||||||
|
|
||||||
|
2.5.1 (2015-12-??)
|
||||||
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
* Handle ``upload_flags`` option in `platformio.ini <http://docs.platformio.org/en/latest/projectconf.html>`_
|
||||||
|
(`issue #368 <https://github.com/platformio/platformio/issues/368>`_)
|
||||||
|
|
||||||
2.5.0 (2015-12-08)
|
2.5.0 (2015-12-08)
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
VERSION = (2, 5, 0)
|
VERSION = (2, 5, "1.dev0")
|
||||||
__version__ = ".".join([str(s) for s in VERSION])
|
__version__ = ".".join([str(s) for s in VERSION])
|
||||||
|
|
||||||
__title__ = "platformio"
|
__title__ = "platformio"
|
||||||
|
@@ -76,7 +76,8 @@ commonvars.AddVariables(
|
|||||||
# upload options
|
# upload options
|
||||||
("UPLOAD_PORT",),
|
("UPLOAD_PORT",),
|
||||||
("UPLOAD_PROTOCOL",),
|
("UPLOAD_PROTOCOL",),
|
||||||
("UPLOAD_SPEED",)
|
("UPLOAD_SPEED",),
|
||||||
|
("UPLOAD_FLAGS",)
|
||||||
)
|
)
|
||||||
|
|
||||||
DefaultEnvironment(
|
DefaultEnvironment(
|
||||||
@@ -161,6 +162,9 @@ env.SConscriptChdir(0)
|
|||||||
env.SConsignFile(join("$PIOENVS_DIR", ".sconsign.dblite"))
|
env.SConsignFile(join("$PIOENVS_DIR", ".sconsign.dblite"))
|
||||||
env.SConscript("$BUILD_SCRIPT")
|
env.SConscript("$BUILD_SCRIPT")
|
||||||
|
|
||||||
|
if "UPLOAD_FLAGS" in env:
|
||||||
|
env.Append(UPLOADERFLAGS=["$UPLOAD_FLAGS"])
|
||||||
|
|
||||||
if environ.get("PLATFORMIO_EXTRA_SCRIPT", env.get("EXTRA_SCRIPT")):
|
if environ.get("PLATFORMIO_EXTRA_SCRIPT", env.get("EXTRA_SCRIPT")):
|
||||||
env.SConscript(
|
env.SConscript(
|
||||||
environ.get("PLATFORMIO_EXTRA_SCRIPT", env.get("EXTRA_SCRIPT")))
|
environ.get("PLATFORMIO_EXTRA_SCRIPT", env.get("EXTRA_SCRIPT")))
|
||||||
|
Reference in New Issue
Block a user