kopia lustrzana https://github.com/meshtastic/firmware
fix CI build - make projectdir relative
rodzic
1f7b537d2d
commit
45d72bd51b
|
@ -1,16 +1,14 @@
|
|||
|
||||
Import("projenv")
|
||||
|
||||
import configparser
|
||||
|
||||
config = configparser.RawConfigParser()
|
||||
config.read('version.properties')
|
||||
|
||||
config.read(projenv["PROJECT_DIR"] + "/version.properties")
|
||||
version = dict(config.items('VERSION'))
|
||||
|
||||
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
||||
|
||||
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
||||
|
||||
Import("env", "projenv")
|
||||
|
||||
# General options that are passed to the C and C++ compilers
|
||||
projenv.Append(CCFLAGS=[
|
||||
f"-DAPP_VERSION={verStr}"
|
||||
|
|
Ładowanie…
Reference in New Issue