Skip to content

Commit 85d00a4

Browse files
committed
ci: Fix host-test failures
1 parent ae932c8 commit 85d00a4

File tree

3 files changed

+50
-2
lines changed

3 files changed

+50
-2
lines changed

components/spi_flash/sim/Makefile.files

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ INCLUDE_DIRS := \
1818
app_update/include \
1919
bsd/include \
2020
driver/include \
21+
esp_app_format/include \
2122
esp_timer/include \
2223
freertos/include \
2324
log/include \
@@ -34,7 +35,7 @@ INCLUDE_DIRS := \
3435
xtensa/include \
3536
xtensa/esp32/include \
3637
soc/esp32/include \
37-
heap/include \
38+
heap/include \
3839
soc/include \
3940
esp32/include \
4041
esp_timer/include \

components/spi_flash/sim/stubs/Makefile.files

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ INCLUDE_DIRS := \
1414
app_update/include \
1515
bsd/include \
1616
driver/include \
17+
esp_app_format/include \
1718
esp_timer/include \
1819
freertos/include \
1920
log/include \
@@ -26,7 +27,7 @@ INCLUDE_DIRS := \
2627
esp_hw_support/include/soc \
2728
esp_system/include \
2829
soc/esp32/include \
29-
heap/include \
30+
heap/include \
3031
soc/include \
3132
xtensa/include \
3233
xtensa/esp32/include \
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
/*
2+
* SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*
6+
* This is a STUB FILE used when compiling ESP-IDF to run tests on the host system.
7+
* The source file used normally for ESP-IDF has the same name but is located elsewhere.
8+
*/
9+
10+
#pragma once
11+
12+
#include <stdint.h>
13+
#include <stdbool.h>
14+
#include <stddef.h>
15+
#include "esp_err.h"
16+
17+
#ifdef __cplusplus
18+
extern "C"
19+
{
20+
#endif
21+
22+
#define ESP_APP_DESC_MAGIC_WORD (0xABCD5432) /*!< The magic word for the esp_app_desc structure that is in DROM. */
23+
24+
/**
25+
* @brief Description about application.
26+
*/
27+
typedef struct {
28+
uint32_t magic_word; /*!< Magic word ESP_APP_DESC_MAGIC_WORD */
29+
uint32_t secure_version; /*!< Secure version */
30+
uint32_t reserv1[2]; /*!< reserv1 */
31+
char version[32]; /*!< Application version */
32+
char project_name[32]; /*!< Project name */
33+
char time[16]; /*!< Compile time */
34+
char date[16]; /*!< Compile date*/
35+
char idf_ver[32]; /*!< Version IDF */
36+
uint8_t app_elf_sha256[32]; /*!< sha256 of elf file */
37+
uint32_t reserv2[20]; /*!< reserv2 */
38+
} esp_app_desc_t;
39+
40+
/** @cond */
41+
_Static_assert(sizeof(esp_app_desc_t) == 256, "esp_app_desc_t should be 256 bytes");
42+
/** @endcond */
43+
44+
#ifdef __cplusplus
45+
}
46+
#endif

0 commit comments

Comments
 (0)