pi_pico/bootloader/cmake/cmake_config/sources_config.cmake
Mohamed Salem 4f1199a3e6 Scaffold bootloader project with TODO checklist
New project under bootloader/ with the same structure as
color_switcher: Dockerfile, docker-compose, modular CMake, and
APP_BOOT + SYS_ECU stub components. Reuses common/ submodules for
MCU_UART, MCU_USB, HAL_COM, STD_TYPES.

TODO.md lists all open design decisions (interface, protocol, flash
layout, entry trigger, integrity checks, flash strategy) and the
implementation tasks that depend on them.
2026-04-18 23:37:33 +02:00

37 lines
1.1 KiB
CMake

# ============================================================================
# sources_config.cmake — Source files and include paths for the bootloader
# ============================================================================
set(COMMON_DIR "${PROJECT_ROOT_DIR}/../common")
# Collect .c files from project src/ and common submodules
file(GLOB_RECURSE PROJECT_SOURCES CONFIGURE_DEPENDS
"${PROJECT_ROOT_DIR}/src/*.c"
"${COMMON_DIR}/STD_TYPES/*.c"
"${COMMON_DIR}/MCU_UART/*.c"
"${COMMON_DIR}/MCU_USB/*.c"
"${COMMON_DIR}/HAL_COM/*.c")
set(PROJECT_INCLUDE_DIRS
# Common components (git submodules)
${COMMON_DIR}/STD_TYPES/inc
${COMMON_DIR}/MCU_UART/inc
${COMMON_DIR}/MCU_UART/prg
${COMMON_DIR}/MCU_UART/cfg
${COMMON_DIR}/MCU_USB/inc
${COMMON_DIR}/MCU_USB/prg
${COMMON_DIR}/MCU_USB/cfg
${COMMON_DIR}/HAL_COM/inc
${COMMON_DIR}/HAL_COM/prg
${COMMON_DIR}/HAL_COM/cfg
# Project-specific components
${PROJECT_ROOT_DIR}/src/APP_BOOT/inc
${PROJECT_ROOT_DIR}/src/APP_BOOT/prg
${PROJECT_ROOT_DIR}/src/APP_BOOT/cfg
${PROJECT_ROOT_DIR}/src/SYS_ECU/prg
)