From: Angus Gratton Date: Tue, 20 Nov 2018 06:25:20 +0000 (+1100) Subject: ldgen: Fix ENOENT errors on Windows with MSYS2 and GNU Make X-Git-Tag: v3.3-beta1~87^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4f4edcf676ec5143cb68c087c1bacdad89016476;p=esp-idf ldgen: Fix ENOENT errors on Windows with MSYS2 and GNU Make --- diff --git a/make/project_config.mk b/make/project_config.mk index 50cf139e62..79a6efd01a 100644 --- a/make/project_config.mk +++ b/make/project_config.mk @@ -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