
This adds SPDX license headers in place of the wide assortment of things currently in our script headers. We default to GPL-2.0-only except for the oeqa code where it was clearly submitted and marked as MIT on the most part or some scripts which had the "or later" GPL versioning. The patch also drops other obsolete bits of file headers where they were encoountered such as editor modelines, obsolete maintainer information or the phrase "All rights reserved" which is now obsolete and not required in copyright headers (in this case its actually confusing for licensing as all rights were not reserved). More work is needed for OE-Core but this takes care of the bulk of the scripts and meta/lib directories. The top level LICENSE files are tweaked to match the new structure and the SPDX naming. (From OE-Core rev: f8c9c511b5f1b7dbd45b77f345cb6c048ae6763e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2.2 KiB
Executable File
#!/bin/bash
Script which can be run on new autobuilder workers to check all needed configuration is present.
Designed to be run in a repo where bitbake/oe-core are already present.
SPDX-License-Identifier: GPL-2.0-only
Todo
Add testtools/subunit import test
Add python3-git test
Add pigz test
vnc tests/checkvnc?
test sendmail works (for QA email notification)
test error report submission works
test buildistory git repo works?
if [ ! -x $HOME/yocto-autobuilder-helper/scripts/checkvnc ]; then echo "$HOME/yocto-autobuilder-helper should be created." exit 1 fi $HOME/yocto-autobuilder-helper/scripts/checkvnc
. ./oe-init-build-env > /dev/null if [ "$?" != "0" ]; then exit 1 fi git config --global user.name > /dev/null if [ "$?" != "0" ]; then echo "Please set git config --global user.name" exit 1 fi git config --global user.email > /dev/null if [ "$?" != "0" ]; then echo "Please set git config --global user.email" exit 1 fi bitbake -p if [ "$?" != "0" ]; then echo "Bitbake parsing failed" exit 1 fi
WATCHES=$(PATH="/sbin:/usr/sbin:$PATH" sysctl fs.inotify.max_user_watches -n) if (( $WATCHES < 65000 )); then echo 'Need to increase watches (echo fs.inotify.max_user_watches=65536 | sudo tee -a /etc/sysctl.conf' exit 1 fi mkdir -p tmp/deploy/images/qemux86-64 pushd tmp/deploy/images/qemux86-64 if [ ! -e core-image-minimal-qemux86-64.ext4 ]; then wget http://downloads.yoctoproject.org/releases/yocto/yocto-2.5.1/machines/qemu/qemux86-64/core-image-minimal-qemux86-64.ext4 fi if [ ! -e core-image-minimal-qemux86-64.qemuboot.conf ]; then wget http://downloads.yoctoproject.org/releases/yocto/yocto-2.5.1/machines/qemu/qemux86-64/core-image-minimal-qemux86-64.qemuboot.conf fi if [ ! -e bzImage-qemux86-64.bin ]; then wget http://downloads.yoctoproject.org/releases/yocto/yocto-2.5.1/machines/qemu/qemux86-64/bzImage-qemux86-64.bin fi popd bitbake qemu-helper-native DISPLAY=:1 runqemu serialstdio qemux86-64 if [ "$?" != "0" ]; then echo "Unable to use runqemu" exit 1 fi DISPLAY=:1 runqemu serialstdio qemux86-64 kvm if [ "$?" != "0" ]; then echo "Unable to use runqemu with kvm" exit 1 fi