From 7962a0c17966c3f33cbbcb8ac85f56129849acf6 Mon Sep 17 00:00:00 2001 From: Gunar Schorcht Date: Mon, 29 Jul 2019 16:06:04 +0200 Subject: [PATCH] cpu/esp32: activate cpp feature Adds module pthread and the libstdc++ to linked libraries to solve the problem with unresolved symbols when feature cpp is required. --- cpu/esp32/Makefile.dep | 5 +++++ cpu/esp32/Makefile.features | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpu/esp32/Makefile.dep b/cpu/esp32/Makefile.dep index 9f5a2b345e..2acb293843 100644 --- a/cpu/esp32/Makefile.dep +++ b/cpu/esp32/Makefile.dep @@ -1,5 +1,10 @@ # additional modules dependencies +ifneq (,$(filter cpp,$(FEATURES_USED))) + USEMODULE += pthread + BASELIBS += -lstdc++ +endif + ifneq (,$(filter esp_eth,$(USEMODULE))) USEMODULE += esp_idf_eth USEMODULE += esp_idf_eth_phy diff --git a/cpu/esp32/Makefile.features b/cpu/esp32/Makefile.features index 96f519f762..c92dd9f24f 100644 --- a/cpu/esp32/Makefile.features +++ b/cpu/esp32/Makefile.features @@ -1,4 +1,5 @@ -# Features that are provided by CPU independent on the board +# Features that are provided by the CPU independent on the board +FEATURES_PROVIDED += cpp FEATURES_PROVIDED += periph_cpuid FEATURES_PROVIDED += periph_hwrng FEATURES_PROVIDED += periph_pm