Files
ruv b5e924cd72 fix: embed firmware version from version.txt, log at boot (#354)
- Add version.txt (0.6.0) read by CMakeLists.txt so
  esp_app_get_description()->version matches the release tag
- Log firmware version on boot: "v0.6.0 — Node ID: X"
- Remove stale Kconfig help text (said default 2.0, actual is 15.0)

Fixes the version mismatch reported in #354 where flashing v0.5.3
binaries showed v0.4.3 because PROJECT_VER was never set.

Co-Authored-By: claude-flow <ruv@ruv.net>
2026-04-06 11:26:58 -04:00

14 lines
509 B
CMake

# ESP32 CSI Node Firmware (ADR-018)
# Requires ESP-IDF v5.2+
cmake_minimum_required(VERSION 3.16)
set(EXTRA_COMPONENT_DIRS "")
# Read firmware version from version.txt so esp_app_get_description()->version
# matches the release tag. Fixes issue #354 (version mismatch after flashing).
file(STRINGS "${CMAKE_CURRENT_LIST_DIR}/version.txt" PROJECT_VER LIMIT_COUNT 1)
string(STRIP "${PROJECT_VER}" PROJECT_VER)
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
project(esp32-csi-node VERSION ${PROJECT_VER})