From 2b3496f43c88ef1a7ccdcb1f3fc2a319e6197e84 Mon Sep 17 00:00:00 2001 From: James Zern <jzern@google.com> Date: Mon, 13 Feb 2017 18:52:09 -0800 Subject: [PATCH] rtcd.pl: tolerate mixed output line endings strip the default eol from the config header line, then a '\r' if there is one. this can occur if cmake used to output the header uses windows eol, but the perl used expects newlines for instance. Change-Id: I687415878b1a04fd94b12d7b3d3066f448630607 --- build/make/rtcd.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/build/make/rtcd.pl b/build/make/rtcd.pl index a286f52a99..bb34011614 100755 --- a/build/make/rtcd.pl +++ b/build/make/rtcd.pl @@ -51,6 +51,7 @@ my %config = (); while (<CONFIG_FILE>) { next if !/^(?:CONFIG_|HAVE_)/; chomp; + s/\r$//; my @pair = split /=/; $config{$pair[0]} = $pair[1]; } -- GitLab