diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2016-08-08 12:51:09 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-08-18 08:18:32 +0200 |
commit | eabab332838178044b98014b06d3195531eac95d (patch) | |
tree | d6d9ca6ce4be8ed1b93110a7564a31088288e6f4 | |
parent | 39391164e52ae3a8d70e1d7d06f25b893363fab9 (diff) | |
download | barebox-eabab332838178044b98014b06d3195531eac95d.tar.gz barebox-eabab332838178044b98014b06d3195531eac95d.tar.xz |
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>
-rwxr-xr-x | scripts/socfpga_get_sequencer | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/socfpga_get_sequencer b/scripts/socfpga_get_sequencer index fb0ea6628b..e0f2e6de2a 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 |