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
+5 -9
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)
#