direct-io.hg

annotate buildconfigs/enable-xen-config @ 15516:fa9fa5f98c91

Simplify Unisys ES7000 code in light of the fact we do not support
legacy boxes with very non-standard APIC setup.
From: Raj Subrahmanian <raj.subrahmanian@unisys.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Tue Jul 10 10:07:00 2007 +0100 (2007-07-10)
parents 224da1b2c5c2
children
rev   line source
ian@15505 1 #!/bin/sh
ian@15505 2
ian@15505 3 set -ex
ian@15505 4
ian@15505 5 if [ $# -ne 1 ] ; then
ian@15505 6 echo "Usage $(basename $0) <config-file>" 1>&2
ian@15505 7 exit 1
ian@15505 8 fi
ian@15505 9
ian@15505 10 CONFIG=$1
ian@15505 11
ian@15505 12 setopt()
ian@15505 13 {
ian@15505 14 OPTION=$1
ian@15505 15 VALUE=$2
ian@15505 16
ian@15505 17 # First remove any existing instances of this option
ian@15505 18 sed -e "s/^# ${OPTION} is not set$//g ; s/^^{OPTION}=.$//g" -i "${CONFIG}"
ian@15505 19
ian@15505 20 # Then append the new value
ian@15505 21 case ${VALUE} in
ian@15505 22 y|m) echo "${OPTION}=${VALUE}" >> "${CONFIG}" ;;
ian@15505 23 n) echo "# ${OPTION} is not set" >> "${CONFIG}" ;;
ian@15505 24 *) echo "Invalid value ${VALUE} for ${OPTION}" 1>&2 ; exit 1 ;;
ian@15505 25 esac
ian@15505 26 }
ian@15505 27
ian@15505 28 setopt CONFIG_PARAVIRT y
ian@15505 29 setopt CONFIG_XEN y
ian@15505 30 setopt CONFIG_VMI y
ian@15505 31 setopt CONFIG_LGUEST n
ian@15505 32 setopt CONFIG_XEN_BLKDEV_FRONTEND y
ian@15505 33 setopt CONFIG_XEN_NETDEV_FRONTEND y
ian@15505 34 setopt CONFIG_HVC_XEN y
ian@15505 35
ian@15505 36 exit 0