summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Mussared <jim.mussared@gmail.com>2019-07-11 14:57:40 +1000
committerDamien George <damien.p.george@gmail.com>2019-07-20 12:32:43 +1000
commit331c224e07f5786e0ea814ed1e840ffa714c14fd (patch)
tree2a40cce1c3add98c6a8edc682b95c757f99c37f3
parent9da46a98cbd20ea8cc48fc2378bf8092abd80795 (diff)
esp32/Makefile: Fix path expansion for ESPIDF_DRIVER_O.
It was using subst to s/.c/.o/ which changed .c anywhere in the path.
-rw-r--r--ports/esp32/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile
index 4ce4e4899..2d2db368a 100644
--- a/ports/esp32/Makefile
+++ b/ports/esp32/Makefile
@@ -257,7 +257,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 \