From 9a69ef3f1bcc45db4ba2f463537882e103157ba4 Mon Sep 17 00:00:00 2001 From: Jim Mussared Date: Thu, 11 Jul 2019 14:57:40 +1000 Subject: [PATCH] ports/esp32/Makefile: Fix path expansion for ESPIDF_DRIVER_O It was using subst to s/.c/.o/ which changed .c anywhere in the path. (I have ESPIDF set to `/home/jimmo/src/github.com/espressif/esp-idf`, resulting in github.oom) --- ports/esp32/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile index ec6d29695b13d..1a119a5b33928 100644 --- a/ports/esp32/Makefile +++ b/ports/esp32/Makefile @@ -256,7 +256,7 @@ $(HEADER_BUILD)/qstrdefs.generated.h: $(SDKCONFIG_H) ################################################################################ # List of object files from the ESP32 IDF components -ESPIDF_DRIVER_O = $(subst .c,.o,$(wildcard $(ESPCOMP)/driver/*.c)) +ESPIDF_DRIVER_O = $(patsubst %.c,%.o,$(wildcard $(ESPCOMP)/driver/*.c)) ESPIDF_EFUSE_O = $(addprefix $(ESPCOMP)/efuse/,\ esp32/esp_efuse_table.o \