From f5f625ead5b4e145c94b8afca45e22d6d8de7aa1 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Tue, 20 Sep 2016 11:20:31 +0800 Subject: [PATCH] kconfig: fix build on macOS macOS version of sed doesn't recognize \r as special character. Replacing with \x0D substitution which works everywhere. --- tools/kconfig/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/kconfig/Makefile b/tools/kconfig/Makefile index 65b236d34a..fee5a69316 100644 --- a/tools/kconfig/Makefile +++ b/tools/kconfig/Makefile @@ -302,7 +302,7 @@ zconf.lex.c: zconf.l zconf.hash.c: zconf.gperf # strip CRs on Windows systems where gperf will otherwise barf on them - sed -E "s/\r//" zconf.gperf | gperf -t --output-file zconf.hash.c -a -C -E -g -k '1,3,$$' -p -t + sed -E "s/\\x0D$$//" zconf.gperf | gperf -t --output-file zconf.hash.c -a -C -E -g -k '1,3,$$' -p -t zconf.tab.c: zconf.y bison -t -l -p zconf -o zconf.tab.c zconf.y