- set customname to use PIOENV insted of BOARD
This commit is contained in:
ZanzyTHEbar 2022-12-14 21:10:08 +00:00
parent 3123469953
commit 79bbcdc3e8
2 changed files with 5 additions and 2 deletions

View File

@ -2,6 +2,9 @@
Import("env")
# Dump global construction environment (for debug purpose)
#print(env.Dump())
my_flags = env.ParseFlags(env['BUILD_FLAGS'])
defines = dict()
for x in my_flags.get("CPPDEFINES"):
@ -19,5 +22,5 @@ for x in my_flags.get("CPPDEFINES"):
s = lambda x: x.replace('"', "")
env.Replace(
PROGNAME="%s-%s-%s-%s-%s" %
(s(defines.get("PIO_SRC_NAM")), s(defines.get("VERSION")), str(env["BOARD"]),
(s(defines.get("PIO_SRC_NAM")), s(defines.get("VERSION")), str(env["PIOENV"]),
s(defines.get("PIO_SRC_REV")), s(defines.get("PIO_SRC_BRH"))))

View File

@ -1 +1 @@
578
590