build: clean up the mess of ifdefs from platform into a scons-configured hal
This commit is contained in:
9
build-hal.py
Normal file
9
build-hal.py
Normal file
@@ -0,0 +1,9 @@
|
||||
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>"])
|
||||
print(f"- platform/{framework}{board}")
|
Reference in New Issue
Block a user