Skip to content

Commit 2596c50

Browse files
ci: add yocto-pybootchartgui.sh
Signed-off-by: Ricardo Salveti <ricardo.salveti@oss.qualcomm.com>
1 parent 1421803 commit 2596c50

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

ci/yocto-pybootchartgui.sh

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/sh -e
2+
# Copyright (c) 2024 Qualcomm Innovation Center, Inc. All rights reserved.
3+
# SPDX-License-Identifier: MIT
4+
5+
if [ -z $1 ] || [ -z $2 ] ; then
6+
echo "The REPO_DIR or WORK_DIR is empty and it needs to point to the corresponding directories."
7+
echo "Please run it with:"
8+
echo " $0 REPO_DIR WORK_DIR"
9+
exit 1
10+
fi
11+
12+
REPO_DIR="$1"
13+
WORK_DIR="$2"
14+
15+
_is_dir(){
16+
test -d "$1" && return
17+
echo "The '$1' is not a directory."
18+
exit 1
19+
}
20+
21+
_is_dir "$REPO_DIR"
22+
_is_dir "$WORK_DIR"
23+
24+
# pybootchartgui tool
25+
CMD="$CMD $WORK_DIR/oe-core/scripts/pybootchartgui/pybootchartgui.py"
26+
# display time in minutes instead of seconds
27+
CMD="$CMD --minutes"
28+
# image format (png, svg, pdf); default format png
29+
CMD="$CMD --format=svg"
30+
# output path (file or directory) where charts are stored
31+
CMD="$CMD --output=buildchart"
32+
# /path/to/tmp/buildstats/<recipe-machine>/<BUILDNAME>/
33+
CMD="$CMD $WORK_DIR/build/tmp/buildstats"
34+
35+
exec $CMD

0 commit comments

Comments
 (0)