mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-13 16:55:08 +00:00
fix CI build - make projectdir relative
This commit is contained in:
parent
1f7b537d2d
commit
45d72bd51b
@ -1,16 +1,14 @@
|
|||||||
|
|
||||||
|
Import("projenv")
|
||||||
|
|
||||||
import configparser
|
import configparser
|
||||||
|
|
||||||
config = configparser.RawConfigParser()
|
config = configparser.RawConfigParser()
|
||||||
config.read('version.properties')
|
config.read(projenv["PROJECT_DIR"] + "/version.properties")
|
||||||
|
|
||||||
version = dict(config.items('VERSION'))
|
version = dict(config.items('VERSION'))
|
||||||
|
|
||||||
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
verStr = "{}.{}.{}".format(version["major"], version["minor"], version["build"])
|
||||||
|
|
||||||
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
print(f"Using meshtastic platform-custom.py, firmare version {verStr}")
|
||||||
|
|
||||||
Import("env", "projenv")
|
|
||||||
|
|
||||||
# General options that are passed to the C and C++ compilers
|
# General options that are passed to the C and C++ compilers
|
||||||
projenv.Append(CCFLAGS=[
|
projenv.Append(CCFLAGS=[
|
||||||
f"-DAPP_VERSION={verStr}"
|
f"-DAPP_VERSION={verStr}"
|
||||||
|
Loading…
Reference in New Issue
Block a user