feat(assets): embed LCD and audio resources in OTA app
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user