``` KTag> system Usage: system chip-info - Show chip and system information system coredump - Check coredump status system factory-reset - Clear NVS and restart system flash - Show flash information system heap-caps - Show heap by capability system hostname [name]- Show/set hostname system mac - Show MAC addresses system partition - List partition table system RAM - Display heap memory usage system reboot - Reboot the device system reset-reason - Show last reset reason system stats - Combined system statistics system tasks - List FreeRTOS tasks system uptime - Display system uptime system version - Show firmware version ``` Co-authored-by: Joe Kearney <joe@clubk.club> Reviewed-on: #14
35 lines
938 B
CMake
35 lines
938 B
CMake
idf_component_register(
|
|
SRCS
|
|
"Console.c"
|
|
"Commands/Log_Command.c"
|
|
"Commands/System_Command.c"
|
|
INCLUDE_DIRS
|
|
"."
|
|
"./Commands"
|
|
REQUIRES
|
|
"SystemK"
|
|
"System_Events"
|
|
"app_update"
|
|
"console"
|
|
"espcoredump"
|
|
"esp_netif"
|
|
"esp_pm"
|
|
"esp_timer"
|
|
"log"
|
|
"nvs_flash"
|
|
"spi_flash"
|
|
"vfs"
|
|
)
|
|
|
|
target_compile_definitions(${COMPONENT_LIB} PRIVATE HAS_SYSTEMK_GIT_VERSION)
|
|
|
|
add_custom_target(generate_git_versions ALL
|
|
COMMAND ${CMAKE_COMMAND}
|
|
-DSOURCE_DIR=${CMAKE_SOURCE_DIR}
|
|
-DOUTPUT_FILE=${CMAKE_CURRENT_BINARY_DIR}/git_versions.h
|
|
-P ${CMAKE_CURRENT_SOURCE_DIR}/generate_git_versions.cmake
|
|
BYPRODUCTS ${CMAKE_CURRENT_BINARY_DIR}/git_versions.h
|
|
)
|
|
|
|
add_dependencies(${COMPONENT_LIB} generate_git_versions)
|
|
target_include_directories(${COMPONENT_LIB} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
|