buildstats-plot.sh: fix invoking buildstats.sh

Fix the internal call to buildstats.sh by also providing
the buildstats folder location in the system, which might
differ from the default location.

(From OE-Core rev: 9f4ee2ee8712528ac51ef4ecd17ccde737e8b21d)

Signed-off-by: Luis Martins <luis.martins@criticaltechworks.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Luis Martins 2020-03-24 11:33:09 +00:00 committed by Richard Purdie
parent 3aba12edbb
commit 5ea725cd5a

View File

@ -101,7 +101,7 @@ CD=$(dirname $0)
# Parse buildstats recipes to produce a single table
OUTBUILDSTATS="$PWD/buildstats.log"
$CD/buildstats.sh -H -s "$STATS" -H > $OUTBUILDSTATS
$CD/buildstats.sh -b "$BS_DIR" -s "$STATS" -H > $OUTBUILDSTATS
# Get headers
HEADERS=$(cat $OUTBUILDSTATS | sed -n -e '1s/ /-/g' -e '1s/:/ /gp')