added env

This commit is contained in:
proddy
2019-06-18 14:12:09 +02:00
parent 47f2636a53
commit 6cfa03af7d

View File

@@ -1,8 +1,7 @@
#!/usr/bin/env python
from subprocess import call
import os
Import("env")
# see http://docs.platformio.org/en/latest/projectconf/advanced_scripting.html#before-pre-and-after-post-actions
# env.Replace(PROGNAME="firmware_%s" % defines.get("VERSION"))
env.Replace(PROGNAME="firmware_%s" % env['BOARD'])
# print env.Dump()
env.Replace(PROGNAME="firmware_%s" % env['BOARD'] + "_" + env['PIOENV'])