mirror of
https://github.com/xoseperez/espurna.git
synced 2026-02-20 09:41:35 +01:00
* PIO: remove -ota envs, handle OTA condition in extra script * Tweak ESPURNA_BOARD variable * Support git and latest in ota script * Handle ESPURNA_FLAGS too * Try to handle env and projenv in pylint * Add deprecation comment about -ota envs * regen arduino.h
11 lines
459 B
Python
11 lines
459 B
Python
def app_inject_flags(projenv):
|
|
# in theory, could be something different from a single cppdefine, keeping separate from flags below
|
|
board = projenv.get("ESPURNA_BOARD", "")
|
|
if board:
|
|
projenv.Append(CPPDEFINES=[board])
|
|
|
|
# only CPPDEFINES make sense here, since we should not change any others
|
|
flags = projenv.get("ESPURNA_FLAGS", "")
|
|
if flags:
|
|
projenv.MergeFlags({"CPPDEFINES": projenv.ParseFlags(flags)["CPPDEFINES"]})
|