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