Files
firmware/bin/platformio-custom.py

21 lines
508 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-05-03 09:50:06 +08:00
verObj = readProps(prefsLoc)
2022-07-29 17:58:42 -05:00
print("Using meshtastic platformio-custom.py, firmware version " + verObj['long'])
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=[
2021-05-03 09:50:06 +08:00
"-DAPP_VERSION=" + verObj['long'],
"-DAPP_VERSION_SHORT=" + verObj['short']
2021-04-16 10:35:10 +08:00
])