Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mock-turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
hdl-core-lib
mock-turtle
Commits
0844fb59
Commit
0844fb59
authored
May 23, 2018
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:tools:proj_creator: (no tech change) fix comments, add author
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
cfb6e96d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
compare_size.sh
software/tools/compare_size.sh
+9
-4
No files found.
software/tools/compare_size.sh
View file @
0844fb59
#!/bin/bash
#LC_ALL= CROSS_COMPILE_TARGET=/acc/local/share/ht_tools/L866/toolchains/riscv/bin/riscv32-elf- WBGEN2=~/nfs_white_rabbit/ci/build_tools/wishbone-gen/wbgen2 REPO_PARENT=`pwd` ./all.sh
# Author: Adam Wujek, CERN 2018
#
# This script compares the size of produced binaries of a current commit
# (read from a file $size_db_file), with sizes of binaries produced for previous
# commits (read from file $size_db_file).
SIZE
=
"
$CROSS_COMPILE_TARGET
""size"
if
!
[
-n
"
$size_info_file
"
]
;
then
...
...
@@ -70,7 +75,7 @@ if [ "$GIT_HASH_CUR" = "$GIT_HASH_MASTER" ]; then
exit
0
fi
#
echo "Read size info file"
#
Read size info file
while
read
git_hash text data bss dec hex filename
do
if
[
"
$git_hash
"
=
"
$GIT_HASH_CUR
"
]
;
then
...
...
@@ -78,7 +83,7 @@ do
fi
done
<
"
$size_info_file
"
#
echo "Read size db file"
#
Read size db file
while
read
git_hash text data bss dec hex filename
do
#echo "$git_hash $filename $dec"
...
...
@@ -99,7 +104,7 @@ do
done
#print header
#
print header
for
i
in
"
${
!curr_size_array[@]
}
"
do
echo
-n
"+--"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment