mirror of
https://github.com/espressif/esp-rainmaker.git
synced 2026-01-15 00:10:29 +00:00
refactor: cleaner dependency of app descriptor
This commit is contained in:
@@ -20,6 +20,10 @@ set(priv_req protobuf-c json_parser json_generator
|
||||
nvs_flash esp_http_client app_update esp-tls mbedtls esp_https_ota
|
||||
console esp_local_ctrl esp_https_server mdns esp_schedule efuse driver rmaker_common)
|
||||
|
||||
if ("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.0")
|
||||
list(APPEND priv_req esp_app_format)
|
||||
endif()
|
||||
|
||||
if ("${IDF_VERSION_MAJOR}.${IDF_VERSION_MINOR}" VERSION_GREATER_EQUAL "5.1")
|
||||
# NAT64 and DNS64 features were introduced for openthread component in IDF v5.1
|
||||
list(APPEND priv_req openthread network_provisioning)
|
||||
|
||||
@@ -13,19 +13,19 @@
|
||||
// limitations under the License.
|
||||
#include <sdkconfig.h>
|
||||
#include <string.h>
|
||||
#include <esp_wifi.h>
|
||||
#include "esp_idf_version.h"
|
||||
#include <esp_log.h>
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
|
||||
#include <esp_app_desc.h>
|
||||
#else
|
||||
#include <esp_ota_ops.h>
|
||||
#endif
|
||||
#include <esp_rmaker_utils.h>
|
||||
#include <esp_rmaker_core.h>
|
||||
#include <esp_rmaker_secure_boot_digest.h>
|
||||
|
||||
#include "esp_rmaker_internal.h"
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
|
||||
#include <esp_app_desc.h>
|
||||
#endif
|
||||
|
||||
static const char *TAG = "esp_rmaker_node";
|
||||
|
||||
static void esp_rmaker_node_info_free(esp_rmaker_node_info_t *info)
|
||||
|
||||
@@ -14,7 +14,6 @@
|
||||
#include <sdkconfig.h>
|
||||
#include <string.h>
|
||||
#include <esp_log.h>
|
||||
#include <esp_ota_ops.h>
|
||||
#include <json_generator.h>
|
||||
#include <esp_rmaker_core.h>
|
||||
#include <esp_rmaker_utils.h>
|
||||
@@ -25,6 +24,8 @@
|
||||
|
||||
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(5, 0, 0)
|
||||
#include <esp_app_desc.h>
|
||||
#else
|
||||
#include <esp_ota_ops.h>
|
||||
#endif
|
||||
|
||||
#define NODE_CONFIG_TOPIC_SUFFIX "config"
|
||||
|
||||
Reference in New Issue
Block a user