diff options
Diffstat (limited to 'scripts/autobuilder-worker-prereq-tests')
-rwxr-xr-x | scripts/autobuilder-worker-prereq-tests | 23 |
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 |
53 | fi | 55 | fi |
56 | OPEN_FILES=$(ulimit -n) | ||
57 | if (( $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 | ||
62 | fi | ||
63 | MAX_PROCESSES=$(ulimit -u) | ||
64 | if (( $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 | ||
69 | fi | ||
70 | |||
54 | mkdir -p tmp/deploy/images/qemux86-64 | 71 | mkdir -p tmp/deploy/images/qemux86-64 |
55 | pushd tmp/deploy/images/qemux86-64 | 72 | pushd tmp/deploy/images/qemux86-64 |
56 | if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then | 73 | if [ ! -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 |
58 | fi | 75 | fi |
59 | if [ ! -e core-image-minimal-qemux86-64.qemuboot.conf ]; then | 76 | if [ ! -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 |
61 | fi | 78 | fi |
62 | if [ ! -e bzImage-qemux86-64.bin ]; then | 79 | if [ ! -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 |
64 | fi | 81 | fi |
65 | popd | 82 | popd |
66 | bitbake qemu-helper-native | 83 | bitbake qemu-helper-native |