summaryrefslogtreecommitdiffstats
path: root/scripts/autobuilder-worker-prereq-tests
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/autobuilder-worker-prereq-tests')
-rwxr-xr-xscripts/autobuilder-worker-prereq-tests28
1 files changed, 25 insertions, 3 deletions
diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests
index 5d7e6e2601..54fd3c1004 100755
--- a/scripts/autobuilder-worker-prereq-tests
+++ b/scripts/autobuilder-worker-prereq-tests
@@ -1,5 +1,7 @@
1#!/bin/bash 1#!/bin/bash
2# 2#
3# Copyright OpenEmbedded Contributors
4#
3# Script which can be run on new autobuilder workers to check all needed configuration is present. 5# Script which can be run on new autobuilder workers to check all needed configuration is present.
4# Designed to be run in a repo where bitbake/oe-core are already present. 6# Designed to be run in a repo where bitbake/oe-core are already present.
5# 7#
@@ -35,6 +37,11 @@ if [ "$?" != "0" ]; then
35 echo "Please set git config --global user.email" 37 echo "Please set git config --global user.email"
36 exit 1 38 exit 1
37fi 39fi
40python3 -c "import jinja2"
41if [ "$?" != "0" ]; then
42 echo "Please ensure jinja2 is available"
43 exit 1
44fi
38bitbake -p 45bitbake -p
39if [ "$?" != "0" ]; then 46if [ "$?" != "0" ]; then
40 echo "Bitbake parsing failed" 47 echo "Bitbake parsing failed"
@@ -46,16 +53,31 @@ if (( $WATCHES < 65000 )); then
46 echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' 53 echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf'
47 exit 1 54 exit 1
48fi 55fi
56OPEN_FILES=$(ulimit -n)
57if (( $OPEN_FILES < 65535 )); then
58 echo 'Increase maximum open files in /etc/security/limits.conf'
59 echo '* soft nofile 131072'
60 echo '* hard nofile 131072'
61 exit 1
62fi
63MAX_PROCESSES=$(ulimit -u)
64if (( $MAX_PROCESSES < 514542 )); then
65 echo 'Increase maximum user processes in /etc/security/limits.conf'
66 echo '* hard nproc 515294'
67 echo '* soft nproc 514543'
68 exit 1
69fi
70
49mkdir -p tmp/deploy/images/qemux86-64 71mkdir -p tmp/deploy/images/qemux86-64
50pushd tmp/deploy/images/qemux86-64 72pushd tmp/deploy/images/qemux86-64
51if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then 73if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then
52 wget http://downloads.yoctoproject.org/releases/yocto/yocto-2.5.1/machines/qemu/qemux86-64/core-image-minimal-qemux86-64.ext4 74 wget http://downloads.yoctoproject.org/releases/yocto/yocto-4.0/machines/qemu/qemux86-64/core-image-minimal-qemux86-64.ext4
53fi 75fi
54if [ ! -e core-image-minimal-qemux86-64.qemuboot.conf ]; then 76if [ ! -e core-image-minimal-qemux86-64.qemuboot.conf ]; then
55 wget http://downloads.yoctoproject.org/releases/yocto/yocto-2.5.1/machines/qemu/qemux86-64/core-image-minimal-qemux86-64.qemuboot.conf 77 wget http://downloads.yoctoproject.org/releases/yocto/yocto-4.0/machines/qemu/qemux86-64/core-image-minimal-qemux86-64.qemuboot.conf
56fi 78fi
57if [ ! -e bzImage-qemux86-64.bin ]; then 79if [ ! -e bzImage-qemux86-64.bin ]; then
58 wget http://downloads.yoctoproject.org/releases/yocto/yocto-2.5.1/machines/qemu/qemux86-64/bzImage-qemux86-64.bin 80 wget http://downloads.yoctoproject.org/releases/yocto/yocto-4.0/machines/qemu/qemux86-64/bzImage-qemux86-64.bin
59fi 81fi
60popd 82popd
61bitbake qemu-helper-native 83bitbake qemu-helper-native