summaryrefslogtreecommitdiffstats
path: root/scripts/contrib/test_build_time_worker.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/contrib/test_build_time_worker.sh')
-rwxr-xr-xscripts/contrib/test_build_time_worker.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/scripts/contrib/test_build_time_worker.sh b/scripts/contrib/test_build_time_worker.sh
deleted file mode 100755
index a2879d2336..0000000000
--- a/scripts/contrib/test_build_time_worker.sh
+++ /dev/null
@@ -1,41 +0,0 @@
1#!/bin/bash
2#
3# Copyright OpenEmbedded Contributors
4#
5# SPDX-License-Identifier: GPL-2.0-only
6#
7# This is an example script to be used in conjunction with test_build_time.sh
8
9if [ "$TEST_BUILDDIR" = "" ] ; then
10 echo "TEST_BUILDDIR is not set"
11 exit 1
12fi
13
14buildsubdir=`basename $TEST_BUILDDIR`
15if [ ! -d $buildsubdir ] ; then
16 echo "Unable to find build subdir $buildsubdir in current directory"
17 exit 1
18fi
19
20if [ -f oe-init-build-env ] ; then
21 . ./oe-init-build-env $buildsubdir
22elif [ -f poky-init-build-env ] ; then
23 . ./poky-init-build-env $buildsubdir
24else
25 echo "Unable to find build environment setup script"
26 exit 1
27fi
28
29if [ -f ../meta/recipes-sato/images/core-image-sato.bb ] ; then
30 target="core-image-sato"
31else
32 target="poky-image-sato"
33fi
34
35echo "Build started at `date "+%Y-%m-%d %H:%M:%S"`"
36echo "bitbake $target"
37bitbake $target
38ret=$?
39echo "Build finished at `date "+%Y-%m-%d %H:%M:%S"`"
40exit $ret
41