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-tests23
1 files changed, 20 insertions, 3 deletions
diff --git a/scripts/autobuilder-worker-prereq-tests b/scripts/autobuilder-worker-prereq-tests
index 82e9a77bd5..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#
@@ -51,16 +53,31 @@ if (( $WATCHES < 65000 )); then
51 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'
52 exit 1 54 exit 1
53fi 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
54mkdir -p tmp/deploy/images/qemux86-64 71mkdir -p tmp/deploy/images/qemux86-64
55pushd tmp/deploy/images/qemux86-64 72pushd tmp/deploy/images/qemux86-64
56if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then 73if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then
57 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
58fi 75fi
59if [ ! -e core-image-minimal-qemux86-64.qemuboot.conf ]; then 76if [ ! -e core-image-minimal-qemux86-64.qemuboot.conf ]; then
60 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
61fi 78fi
62if [ ! -e bzImage-qemux86-64.bin ]; then 79if [ ! -e bzImage-qemux86-64.bin ]; then
63 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
64fi 81fi
65popd 82popd
66bitbake qemu-helper-native 83bitbake qemu-helper-native