boards: shields: Allow adding source code to shields

Add shield CMakeLists.txt if it exists.
Useful for one-off shields that require C code

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
This commit is contained in:
Grant Ramsay 2024-07-02 20:53:07 +12:00 committed by Fabio Baltieri
commit 4a21035aa5
2 changed files with 20 additions and 0 deletions

View file

@ -17,3 +17,5 @@ if(EXISTS ${BOARD_DIR}/CMakeLists.txt)
add_subdirectory(${BOARD_DIR} ${build_dir})
endif()
add_subdirectory(shields)