Files
firmware/bin/platformio-custom.py

20 lines
439 B
Python
Raw Normal View History

2021-04-16 10:35:10 +08:00
import subprocess
import configparser
2021-04-16 10:35:10 +08:00
import traceback
import sys
2021-04-16 10:59:46 +08:00
from readprops import readProps
2021-04-16 10:35:10 +08:00
Import("projenv")
2020-12-10 13:17:43 +08:00
prefsLoc = projenv["PROJECT_DIR"] + "/version.properties"
2021-04-16 10:59:46 +08:00
verStr = readProps(prefsLoc)
print("Using meshtastic platform-custom.py, firmare version " + verStr)
2021-04-16 10:59:46 +08:00
# print("path is" + ','.join(sys.path))
# General options that are passed to the C and C++ compilers
projenv.Append(CCFLAGS=[
2020-12-27 12:53:23 +08:00
"-DAPP_VERSION=" + verStr
2021-04-16 10:35:10 +08:00
])