Changeset 8565a42 in mainline for contrib/tools


Ignore:
Timestamp:
2018-03-02T20:34:50Z (8 years ago)
Author:
GitHub <noreply@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a1a81f69, d5e5fd1
Parents:
3061bc1 (diff), 34e1206 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:34:50)
git-committer:
GitHub <noreply@…> (2018-03-02 20:34:50)
Message:

Remove all trailing whitespace, everywhere.

See individual commit messages for details.

Location:
contrib/tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • contrib/tools/font/bdf2c.pl

    r3061bc1 r8565a42  
    5353        /^FONTBOUNDINGBOX\s/ and do {
    5454                ($skip, $width, $height, $offset_x, $offset_y) = (split);
    55                
     55
    5656                die("Font width is not 8px\n") if ($width != 8);
    5757                die("Font height is not 16px\n") if ($height != 16);
     
    7070                my @glyph = ();
    7171                my $y;
    72                
     72
    7373                # Add empty lines at top
    7474                my $empties = $height + $offset_y - $goffset_y - $gheight;
    75                
     75
    7676                for ($y = 0; $y < $empties; $y++) {
    7777                        $glyph[$y] = 0;
    7878                }
    79                
     79
    8080                # Scan the hex bitmap
    8181                for ($y = $empties; $y < $empties + $gheight; $y++) {
     
    8383                        $glyph[$y] = hex(substr($_, 0, 2)) >> $goffset_x;
    8484                }
    85                
     85
    8686                # Add empty lines at bottom
    8787                my $fill = $height - $gheight - $empties;
     
    8989                        $glyph[$y] = 0;
    9090                }
    91                
     91
    9292                if ($index != 0) {
    9393                        $glyphs[$index] = (\@glyph);
     
    125125                                print "\t\treturn (ch - " . ($start - $start_pos) . ");\n";
    126126                        }
    127                        
     127
    128128                        print "\t\n";
    129129                }
    130                
     130
    131131                $start = $index;
    132132                $start_pos = $pos;
    133133        }
    134        
     134
    135135        $pos++;
    136136        $prev = $index;
     
    145145for $index (@chars) {
    146146        print "\n\t{";
    147        
     147
    148148        my $y;
    149149        for ($y = 0; $y < $height; $y++) {
     
    151151                printf "0x%.2x", $glyphs[$index]->[$y];
    152152        }
    153        
     153
    154154        print "},";
    155155}
  • contrib/tools/gen_vga323.c

    r3061bc1 r8565a42  
    3636{
    3737        unsigned int i;
    38        
     38
    3939        for (i = 0; i < 256; i++)
    4040                printf("\t.byte 0x%02x, 0x%02x, 0x%02x, 0x00\n", BLUE(i) * 9, GREEN(i) * 21, RED(i) * 9);
    41        
     41
    4242        return 0;
    4343}
  • contrib/tools/random_check.sh

    r3061bc1 r8565a42  
    8888        COUNTER=$(( $COUNTER + 1 ))
    8989        echo "Try #$COUNTER ($FAILED failed):" >&2
    90        
     90
    9191        (
    9292                echo "  Cleaning after previous build." >&2
    9393                make distclean -j$JOBS 2>&1 || exit 1
    94                
    95                
     94
     95
    9696                echo "  Preparing random configuration." >&2
    9797                # It would be nicer to allow set the constraints directly to
     
    105105                                exit 2
    106106                        fi
    107                        
     107
    108108                        make random-config 2>&1 || exit 1
    109                        
     109
    110110                        tr -d ' ' <Makefile.config >"${FILENAME_PREFIX}config.trimmed"
    111                        
     111
    112112                        THIS_CONFIG_OKAY=true
    113113                        while read pattern; do
     
    117117                                fi
    118118                        done <"$PRUNE_CONFIG_FILE"
    119                        
     119
    120120                        rm -f "${FILENAME_PREFIX}config.trimmed"
    121                        
     121
    122122                        if $THIS_CONFIG_OKAY; then
    123123                                break
    124124                        fi
    125125                done
    126                
    127                
     126
     127
    128128                # Report basic info about the configuration and build it
    129129                BASIC_CONFIG=`sed -n \
     
    134134                        | paste '-sd,' | sed 's#,#, #g'`
    135135                echo -n "  Building ($BASIC_CONFIG)... " >&2
    136        
     136
    137137                make -j$JOBS 2>&1
    138138                if [ $? -eq 0 ]; then
     
    143143                        exit 1
    144144                fi
    145                
     145
    146146        ) >random_run_$COUNTER.log
    147147        RC=$?
    148        
     148
    149149        if [ $RC -ne 0 ]; then
    150150                tail -n 10 random_run_$COUNTER.log | sed 's#.*#    | &#'
    151151                FAILED=$(( $FAILED + 1 ))
    152152        fi
    153        
     153
    154154        if [ -e Makefile.config ]; then
    155155                cp Makefile.config "$FILENAME_PREFIX$COUNTER.Makefile.config"
  • contrib/tools/toolchain_check.sh

    r3061bc1 r8565a42  
    3838        objcopy_path=`echo "$arch_path"/bin/*-objcopy`
    3939        gdb_path=`echo "$arch_path"/bin/*-gdb`
    40        
     40
    4141        print_version "$ld_path" "Linker not found!" || continue
    42        
     42
    4343        print_version "$objcopy_path" "objcopy not found!" || continue
    44        
     44
    4545        print_version "$gcc_path" "GCC not found!" || continue
    4646        check_define "$gcc_path" "__helenos__" 1 || continue
    4747        check_define "$gcc_path" "helenos_uarch" "$arch" || continue
    48        
     48
    4949        print_version "$gdb_path" "GDB not found!" || continue
    5050done
Note: See TracChangeset for help on using the changeset viewer.