ia64/xen-unstable

view buildconfigs/enable-xen-config @ 16682:7515dc56c124

[IA64] Sort out the XEN_IA64_OPTF_IDENT_MAP_REG[457] constants confusion

Currently the constants are used for two different purpose.
one is for the OPTF hypercall sub command.
another is bit flag for struct opt_feature::mask.
They are different spaces, split them out.

Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
author Alex Williamson <alex.williamson@hp.com>
date Sun Dec 30 13:02:16 2007 -0700 (2007-12-30)
parents 0eaa9f605b92
children 419a141ca16d
line source
1 #!/bin/sh
3 set -ex
5 if [ $# -ne 1 ] ; then
6 echo "Usage $(basename $0) <config-file>" 1>&2
7 exit 1
8 fi
10 CONFIG=$1
12 setopt()
13 {
14 OPTION=$1
15 VALUE=$2
17 # First remove any existing instances of this option
18 sed -e "s/^# ${OPTION} is not set$//g ; s/^^{OPTION}=.$//g" -i "${CONFIG}"
20 # Then append the new value
21 case ${VALUE} in
22 y|m) echo "${OPTION}=${VALUE}" >> "${CONFIG}" ;;
23 n) echo "# ${OPTION} is not set" >> "${CONFIG}" ;;
24 *) echo "Invalid value ${VALUE} for ${OPTION}" 1>&2 ; exit 1 ;;
25 esac
26 }
28 setopt CONFIG_PARAVIRT y
29 setopt CONFIG_XEN y
30 setopt CONFIG_VMI y
31 setopt CONFIG_KVM y
32 setopt CONFIG_KVM_INTEL y
33 setopt CONFIG_KVM_AMD y
34 setopt CONFIG_LGUEST n
35 setopt CONFIG_XEN_BLKDEV_FRONTEND y
36 setopt CONFIG_XEN_NETDEV_FRONTEND y
37 setopt CONFIG_HVC_XEN y
38 setopt CONFIG_NUMA n
40 exit 0