chore(build): reduce root firmware to no-op stub and freeze layout

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]>
This commit is contained in:
2026-08-31 08:01:06 +08:00
co-authored by Sisyphus
parent a6d6168fd5
commit e71bcce56e
29 changed files with 167 additions and 166 deletions
+8 -12
View File
@@ -6,31 +6,27 @@
"patch": 0
},
"configurePresets": [
{
"name": "idf-base",
"hidden": true,
"generator": "Ninja",
"binaryDir": "${sourceDir}/.build/${presetName}",
"cacheVariables": {
"IDF_TARGET": "esp32s3",
"SDKCONFIG": "${sourceDir}/.build/${presetName}/sdkconfig"
}
},
{
"name": "dev",
"inherits": "idf-base",
"displayName": "Default (development)",
"description": "Development configuration",
"generator": "Ninja",
"binaryDir": "${sourceDir}/.build/dev",
"cacheVariables": {
"IDF_TARGET": "esp32s3",
"SDKCONFIG": "${sourceDir}/.build/dev/sdkconfig",
"SDKCONFIG_DEFAULTS": "${sourceDir}/sdkconfig.defaults;${sourceDir}/sdkconfig.defaults.dev"
}
},
{
"name": "prod",
"inherits": "idf-base",
"displayName": "Production",
"description": "Production configuration",
"generator": "Ninja",
"binaryDir": "${sourceDir}/.build/prod",
"cacheVariables": {
"IDF_TARGET": "esp32s3",
"SDKCONFIG": "${sourceDir}/.build/prod/sdkconfig",
"SDKCONFIG_DEFAULTS": "${sourceDir}/sdkconfig.defaults;${sourceDir}/sdkconfig.defaults.prod"
}
}