Include ESP-Insights component for esp32 target (#99)
* Added esp-insights to esp32 target build * Enabled coredump partition for esp-insights * Disabled ESP-Insights debug
This commit is contained in:
parent
d97e0ed085
commit
ed550045fd
4 changed files with 44 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
# CMakeLists in this exact order for cmake to work correctly
|
||||
cmake_minimum_required(VERSION 3.5)
|
||||
|
||||
set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/components/esp-rainmaker/components)
|
||||
set(EXTRA_COMPONENT_DIRS ${CMAKE_SOURCE_DIR}/components/esp-rainmaker/components ${CMAKE_SOURCE_DIR}/components/esp-insights/components)
|
||||
|
||||
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
|
||||
project(arduino-lib-builder)
|
||||
|
|
|
|||
|
|
@ -98,7 +98,7 @@
|
|||
},
|
||||
{
|
||||
"target": "esp32",
|
||||
"features":["qio_ram"],
|
||||
"features":["qio_ram","insights"],
|
||||
"idf_libs":["qio","80m"],
|
||||
"bootloaders":[
|
||||
["qio","80m"],
|
||||
|
|
|
|||
27
configs/defconfig.insights
Normal file
27
configs/defconfig.insights
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
CONFIG_ESP_INSIGHTS_ENABLED=y
|
||||
# CONFIG_ESP_INSIGHTS_DEBUG_ENABLED is not set
|
||||
CONFIG_ESP_INSIGHTS_COREDUMP_ENABLE=y
|
||||
# CONFIG_ESP_INSIGHTS_TRANSPORT_MQTT is not set
|
||||
CONFIG_ESP_INSIGHTS_TRANSPORT_HTTPS=y
|
||||
|
||||
CONFIG_DIAG_ENABLE_METRICS=y
|
||||
CONFIG_DIAG_ENABLE_WIFI_METRICS=y
|
||||
CONFIG_DIAG_ENABLE_HEAP_METRICS=y
|
||||
CONFIG_DIAG_ENABLE_VARIABLES=y
|
||||
CONFIG_DIAG_ENABLE_NETWORK_VARIABLES=y
|
||||
|
||||
CONFIG_ESP32_ENABLE_COREDUMP=y
|
||||
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=y
|
||||
CONFIG_ESP32_COREDUMP_DATA_FORMAT_ELF=y
|
||||
CONFIG_ESP32_COREDUMP_CHECKSUM_CRC32=y
|
||||
CONFIG_ESP32_CORE_DUMP_MAX_TASKS_NUM=64
|
||||
CONFIG_ESP32_CORE_DUMP_STACK_SIZE=1024
|
||||
|
||||
CONFIG_MBEDTLS_DYNAMIC_BUFFER=y
|
||||
CONFIG_MBEDTLS_DYNAMIC_FREE_PEER_CERT=y
|
||||
CONFIG_MBEDTLS_DYNAMIC_FREE_CONFIG_DATA=y
|
||||
|
||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
|
||||
CONFIG_PARTITION_TABLE_OFFSET=0x8000
|
||||
CONFIG_PARTITION_TABLE_MD5=y
|
||||
|
|
@ -6,6 +6,7 @@ CAMERA_REPO_URL="https://github.com/espressif/esp32-camera.git"
|
|||
DL_REPO_URL="https://github.com/espressif/esp-dl.git"
|
||||
SR_REPO_URL="https://github.com/espressif/esp-sr.git"
|
||||
RMAKER_REPO_URL="https://github.com/espressif/esp-rainmaker.git"
|
||||
INSIGHTS_REPO_URL="https://github.com/espressif/esp-insights.git"
|
||||
DSP_REPO_URL="https://github.com/espressif/esp-dsp.git"
|
||||
LITTLEFS_REPO_URL="https://github.com/joltwallet/esp_littlefs.git"
|
||||
TINYUSB_REPO_URL="https://github.com/hathach/tinyusb.git"
|
||||
|
|
@ -121,6 +122,20 @@ else
|
|||
fi
|
||||
if [ $? -ne 0 ]; then exit 1; fi
|
||||
|
||||
#
|
||||
# CLONE/UPDATE ESP-INSIGHTS
|
||||
#
|
||||
|
||||
if [ ! -d "$AR_COMPS/esp-insights" ]; then
|
||||
git clone $INSIGHTS_REPO_URL "$AR_COMPS/esp-insights" && \
|
||||
git -C "$AR_COMPS/esp-insights" submodule update --init --recursive
|
||||
else
|
||||
git -C "$AR_COMPS/esp-insights" fetch && \
|
||||
git -C "$AR_COMPS/esp-insights" pull --ff-only && \
|
||||
git -C "$AR_COMPS/esp-insights" submodule update --init --recursive
|
||||
fi
|
||||
if [ $? -ne 0 ]; then exit 1; fi
|
||||
|
||||
#
|
||||
# CLONE/UPDATE ESP-DSP
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue