diff options
Diffstat (limited to 'scripts/contrib/test_build_time_worker.sh')
| -rwxr-xr-x | scripts/contrib/test_build_time_worker.sh | 41 |
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 | |||
| 9 | if [ "$TEST_BUILDDIR" = "" ] ; then | ||
| 10 | echo "TEST_BUILDDIR is not set" | ||
| 11 | exit 1 | ||
| 12 | fi | ||
| 13 | |||
| 14 | buildsubdir=`basename $TEST_BUILDDIR` | ||
| 15 | if [ ! -d $buildsubdir ] ; then | ||
| 16 | echo "Unable to find build subdir $buildsubdir in current directory" | ||
| 17 | exit 1 | ||
| 18 | fi | ||
| 19 | |||
| 20 | if [ -f oe-init-build-env ] ; then | ||
| 21 | . ./oe-init-build-env $buildsubdir | ||
| 22 | elif [ -f poky-init-build-env ] ; then | ||
| 23 | . ./poky-init-build-env $buildsubdir | ||
| 24 | else | ||
| 25 | echo "Unable to find build environment setup script" | ||
| 26 | exit 1 | ||
| 27 | fi | ||
| 28 | |||
| 29 | if [ -f ../meta/recipes-sato/images/core-image-sato.bb ] ; then | ||
| 30 | target="core-image-sato" | ||
| 31 | else | ||
| 32 | target="poky-image-sato" | ||
| 33 | fi | ||
| 34 | |||
| 35 | echo "Build started at `date "+%Y-%m-%d %H:%M:%S"`" | ||
| 36 | echo "bitbake $target" | ||
| 37 | bitbake $target | ||
| 38 | ret=$? | ||
| 39 | echo "Build finished at `date "+%Y-%m-%d %H:%M:%S"`" | ||
| 40 | exit $ret | ||
| 41 | |||
