Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
29652b3b
Commit
29652b3b
authored
Mar 02, 2017
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email 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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
14 deletions
+27
-14
MAKEALL
MAKEALL
+27
-14
No files found.
MAKEALL
View file @
29652b3b
...
@@ -8,19 +8,28 @@ TP=$(mktemp /tmp/save-dotconfig-ppsi.XXXXXX)
...
@@ -8,19 +8,28 @@ TP=$(mktemp /tmp/save-dotconfig-ppsi.XXXXXX)
test
-f
.config
&&
cp
.config
$TW
test
-f
.config
&&
cp
.config
$TW
test
-f
ppsi/.config
&&
cp
ppsi/.config
$TP
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
)
configs
=
$(
cd
configs
;
echo
*
_defconfig
)
if
[
$#
-ne
0
]
;
then
if
[
$#
-ne
0
]
;
then
configs
=
"
$*
"
configs
=
"
$*
"
fi
fi
if
!
[
-n
"
$size_db_file
"
]
;
then
if
[
x
"
$compare_mode
"
=
x
"y"
]
;
then
size_db_file
=
size_db.txt
if
!
[
-n
"
$size_db_file
"
]
;
then
echo
"No file with size DB specified! Using default (
$size_db_file
)"
size_db_file
=
size_db.txt
fi
echo
"No file with size DB specified! Using default (
$size_db_file
)"
fi
if
!
[
-n
"
$size_info_file
"
]
;
then
if
!
[
-n
"
$size_info_file
"
]
;
then
size_info_file
=
size_info.txt
size_info_file
=
size_info.txt
echo
"No file with size info specified! Using default (
$size_info_file
)"
echo
"No file with size info specified! Using default (
$size_info_file
)"
fi
fi
fi
export
size_db_file
export
size_db_file
...
@@ -47,7 +56,9 @@ for c in $configs; do
...
@@ -47,7 +56,9 @@ for c in $configs; do
export
DEFCONFIG_NAME
export
DEFCONFIG_NAME
# Remove "# configuration written to .config" from output
# Remove "# configuration written to .config" from output
make
-s
|
grep
-v
'^#'
make
-s
|
grep
-v
'^#'
make makeall_copy
if
[
x
"
$compare_mode
"
=
x
"y"
]
;
then
make makeall_copy
fi
done
done
make
-s
clean
make
-s
clean
...
@@ -57,10 +68,12 @@ cp $TP ppsi/.config; rm $TP
...
@@ -57,10 +68,12 @@ cp $TP ppsi/.config; rm $TP
rm
$T
rm
$T
./compare_size.sh
if
[
x
"
$compare_mode
"
=
x
"y"
]
;
then
GIT_HASH
=
`
git log
--format
=
format:%H
-1
`
./compare_size.sh 1>&2
if
[
-f
"
$size_db_file
"
]
;
then
GIT_HASH
=
`
git log
--format
=
format:%H
-1
`
cat
"
$size_db_file
"
|
grep
-v
$GIT_HASH
>
"
$size_db_file
"
.tmp
if
[
-f
"
$size_db_file
"
]
;
then
mv
"
$size_db_file
"
.tmp
"
$size_db_file
"
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
fi
cat
"
$size_info_file
"
>>
"
$size_db_file
"
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