Skip to content

Commit ee31974

Browse files
committed
minor changes to support espidf 5 compilation
1 parent 09b5eb8 commit ee31974

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set(COMPONENT_ADD_INCLUDEDIRS "include")
33
idf_component_register(SRCS "sqlite3.c" "esp32.c" "shox96_0_2.c"
44
INCLUDE_DIRS "include"
55
PRIV_INCLUDE_DIRS "private_include"
6-
REQUIRES mbedtls
6+
REQUIRES mbedtls spi_flash esp_hw_support
77
PRIV_REQUIRES console spiffs)
88

99
target_compile_options(${COMPONENT_LIB} PRIVATE -std=gnu99 -g3 -fno-stack-protector -ffunction-sections -fdata-sections -fstrict-volatile-bitfields -mlongcalls -nostdlib -Wpointer-arith -Wno-error=unused-value -Wno-error=unused-label -Wno-error=unused-function -Wno-error=unused-but-set-variable -Wno-error=unused-variable -Wno-error=deprecated-declarations -Wno-error=char-subscripts -Wno-error=maybe-uninitialized -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -MMD -c -DF_CPU=240000000L -DESP32 -DCORE_DEBUG_LEVEL=0 -DNDEBUG)

esp32.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include <esp_system.h>
1919
#include <rom/ets_sys.h>
2020
#include <sys/stat.h>
21+
#include "esp_random.h"
2122

2223
#include "shox96_0_2.h"
2324

0 commit comments

Comments
 (0)