Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Software for White Rabbit PTP Core
Manage
Activity
Members
Labels
Plan
Issues
39
Issue boards
Milestones
Wiki
Code
Merge requests
5
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Software for White Rabbit PTP Core
Commits
29652b3b
Commit
29652b3b
authored
8 years ago
by
Adam Wujek
Browse files
Options
Downloads
Patches
Plain Diff
MAKEALL: use parameter -c to see a table with sizes of previous builds
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
372829bc
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
MAKEALL
+27
-14
27 additions, 14 deletions
MAKEALL
with
27 additions
and
14 deletions
MAKEALL
+
27
−
14
View file @
29652b3b
...
...
@@ -8,19 +8,28 @@ TP=$(mktemp /tmp/save-dotconfig-ppsi.XXXXXX)
test
-f
.config
&&
cp
.config
$TW
test
-f
ppsi/.config
&&
cp
ppsi/.config
$TP
# check whether we want to compare sizes of binaries to older builds
if
[
$#
-ne
0
]
&&
[
x
"
$1
"
=
x
"-c"
]
;
then
compare_mode
=
y
shift
;
fi
configs
=
$(
cd
configs
;
echo
*
_defconfig
)
if
[
$#
-ne
0
]
;
then
configs
=
"
$*
"
fi
if
!
[
-n
"
$size_db_file
"
]
;
then
size_db_file
=
size_db.txt
echo
"No file with size DB specified! Using default (
$size_db_file
)"
fi
if
[
x
"
$compare_mode
"
=
x
"y"
]
;
then
if
!
[
-n
"
$size_db_file
"
]
;
then
size_db_file
=
size_db.txt
echo
"No file with size DB specified! Using default (
$size_db_file
)"
fi
if
!
[
-n
"
$size_info_file
"
]
;
then
size_info_file
=
size_info.txt
echo
"No file with size info specified! Using default (
$size_info_file
)"
if
!
[
-n
"
$size_info_file
"
]
;
then
size_info_file
=
size_info.txt
echo
"No file with size info specified! Using default (
$size_info_file
)"
fi
fi
export
size_db_file
...
...
@@ -47,7 +56,9 @@ for c in $configs; do
export
DEFCONFIG_NAME
# Remove "# configuration written to .config" from output
make
-s
|
grep
-v
'^#'
make makeall_copy
if
[
x
"
$compare_mode
"
=
x
"y"
]
;
then
make makeall_copy
fi
done
make
-s
clean
...
...
@@ -57,10 +68,12 @@ cp $TP ppsi/.config; rm $TP
rm
$T
./compare_size.sh
GIT_HASH
=
`
git log
--format
=
format:%H
-1
`
if
[
-f
"
$size_db_file
"
]
;
then
cat
"
$size_db_file
"
|
grep
-v
$GIT_HASH
>
"
$size_db_file
"
.tmp
mv
"
$size_db_file
"
.tmp
"
$size_db_file
"
if
[
x
"
$compare_mode
"
=
x
"y"
]
;
then
./compare_size.sh 1>&2
GIT_HASH
=
`
git log
--format
=
format:%H
-1
`
if
[
-f
"
$size_db_file
"
]
;
then
cat
"
$size_db_file
"
|
grep
-v
$GIT_HASH
>
"
$size_db_file
"
.tmp
mv
"
$size_db_file
"
.tmp
"
$size_db_file
"
fi
cat
"
$size_info_file
"
>>
"
$size_db_file
"
fi
cat
"
$size_info_file
"
>>
"
$size_db_file
"
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment