yocto-autobuilder-helper/scripts/setup-auh
Alexander Kanavin cfa62a586a scripts: add a pair of scripts to set up and run Auto Upgrade Helper
This allows automating its setup and execution on all autobuilder worker machines;
previously there was a static setup on a dedicated machine, which wasn't
great from maintenance perspective.

To use:

scripts/setup-auh target_dir
scripts/run-auh target_dir

(run-auh can be run several times in a directory that
was previously set up)

Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-05-17 16:57:25 +01:00

625 B
Executable File

#!/bin/bash

Initialize Auto Upgrade Helper in a directory.

Called with $1 - the directory to place the setup

CONFIG_DIR=dirname $0/auh-config

if [ -z $1 ]; then echo "Use: $0 target_dir" exit 1 fi

mkdir -p $1 pushd $1

git clone git://git.yoctoproject.org/poky pushd poky git config user.email auh@auh.yoctoproject.org git config user.name "Auto Upgrade Helper" popd git clone git://git.yoctoproject.org/auto-upgrade-helper source poky/oe-init-build-env build mkdir -p upgrade-helper popd

cp $CONFIG_DIR/upgrade-helper.conf $1/build/upgrade-helper cat $CONFIG_DIR/local.conf.append >> $1/build/conf/local.conf