]> granicus.if.org Git - esp-idf/commitdiff
kconfig: fix build on macOS
authorIvan Grokhotkov <ivan@espressif.com>
Tue, 20 Sep 2016 03:20:31 +0000 (11:20 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 20 Sep 2016 03:31:46 +0000 (11:31 +0800)
macOS version of sed doesn't recognize \r as special character.
Replacing with \x0D substitution which works everywhere.

tools/kconfig/Makefile

index 65b236d34a36fbe8074686379e261db1ed2f7fa6..fee5a693165c3c2a2b159a3d835d3d95e6731fb8 100644 (file)
@@ -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