Do the usual stuffs for adding a new branch (ap-* cr-* etc).
Modify ts-xen-build so that it builds Xen with the specified ovmf tree
and revision.
Only build and test on x86 by modifying make-flight and mfi-common.
New branch is added to cr-daily-branch. It exports the tree and
changeset used for the test if set. Otherwise the values in Config.mk
are used.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
: ${PUSH_TREE_SEABIOS:=$XENBITS:/home/xen/git/osstest/seabios.git}
: ${BASE_TREE_SEABIOS:=git://xenbits.xen.org/osstest/seabios.git}
+: ${TREE_OVMF_UPSTREAM:=https://github.com/tianocore/edk2.git}
+: ${PUSH_TREE_OVMF:=$XENBITS:/home/xen/git/osstest/ovmf.git}
+: ${BASE_TREE_OVMF:=git://xenbits.xen.org/osstest/ovmf.git}
+
: ${TREE_LINUXFIRMWARE:=git://xenbits.xen.org/osstest/linux-firmware.git}
: ${PUSH_TREE_LINUXFIRMWARE:=$XENBITS:/home/osstest/ext/linux-firmware.git}
: ${UPSTREAM_TREE_LINUXFIRMWARE:=$GIT_KERNEL_ORG/pub/scm/linux/kernel/git/firmware/linux-firmware.git}
: ${LOCALREV_LIBVIRT:=daily-cron.$branch}
: ${LOCALREV_RUMPUSERXEN:=daily-cron.$branch}
: ${LOCALREV_SEABIOS:=daily-cron.$branch}
+: ${LOCALREV_OVMF:=daily-cron.$branch}
: ${TREEBASE_LINUX_XCP:=http://hg.uk.xensource.com/carbon/trunk/linux-2.6.27}
repo_tree_rev_fetch_git seabios \
$TREE_SEABIOS_UPSTREAM master $LOCALREV_SEABIOS
;;
+ovmf)
+ repo_tree_rev_fetch_git ovmf \
+ $TREE_OVMF_UPSTREAM master $LOCALREV_OVMF
+ ;;
osstest)
if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
git fetch $HOME/testing.git pretest:ap-fetch >&2
: ${BASE_LOCALREV_LIBVIRT:=daily-cron.$branch.old}
: ${BASE_LOCALREV_RUMPUSERXEN:=daily-cron.$branch.old}
: ${BASE_LOCALREV_SEABIOS:=daily-cron.$branch.old}
+: ${BASE_LOCALREV_OVMF:=daily-cron.$branch.old}
: ${BASE_TREE_QEMU_UPSTREAM:=${TREE_QEMU_UPSTREAM/\/staging\//\/}}
repo_tree_rev_fetch_git seabios \
$BASE_TREE_SEABIOS xen-tested-master $BASE_LOCALREV_SEABIOS
;;
+ovmf)
+ repo_tree_rev_fetch_git ovmf \
+ $BASE_TREE_OVMF xen-tested-master $BASE_LOCALREV_OVMF
+ ;;
osstest)
if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
git fetch -f $HOME/testing.git incoming:ap-fetch
seabios)
echo $TREE_SEABIOS_UPSTREAM
;;
+ovmf)
+ echo $TREE_OVMF_UPSTREAM
+ ;;
osstest)
echo none:;
;;
TREE_LIBVIRT=$PUSH_TREE_LIBVIRT
TREE_RUMPUSERXEN=$PUSH_TREE_RUMPUSERXEN
TREE_SEABIOS=$PUSH_TREE_SEABIOS
+TREE_OVMF=$PUSH_TREE_OVMF
if info_linux_tree "$branch"; then
cd $repos/linux
cd $repos/seabios
git push $TREE_SEABIOS $revision:refs/heads/xen-tested-master
;;
+ovmf)
+ cd $repos/ovmf
+ git push $TREE_OVMF $revision:refs/heads/xen-tested-master
+ ;;
osstest)
git push $HOME/testing.git $revision:incoming
git push $XENBITS:/home/xen/git/osstest.git $revision:master
: REVISION_SEABIOS from Config.mk
fi
fi
+if [ "x$REVISION_OVMF" = x ]; then
+ if [ "x$tree" = "xovmf" ]; then
+ TREE_OVMF=$TREE_OVMF_UPSTREAM
+ export TREE_OVMF
+ determine_version REVISION_OVMF ovmf OVMF
+ export REVISION_OVMF
+ else
+ : REVISION_OVMF from Config.mk
+ fi
+fi
if [ "x$REVISION_LIBVIRT" = x ]; then
determine_version REVISION_LIBVIRT libvirt LIBVIRT
export REVISION_LIBVIRT
realtree=seabios
NEW_REVISION=$REVISION_SEABIOS
;;
+ovmf)
+ realtree=ovmf
+ NEW_REVISION=$REVISION_OVMF
+ ;;
*)
NEW_REVISION=''
wantpush=false
LOGFILE=tmp/cr-for-branches.log
export LOGFILE
-: ${BRANCHES:=osstest xen-4.0-testing xen-4.1-testing xen-4.2-testing xen-4.3-testing xen-4.4-testing xen-4.5-testing xen-unstable qemu-mainline qemu-upstream-unstable qemu-upstream-4.2-testing qemu-upstream-4.3-testing qemu-upstream-4.4-testing qemu-upstream-4.5-testing linux-3.14 linux-3.10 linux-3.4 linux-arm-xen seabios ${EXTRA_BRANCHES}}
+: ${BRANCHES:=osstest xen-4.0-testing xen-4.1-testing xen-4.2-testing xen-4.3-testing xen-4.4-testing xen-4.5-testing xen-unstable qemu-mainline qemu-upstream-unstable qemu-upstream-4.2-testing qemu-upstream-4.3-testing qemu-upstream-4.4-testing qemu-upstream-4.5-testing linux-3.14 linux-3.10 linux-3.4 linux-arm-xen seabios ovmf ${EXTRA_BRANCHES}}
export BRANCHES
fetchwlem=$wlem
libvirt) tree=libvirt; xenbranch=xen-unstable ;;
rumpuserxen) tree=rumpuserxen; xenbranch=xen-unstable ;;
seabios) tree=seabios; xenbranch=xen-unstable ;;
+ ovmf) tree=ovmf; xenbranch=xen-unstable ;;
osstest) tree=osstest; xenbranch=xen-unstable ;;
esac
if [ "x$tree" = xlinux ]; then
*) return 1;;
esac
;;
+ ovmf)
+ case $xenarch in
+ amd64|i386) ;;
+ *) return 1;;
+ esac
+ ;;
*)
case "$job" in
*-qemuu-*)
qemu-upstream-4.4-testing) continue;;
rumpuserxen) continue;;
seabios) continue;;
+ ovmf) continue;;
esac
case "$xenbranch" in
xen-3.*-testing) continue;;
tree_qemuu=$TREE_QEMU_UPSTREAM \
tree_xen=$TREE_XEN \
tree_seabios=$TREE_SEABIOS \
+ tree_ovmf=$TREE_OVMF \
$RUNVARS $BUILD_RUNVARS $BUILD_XEN_RUNVARS $arch_runvars \
$suite_runvars \
host_hostflags=$build_hostflags \
revision_xen=$REVISION_XEN \
revision_qemu=$REVISION_QEMU \
revision_qemuu=$REVISION_QEMU_UPSTREAM \
- revision_seabios=$REVISION_SEABIOS
+ revision_seabios=$REVISION_SEABIOS \
+ revision_ovmf=$REVISION_OVMF
if [ $build_extraxend = "true" ] ; then
./cs-job-create $flight build-$arch-xend build \
END
(nonempty($r{revision_seabios}) ? <<END : '').
echo >>.config SEABIOS_UPSTREAM_TAG='$r{revision_seabios}'
+END
+ (nonempty($r{tree_ovmf}) ? <<END : '').
+ echo >>.config OVMF_UPSTREAM_URL='$r{tree_ovmf}'
+END
+ (nonempty($r{revision_ovmf}) ? <<END : '').
+ echo >>.config OVMF_UPSTREAM_REVISION='$r{revision_ovmf}'
END
(nonempty($earlyprintk) ? <<END : '').
echo >>.config CONFIG_EARLY_PRINTK=$earlyprintk