Skip to contentSkip to conversation

Fix build for mingw32 on windows ($$ expansion)

PATCH New Stefan Weil 1 participant 1 message Nov 19, 2009 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build for mingw32 on windows ($$ expansion)

Make using mingw32 on windows fails when running grep "=y$$". The command is expanded to grep "=y$ and the missing " results in an error.

I don't expect a file config-devices.mak with =y somewhere in the middle of a line (they are always at the end of the line), so simplifying the regular expression to =y seems to be permitted.

This avoids problems with wrong expansion.

---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Makefile +1 -1
index f8a5036..16ed995 100644
@@ -35,7 +35,7 @@ SUBDIR_MAKEFLAGS=$(if $(V),,--no-print-directory)
 SUBDIR_DEVICES_MAK=$(patsubst %, %/config-devices.mak, $(TARGET_DIRS))
 
 config-all-devices.mak: $(SUBDIR_DEVICES_MAK)
-	$(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep "=y$$" | sort -u > $@,"  GEN   $@")
+	$(call quiet-command,cat $(SUBDIR_DEVICES_MAK) | grep =y | sort -u > $@,"  GEN   $@")
 
 -include config-all-devices.mak
 
Signature · 1 line
1.5.6.5