9
0
Fork 0

scripts: socfpga_get_sequencer: convert potential CRLF to LF

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 <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Steffen Trumtrar 2016-08-08 12:51:09 +02:00 committed by Sascha Hauer
parent 39391164e5
commit eabab33283
1 changed files with 2 additions and 0 deletions

View File

@ -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