Fix uploading of EEPROM data using "uploadeep" target for Atmel AVR development platform

This commit is contained in:
Ivan Kravets
2016-01-02 00:35:53 +02:00
parent e101b02ccb
commit b408f8f0bf
3 changed files with 12 additions and 10 deletions

View File

@ -7,6 +7,12 @@ PlatformIO 2.0
2.7.0 (2015-12-30)
~~~~~~~~~~~~~~~~~~
* Fixed uploading of EEPROM data using ``uploadeep`` target for Atmel AVR
development platform
2.7.0 (2015-12-30)
~~~~~~~~~~~~~~~~~~
**Happy New Year!**
* Moved SCons to PlatformIO packages. PlatformIO does not require SCons to be

View File

@ -14,7 +14,7 @@
import sys
VERSION = (2, 7, 0)
VERSION = (2, 7, "1.dev0")
__version__ = ".".join([str(s) for s in VERSION])
__title__ = "platformio"

View File

@ -110,13 +110,6 @@ else:
target_elf = env.BuildProgram()
#
# Target: Extract EEPROM data (from EEMEM directive) to .eep file
#
target_eep = env.Alias("eep", env.ElfToEep(join("$BUILD_DIR", "firmware"),
target_elf))
#
# Target: Build the .hex file
#
@ -142,10 +135,13 @@ upload = env.Alias(["upload", "uploadlazy"], target_firm,
AlwaysBuild(upload)
#
# Target: Upload .eep file
# Target: Upload EEPROM data (from EEMEM directive)
#
uploadeep = env.Alias("uploadeep", target_eep, [BeforeUpload, "$UPLOADEEPCMD"])
uploadeep = env.Alias(
"uploadeep",
env.ElfToEep(join("$BUILD_DIR", "firmware"), target_elf),
[BeforeUpload, "$UPLOADEEPCMD"])
AlwaysBuild(uploadeep)
#