make build system: fix build for undefined _lock_* funcs

This commit is contained in:
Anton Maklakov
2021-05-21 14:45:50 +08:00
parent e5d69bf82d
commit 343cc5025b
2 changed files with 3 additions and 1 deletions

View File

@@ -14,9 +14,10 @@ COMPONENTS := esp_hw_support esptool_py bootloader_support log spi_flash micro-e
CFLAGS = CFLAGS =
CXXFLAGS = CXXFLAGS =
#We cannot include the idf_target, esp_common component directly but we need their includes. #We cannot include the some components like idf_target, esp_common directly but we need their includes.
CFLAGS += -I $(IDF_PATH)/components/$(IDF_TARGET)/include CFLAGS += -I $(IDF_PATH)/components/$(IDF_TARGET)/include
CFLAGS += -I $(IDF_PATH)/components/esp_common/include CFLAGS += -I $(IDF_PATH)/components/esp_common/include
CFLAGS += -I $(IDF_PATH)/components/newlib/platform_include
CFLAGS += -I $(IDF_PATH)/components/xtensa/include -I $(IDF_PATH)/components/xtensa/$(IDF_TARGET)/include CFLAGS += -I $(IDF_PATH)/components/xtensa/include -I $(IDF_PATH)/components/xtensa/$(IDF_TARGET)/include
# The bootloader pseudo-component is also included in this build, for its Kconfig.projbuild to be included. # The bootloader pseudo-component is also included in this build, for its Kconfig.projbuild to be included.

View File

@@ -14,6 +14,7 @@
#include <stdint.h> #include <stdint.h>
#include <sys/param.h> #include <sys/param.h>
#include <sys/lock.h>
#include "esp_attr.h" #include "esp_attr.h"
#include "soc/rtc.h" #include "soc/rtc.h"