Retire the product-firmware skeleton until the v4.2 architecture is signed off (README marks the repo draft/PoC): - main/ reduced to a no-op stub (main.cc + CMakeLists registering only main.cc; idf_component.yml with the cjson managed dependency), root app builds clean under both dev and prod presets (IDF v6.0.2) - delete the 13 product components/ files (app_framework, and the display/network/ota/startup_ui/storage service stubs) - freeze root build/layout: CMakeLists.txt, CMakePresets.json, partitions.csv (16 MiB custom layout), sdkconfig.defaults, dependencies.lock, cmake/ helpers - add tooling config: .clang-format, .clang-tidy, .clangd, .devcontainer/, .vscode/ Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <[email protected]>
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.25)
|
|
|
|
set(FRAME_REQUIRED_IDF_TAG "v6.0.2" CACHE STRING
|
|
"Exact ESP-IDF release tag required by the architecture")
|
|
set(FRAME_REQUIRED_IDF_COMMIT "7101770dc6db2667b3c477cc31365dd1acd6db4e" CACHE STRING
|
|
"Exact ESP-IDF commit required by the architecture")
|
|
set(FRAME_REQUIRED_COMPILER_VERSION "15.2.0" CACHE STRING
|
|
"Exact Xtensa GCC version required by the architecture")
|
|
|
|
include("${CMAKE_CURRENT_LIST_DIR}/cmake/FramePlatform.cmake")
|
|
frame_require_esp_idf("${FRAME_REQUIRED_IDF_TAG}")
|
|
|
|
if(NOT DEFINED SDKCONFIG)
|
|
set(SDKCONFIG "${CMAKE_BINARY_DIR}/sdkconfig")
|
|
endif()
|
|
|
|
if(NOT DEFINED SDKCONFIG_DEFAULTS)
|
|
set(SDKCONFIG_DEFAULTS
|
|
"${CMAKE_SOURCE_DIR}/sdkconfig.defaults;${CMAKE_SOURCE_DIR}/sdkconfig.defaults.dev")
|
|
endif()
|
|
|
|
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
|
project(esp_study)
|
|
|
|
frame_verify_platform("${FRAME_REQUIRED_IDF_COMMIT}" "${FRAME_REQUIRED_COMPILER_VERSION}")
|
|
|
|
# ESP-IDF v6.0.2 deliberately defaults components to GNU C++26. Frame code is
|
|
# compiled as strict C++26 by appending the stricter dialect after IDF options.
|
|
idf_build_set_property(CXX_COMPILE_OPTIONS "-std=c++26" APPEND)
|
|
|
|
if(CMAKE_CXX_STANDARD LESS 26)
|
|
message(FATAL_ERROR "The selected toolchain does not provide C++26 mode.")
|
|
endif()
|