diff options
Diffstat (limited to 'scripts/autobuilder-worker-prereq-tests')
-rwxr-xr-x | scripts/autobuilder-worker-prereq-tests | 28 |
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 |
37 | fi | 39 | fi |
40 | python3 -c "import jinja2" | ||
41 | if [ "$?" != "0" ]; then | ||
42 | echo "Please ensure jinja2 is available" | ||
43 | exit 1 | ||
44 | fi | ||
38 | bitbake -p | 45 | bitbake -p |
39 | if [ "$?" != "0" ]; then | 46 | if [ "$?" != "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 |
48 | 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 | |||
49 | mkdir -p tmp/deploy/images/qemux86-64 | 71 | mkdir -p tmp/deploy/images/qemux86-64 |
50 | pushd tmp/deploy/images/qemux86-64 | 72 | pushd tmp/deploy/images/qemux86-64 |
51 | if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then | 73 | if [ ! -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 |
53 | fi | 75 | fi |
54 | if [ ! -e core-image-minimal-qemux86-64.qemuboot.conf ]; then | 76 | if [ ! -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 |
56 | fi | 78 | fi |
57 | if [ ! -e bzImage-qemux86-64.bin ]; then | 79 | if [ ! -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 |
59 | fi | 81 | fi |
60 | popd | 82 | popd |
61 | bitbake qemu-helper-native | 83 | bitbake qemu-helper-native |