From 343cc5025b5b5ea5cacf76cc7ac67926b556de66 Mon Sep 17 00:00:00 2001 From: Anton Maklakov Date: Fri, 21 May 2021 14:45:50 +0800 Subject: [PATCH] make build system: fix build for undefined _lock_* funcs --- components/bootloader/subproject/Makefile | 3 ++- components/esp_hw_support/esp_clk.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/bootloader/subproject/Makefile b/components/bootloader/subproject/Makefile index 6acc7bd29b..5db762b78f 100644 --- a/components/bootloader/subproject/Makefile +++ b/components/bootloader/subproject/Makefile @@ -14,9 +14,10 @@ COMPONENTS := esp_hw_support esptool_py bootloader_support log spi_flash micro-e CFLAGS = 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/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 # The bootloader pseudo-component is also included in this build, for its Kconfig.projbuild to be included. diff --git a/components/esp_hw_support/esp_clk.c b/components/esp_hw_support/esp_clk.c index 4342c95d05..6fa6c532f5 100644 --- a/components/esp_hw_support/esp_clk.c +++ b/components/esp_hw_support/esp_clk.c @@ -14,6 +14,7 @@ #include #include +#include #include "esp_attr.h" #include "soc/rtc.h"