]> granicus.if.org Git - esp-idf/commitdiff
ldgen: Fix ENOENT errors on Windows with MSYS2 and GNU Make
authorAngus Gratton <angus@espressif.com>
Tue, 20 Nov 2018 06:25:20 +0000 (17:25 +1100)
committerAngus Gratton <gus@projectgus.com>
Tue, 20 Nov 2018 06:25:20 +0000 (17:25 +1100)
make/project_config.mk

index 50cf139e6278e350371a9888a6d2a6e7332dee90..79a6efd01a6eb330d128889c9d801158e70ce22f 100644 (file)
@@ -4,6 +4,12 @@
 COMPONENT_KCONFIGS := $(foreach component,$(COMPONENT_PATHS),$(wildcard $(component)/Kconfig))
 COMPONENT_KCONFIGS_PROJBUILD := $(foreach component,$(COMPONENT_PATHS),$(wildcard $(component)/Kconfig.projbuild))
 
+ifdef MSYSTEM
+# kconfiglib requires Windows-style paths for kconfig files
+COMPONENT_KCONFIGS := $(shell cygpath -w $(COMPONENT_KCONFIGS))
+COMPONENT_KCONFIGS_PROJBUILD := $(shell cygpath -w $(COMPONENT_KCONFIGS_PROJBUILD))
+endif
+
 #For doing make menuconfig etc
 KCONFIG_TOOL_DIR=$(IDF_PATH)/tools/kconfig