From e748bb8cd367a84c84ea1fd53c4b64555c17fc63 Mon Sep 17 00:00:00 2001 From: Anatol Ivanov Date: Tue, 6 Nov 2018 06:34:00 -0600 Subject: [PATCH] tools/Config.mk and tools/Makefile.win: Force use 'cmd' for shell with windows native build --- tools/Config.mk | 4 ++++ tools/Makefile.win | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tools/Config.mk b/tools/Config.mk index eb95551f5f..316e5a01ad 100644 --- a/tools/Config.mk +++ b/tools/Config.mk @@ -38,6 +38,10 @@ # ############################################################################ +ifeq ($(CONFIG_WINDOWS_NATIVE),y) +export SHELL=cmd +endif + # These are configuration variables that are quoted by configuration tool # but which must be unquoated when used in the build system. diff --git a/tools/Makefile.win b/tools/Makefile.win index d995c9def2..102744689f 100644 --- a/tools/Makefile.win +++ b/tools/Makefile.win @@ -33,6 +33,8 @@ # ############################################################################ +export SHELL=cmd + TOPDIR := ${shell echo %CD%} -include $(TOPDIR)\.config -include $(TOPDIR)\tools\Config.mk