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.
37 lines
1.1 KiB
CMake
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
|
|
) |