ia64/xen-unstable

view buildconfigs/enable-xen-config @ 19510:accf139b2eb9

tools/misc: Remove some obsolete scripts.

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Apr 06 21:12:33 2009 +0100 (2009-04-06)
parents f87d008bd011
children 7f9286d21706
line source
1 #!/bin/sh
3 set -e
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 n) echo "# ${OPTION} is not set" >> "${CONFIG}" ;;
23 y|m|*) echo "${OPTION}=${VALUE}" >> "${CONFIG}" ;;
24 esac
25 }
27 setopt CONFIG_PARAVIRT y
28 setopt CONFIG_PARAVIRT_DEBUG y
29 setopt CONFIG_PARAVIRT_GUEST y
31 setopt CONFIG_XEN y
32 setopt CONFIG_XEN_BLKDEV_FRONTEND y
33 setopt CONFIG_XEN_NETDEV_FRONTEND y
34 setopt CONFIG_XEN_KBDDEV_FRONTEND y
35 setopt CONFIG_XEN_FBDEV_FRONTEND y
36 setopt CONFIG_XEN_BALLOON y
37 setopt CONFIG_XEN_SCRUB_PAGES y
38 setopt CONFIG_XEN_DEV_EVTCHN y
39 setopt CONFIG_XEN_BACKEND y
40 setopt CONFIG_XEN_BLKDEV_BACKEND y
41 setopt CONFIG_XEN_NETDEV_BACKEND y
42 setopt CONFIG_XENFS y
43 setopt CONFIG_XEN_COMPAT_XENFS y
44 setopt CONFIG_HVC_XEN y
45 setopt CONFIG_XEN_MAX_DOMAIN_MEMORY 32
46 setopt CONFIG_XEN_DEBUG_FS y
47 setopt CONFIG_XEN_DOM0 y
49 setopt CONFIG_VMI y
51 setopt CONFIG_KVM y
52 setopt CONFIG_KVM_INTEL y
53 setopt CONFIG_KVM_AMD y
54 setopt CONFIG_KVM_CLOCK y
55 setopt CONFIG_KVM_GUEST n
56 setopt CONFIG_KVM_TRACE n
58 setopt CONFIG_LGUEST n
60 setopt CONFIG_LOCALVERSION_AUTO n
62 # Should all be set one way or another in defconfig but aren't
63 setopt CONFIG_NUMA n
64 setopt CONFIG_X86_VSMP n
65 setopt CONFIG_X86_UV n
66 setopt CONFIG_CALGARY_IOMMU n
67 setopt CONFIG_AMD_IOMMU n
68 setopt CONFIG_MAXSMP n
69 setopt CONFIG_SPARSEMEM_VMEMMAP n
70 setopt CONFIG_I7300_IDLE n
71 setopt CONFIG_DMAR n
72 setopt CONFIG_INTR_REMAP n
73 setopt CONFIG_GFS2_FS n
74 setopt CONFIG_IOMMU_DEBUG n
76 case ${XEN_TARGET_ARCH} in
77 x86_32) setopt CONFIG_64BIT n ;;
78 x86_64)
79 setopt CONFIG_64BIT y
80 setopt CONFIG_IA32_EMULATION y
81 setopt CONFIG_IA32_AOUT n
82 setopt CONFIG_CRYPTO_AES_X86_64 n
83 setopt CONFIG_CRYPTO_SALSA20_X86_64 n
84 setopt CONFIG_CRYPTO_TWOFISH_X86_64 n
85 ;;
86 *) ;;
87 esac
89 exit 0