11 lines
378 B
Python
11 lines
378 B
Python
Import("env")
|
|
board = env.get("BOARD_MCU")
|
|
frameworks = env.get("PIOFRAMEWORK")
|
|
|
|
print(f"HAL configuration:")
|
|
for framework in frameworks:
|
|
env.Append(SRC_FILTER=[f"+<platform/{framework}/{board}/>"])
|
|
env.Append(SRC_FILTER=[f"+<platform/{framework}/*.cpp>"])
|
|
env.Append(CPPDEFINES=[f"RENDERBUG_HAL=HAL_{board.upper()}"])
|
|
print(f"- platform/{framework}/{board}/")
|