Changeset 8565a42 in mainline for contrib/tools
- Timestamp:
- 2018-03-02T20:34:50Z (8 years ago)
- 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)
- Location:
- contrib/tools
- Files:
-
- 4 edited
-
font/bdf2c.pl (modified) (7 diffs)
-
gen_vga323.c (modified) (1 diff)
-
random_check.sh (modified) (5 diffs)
-
toolchain_check.sh (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contrib/tools/font/bdf2c.pl
r3061bc1 r8565a42 53 53 /^FONTBOUNDINGBOX\s/ and do { 54 54 ($skip, $width, $height, $offset_x, $offset_y) = (split); 55 55 56 56 die("Font width is not 8px\n") if ($width != 8); 57 57 die("Font height is not 16px\n") if ($height != 16); … … 70 70 my @glyph = (); 71 71 my $y; 72 72 73 73 # Add empty lines at top 74 74 my $empties = $height + $offset_y - $goffset_y - $gheight; 75 75 76 76 for ($y = 0; $y < $empties; $y++) { 77 77 $glyph[$y] = 0; 78 78 } 79 79 80 80 # Scan the hex bitmap 81 81 for ($y = $empties; $y < $empties + $gheight; $y++) { … … 83 83 $glyph[$y] = hex(substr($_, 0, 2)) >> $goffset_x; 84 84 } 85 85 86 86 # Add empty lines at bottom 87 87 my $fill = $height - $gheight - $empties; … … 89 89 $glyph[$y] = 0; 90 90 } 91 91 92 92 if ($index != 0) { 93 93 $glyphs[$index] = (\@glyph); … … 125 125 print "\t\treturn (ch - " . ($start - $start_pos) . ");\n"; 126 126 } 127 127 128 128 print "\t\n"; 129 129 } 130 130 131 131 $start = $index; 132 132 $start_pos = $pos; 133 133 } 134 134 135 135 $pos++; 136 136 $prev = $index; … … 145 145 for $index (@chars) { 146 146 print "\n\t{"; 147 147 148 148 my $y; 149 149 for ($y = 0; $y < $height; $y++) { … … 151 151 printf "0x%.2x", $glyphs[$index]->[$y]; 152 152 } 153 153 154 154 print "},"; 155 155 } -
contrib/tools/gen_vga323.c
r3061bc1 r8565a42 36 36 { 37 37 unsigned int i; 38 38 39 39 for (i = 0; i < 256; i++) 40 40 printf("\t.byte 0x%02x, 0x%02x, 0x%02x, 0x00\n", BLUE(i) * 9, GREEN(i) * 21, RED(i) * 9); 41 41 42 42 return 0; 43 43 } -
contrib/tools/random_check.sh
r3061bc1 r8565a42 88 88 COUNTER=$(( $COUNTER + 1 )) 89 89 echo "Try #$COUNTER ($FAILED failed):" >&2 90 90 91 91 ( 92 92 echo " Cleaning after previous build." >&2 93 93 make distclean -j$JOBS 2>&1 || exit 1 94 95 94 95 96 96 echo " Preparing random configuration." >&2 97 97 # It would be nicer to allow set the constraints directly to … … 105 105 exit 2 106 106 fi 107 107 108 108 make random-config 2>&1 || exit 1 109 109 110 110 tr -d ' ' <Makefile.config >"${FILENAME_PREFIX}config.trimmed" 111 111 112 112 THIS_CONFIG_OKAY=true 113 113 while read pattern; do … … 117 117 fi 118 118 done <"$PRUNE_CONFIG_FILE" 119 119 120 120 rm -f "${FILENAME_PREFIX}config.trimmed" 121 121 122 122 if $THIS_CONFIG_OKAY; then 123 123 break 124 124 fi 125 125 done 126 127 126 127 128 128 # Report basic info about the configuration and build it 129 129 BASIC_CONFIG=`sed -n \ … … 134 134 | paste '-sd,' | sed 's#,#, #g'` 135 135 echo -n " Building ($BASIC_CONFIG)... " >&2 136 136 137 137 make -j$JOBS 2>&1 138 138 if [ $? -eq 0 ]; then … … 143 143 exit 1 144 144 fi 145 145 146 146 ) >random_run_$COUNTER.log 147 147 RC=$? 148 148 149 149 if [ $RC -ne 0 ]; then 150 150 tail -n 10 random_run_$COUNTER.log | sed 's#.*# | &#' 151 151 FAILED=$(( $FAILED + 1 )) 152 152 fi 153 153 154 154 if [ -e Makefile.config ]; then 155 155 cp Makefile.config "$FILENAME_PREFIX$COUNTER.Makefile.config" -
contrib/tools/toolchain_check.sh
r3061bc1 r8565a42 38 38 objcopy_path=`echo "$arch_path"/bin/*-objcopy` 39 39 gdb_path=`echo "$arch_path"/bin/*-gdb` 40 40 41 41 print_version "$ld_path" "Linker not found!" || continue 42 42 43 43 print_version "$objcopy_path" "objcopy not found!" || continue 44 44 45 45 print_version "$gcc_path" "GCC not found!" || continue 46 46 check_define "$gcc_path" "__helenos__" 1 || continue 47 47 check_define "$gcc_path" "helenos_uarch" "$arch" || continue 48 48 49 49 print_version "$gdb_path" "GDB not found!" || continue 50 50 done
Note:
See TracChangeset
for help on using the changeset viewer.
