From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bWi9m-0004Hp-Fx for barebox@lists.infradead.org; Mon, 08 Aug 2016 10:51:45 +0000 From: Steffen Trumtrar Date: Mon, 8 Aug 2016 12:51:09 +0200 Message-Id: <1470653469-24896-1-git-send-email-s.trumtrar@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] scripts: socfpga_get_sequencer: convert potential CRLF to LF To: barebox@lists.infradead.org Cc: Steffen Trumtrar If u-boot was generated under a DOS system, the sequencer files will have CRLF linebreaks. The indent-tool has problems with this and as a result the code will not compile anymore. Fix up any CRLFs prior with the dos2unix tool. Signed-off-by: Steffen Trumtrar --- scripts/socfpga_get_sequencer | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/socfpga_get_sequencer b/scripts/socfpga_get_sequencer index fb0ea6628b2a..e0f2e6de2abd 100755 --- a/scripts/socfpga_get_sequencer +++ b/scripts/socfpga_get_sequencer @@ -24,6 +24,8 @@ copy_source() { unifdef -f ${sequencer_defines} $tgt -o $tgt + dos2unix $tgt + echo " Fixing extern/static keywords..." # Statify all global variables with missing static keyword sed -i 's/^\(extern \|static \|\)\([^*#\/ ][^(]* [^( ]*\((.*).*$\|=.*;.*$\)\)/static \2/g' $tgt -- 2.8.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox