aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad Griffis2016-12-08 11:06:03 -0600
committerBrad Griffis2016-12-08 11:06:03 -0600
commit8a22d7d84c93023119b00aeded080ff4e93bafb6 (patch)
tree6fe25f6bebeaa4ff0e9ec13ae47d853e7586f38a
parent91f308a3df7281d1969ee7faad2ebdfee8c57979 (diff)
downloadam57xx_uboot_pin_config-8a22d7d84c93023119b00aeded080ff4e93bafb6.tar.gz
am57xx_uboot_pin_config-8a22d7d84c93023119b00aeded080ff4e93bafb6.tar.xz
am57xx_uboot_pin_config-8a22d7d84c93023119b00aeded080ff4e93bafb6.zip
Handle DOS carriage returns
-rwxr-xr-xam57xx_generate_pin_config_data.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/am57xx_generate_pin_config_data.pl b/am57xx_generate_pin_config_data.pl
index 859142c..cdec20b 100755
--- a/am57xx_generate_pin_config_data.pl
+++ b/am57xx_generate_pin_config_data.pl
@@ -130,6 +130,7 @@ sub do_read_file
130 while ( $row = <$fh> ) { 130 while ( $row = <$fh> ) {
131 131
132 chomp($row); 132 chomp($row);
133 $row =~ s/\r//g; # Handle DOS carriage return
133 134
134 # get rid of commented lines including single line and multiline 135 # get rid of commented lines including single line and multiline
135 next if $skip == 1; 136 next if $skip == 1;