feat(assets): embed LCD and audio resources in OTA app

This commit is contained in:
chenjintao
2026-10-08 16:58:33 +08:00
parent 3160a33f50
commit 7bc9a3dc76
43 changed files with 443 additions and 243 deletions
+13
View File
@@ -20,3 +20,16 @@ add_custom_target(versioned_firmware ALL
COMMENT "Creating versioned firmware ${CMAKE_PROJECT_NAME}-${TQ_PROJECT_VERSION}.bin"
VERBATIM
)
# 依赖应用和模型产物,确保每次构建输出的是本次镜像的分区及空间数据。
add_custom_target(flash_usage_report ALL
COMMAND ${PYTHON} "${CMAKE_SOURCE_DIR}/tools/report_flash_usage.py"
--partition-table "${CMAKE_BINARY_DIR}/partition_table/partition-table.bin"
--app "${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}.bin"
--asset-pack "${CMAKE_BINARY_DIR}/esp-idf/platform/platform_assets.pack"
--model "${CMAKE_BINARY_DIR}/srmodels/srmodels.bin"
--flash-size "${CONFIG_ESPTOOLPY_FLASHSIZE}"
DEPENDS versioned_firmware srmodels_bin
COMMENT "Reporting Flash partition and embedded asset usage"
VERBATIM
)