ia64/xen-unstable

changeset 11951:8bd3107a72f0

Add configuration data for powerpc.

Allows for building of initrd, and running of tests.

Signed-off-by: Tony Breeds <tony@bakeyournoodle.com>
author Ewan Mellor <ewan@xensource.com>
date Mon Oct 23 10:15:39 2006 +0100 (2006-10-23)
parents 4d5e9f9caed2
children 1c74ee519776
files tools/xm-test/lib/XmTestLib/arch.py tools/xm-test/lib/XmTestReport/arch.py tools/xm-test/ramdisk/configs/buildroot-powerpc
line diff
     1.1 --- a/tools/xm-test/lib/XmTestLib/arch.py	Mon Oct 23 10:14:13 2006 +0100
     1.2 +++ b/tools/xm-test/lib/XmTestLib/arch.py	Mon Oct 23 10:15:39 2006 +0100
     1.3 @@ -80,6 +80,26 @@ ia_HVMDefaults =      {"memory"       : 
     1.4  }
     1.5  # End  : Intel ia32 and ia64 as well as AMD 32-bit and 64-bit processors
     1.6  
     1.7 +# Begin: PowerPC
     1.8 +def ppc_minSafeMem():
     1.9 +    return 64
    1.10 +
    1.11 +def ppc_getDefaultKernel():
    1.12 +    """Get the path to the default DomU kernel"""
    1.13 +    dom0Ver = commands.getoutput("uname -r");
    1.14 +    domUVer = dom0Ver.replace("xen0", "xenU");
    1.15 +
    1.16 +    return "/boot/vmlinux-" + domUVer;
    1.17 +
    1.18 +ppc_ParavirtDefaults = {"memory"  : 64,
    1.19 +                        "vcpus"   : 1,
    1.20 +                        "kernel"  : ppc_getDefaultKernel(),
    1.21 +                        "root"    : "/dev/ram0",
    1.22 +                        "ramdisk" : getRdPath() + "/initrd.img",
    1.23 +                        "extra"   : "xencons=tty128 console=tty128",
    1.24 +}
    1.25 +# End  : PowerPC
    1.26 +
    1.27  """Convert from uname specification to a more general platform."""
    1.28  _uname_to_arch_map = {
    1.29      "i386"  : "x86",
    1.30 @@ -87,6 +107,8 @@ ia_HVMDefaults =      {"memory"       : 
    1.31      "i586"  : "x86",
    1.32      "i686"  : "x86",
    1.33      "ia64"  : "ia64",
    1.34 +    "ppc"   : "powerpc",
    1.35 +    "ppc64" : "powerpc",
    1.36  }
    1.37  
    1.38  # Lookup current platform.
    1.39 @@ -98,5 +120,9 @@ if _arch == "x86" or _arch == "ia64":
    1.40          configDefaults = ia_HVMDefaults
    1.41      else:
    1.42          configDefaults = ia_ParavirtDefaults
    1.43 +elif _arch == "powerpc":
    1.44 +    minSafeMem = ppc_minSafeMem
    1.45 +    getDefaultKernel = ppc_getDefaultKernel
    1.46 +    configDefaults = ppc_ParavirtDefaults
    1.47  else:
    1.48      raise ValueError, "Unknown architecture!"
     2.1 --- a/tools/xm-test/lib/XmTestReport/arch.py	Mon Oct 23 10:14:13 2006 +0100
     2.2 +++ b/tools/xm-test/lib/XmTestReport/arch.py	Mon Oct 23 10:15:39 2006 +0100
     2.3 @@ -29,6 +29,8 @@ import os
     2.4      "i586"  : "x86",
     2.5      "i686"  : "x86",
     2.6      "ia64"  : "ia64",
     2.7 +    "ppc"   : "powerpc",
     2.8 +    "ppc64" : "powerpc",
     2.9  }
    2.10  
    2.11  _arch = _uname_to_arch_map.get(os.uname()[4], "Unknown")
    2.12 @@ -38,5 +40,9 @@ if _arch == "x86":
    2.13  elif _arch == "ia64":
    2.14      cpuValues = {"arch"     : "Unknown",
    2.15                   "features" : "Unknown"}
    2.16 +elif _arch == "powerpc":
    2.17 +    cpuValues = {"cpu"      : "Unknown",
    2.18 +                 "platform" : "Unknown",
    2.19 +                 "revision" : "Unknown"}
    2.20  else:
    2.21      raise ValueError, "Unknown architecture!"
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/tools/xm-test/ramdisk/configs/buildroot-powerpc	Mon Oct 23 10:15:39 2006 +0100
     3.3 @@ -0,0 +1,334 @@
     3.4 +#
     3.5 +# Automatically generated make config: don't edit
     3.6 +#
     3.7 +BR2_HAVE_DOT_CONFIG=y
     3.8 +# BR2_alpha is not set
     3.9 +# BR2_arm is not set
    3.10 +# BR2_armeb is not set
    3.11 +# BR2_cris is not set
    3.12 +# BR2_i386 is not set
    3.13 +# BR2_m68k is not set
    3.14 +# BR2_mips is not set
    3.15 +# BR2_mipsel is not set
    3.16 +# BR2_nios2 is not set
    3.17 +BR2_powerpc=y
    3.18 +# BR2_sh is not set
    3.19 +# BR2_sh64 is not set
    3.20 +# BR2_sparc is not set
    3.21 +# BR2_x86_64 is not set
    3.22 +# BR2_x86_i386 is not set
    3.23 +# BR2_x86_i486 is not set
    3.24 +# BR2_x86_i586 is not set
    3.25 +# BR2_x86_i686 is not set
    3.26 +BR2_ARCH="powerpc"
    3.27 +BR2_ENDIAN="BIG"
    3.28 +
    3.29 +#
    3.30 +# Build options
    3.31 +#
    3.32 +BR2_WGET="wget --passive-ftp"
    3.33 +BR2_SVN="svn co"
    3.34 +BR2_TAR_OPTIONS=""
    3.35 +BR2_DL_DIR="$(BASE_DIR)/dl"
    3.36 +BR2_SOURCEFORGE_MIRROR="easynews"
    3.37 +BR2_STAGING_DIR="$(BUILD_DIR)/staging_dir"
    3.38 +BR2_TOPDIR_PREFIX=""
    3.39 +BR2_TOPDIR_SUFFIX=""
    3.40 +BR2_GNU_BUILD_SUFFIX="pc-linux-gnu"
    3.41 +BR2_GNU_TARGET_SUFFIX="linux-uclibc"
    3.42 +BR2_JLEVEL=1
    3.43 +
    3.44 +#
    3.45 +# Toolchain Options
    3.46 +#
    3.47 +
    3.48 +#
    3.49 +# Kernel Header Options
    3.50 +#
    3.51 +# BR2_KERNEL_HEADERS_2_4_25 is not set
    3.52 +# BR2_KERNEL_HEADERS_2_4_27 is not set
    3.53 +# BR2_KERNEL_HEADERS_2_4_29 is not set
    3.54 +# BR2_KERNEL_HEADERS_2_4_31 is not set
    3.55 +# BR2_KERNEL_HEADERS_2_6_9 is not set
    3.56 +# BR2_KERNEL_HEADERS_2_6_11 is not set
    3.57 +BR2_KERNEL_HEADERS_2_6_12=y
    3.58 +BR2_DEFAULT_KERNEL_HEADERS="2.6.12"
    3.59 +
    3.60 +#
    3.61 +# uClibc Options
    3.62 +#
    3.63 +# BR2_UCLIBC_VERSION_SNAPSHOT is not set
    3.64 +# BR2_ENABLE_LOCALE is not set
    3.65 +# BR2_PTHREADS_NONE is not set
    3.66 +# BR2_PTHREADS is not set
    3.67 +BR2_PTHREADS_OLD=y
    3.68 +# BR2_PTHREADS_NATIVE is not set
    3.69 +
    3.70 +#
    3.71 +# Binutils Options
    3.72 +#
    3.73 +# BR2_BINUTILS_VERSION_2_14_90_0_8 is not set
    3.74 +# BR2_BINUTILS_VERSION_2_15 is not set
    3.75 +# BR2_BINUTILS_VERSION_2_15_94_0_2_2 is not set
    3.76 +# BR2_BINUTILS_VERSION_2_16_1 is not set
    3.77 +# BR2_BINUTILS_VERSION_2_16_90_0_3 is not set
    3.78 +# BR2_BINUTILS_VERSION_2_16_91_0_5 is not set
    3.79 +# BR2_BINUTILS_VERSION_2_16_91_0_6 is not set
    3.80 +# BR2_BINUTILS_VERSION_2_16_91_0_7 is not set
    3.81 +BR2_BINUTILS_VERSION_2_17=y
    3.82 +# BR2_BINUTILS_VERSION_2_17_50_0_2 is not set
    3.83 +# BR2_BINUTILS_VERSION_2_17_50_0_3 is not set
    3.84 +BR2_BINUTILS_VERSION="2.17"
    3.85 +BR2_EXTRA_BINUTILS_CONFIG_OPTIONS=""
    3.86 +
    3.87 +#
    3.88 +# Gcc Options
    3.89 +#
    3.90 +# BR2_GCC_VERSION_3_3_5 is not set
    3.91 +# BR2_GCC_VERSION_3_3_6 is not set
    3.92 +BR2_GCC_VERSION_3_4_2=y
    3.93 +# BR2_GCC_VERSION_3_4_3 is not set
    3.94 +# BR2_GCC_VERSION_3_4_4 is not set
    3.95 +# BR2_GCC_VERSION_3_4_5 is not set
    3.96 +# BR2_GCC_VERSION_3_4_6 is not set
    3.97 +# BR2_GCC_VERSION_4_0_0 is not set
    3.98 +# BR2_GCC_VERSION_4_0_1 is not set
    3.99 +# BR2_GCC_VERSION_4_0_2 is not set
   3.100 +# BR2_GCC_VERSION_4_0_3 is not set
   3.101 +# BR2_GCC_VERSION_4_1_0 is not set
   3.102 +# BR2_GCC_VERSION_4_1_1 is not set
   3.103 +# BR2_GCC_VERSION_4_2 is not set
   3.104 +# BR2_GCC_IS_SNAP is not set
   3.105 +BR2_GCC_VERSION="3.4.2"
   3.106 +# BR2_GCC_USE_SJLJ_EXCEPTIONS is not set
   3.107 +BR2_EXTRA_GCC_CONFIG_OPTIONS=""
   3.108 +# BR2_INSTALL_LIBSTDCPP is not set
   3.109 +# BR2_INSTALL_OBJC is not set
   3.110 +
   3.111 +#
   3.112 +# Ccache Options
   3.113 +#
   3.114 +BR2_CCACHE=y
   3.115 +
   3.116 +#
   3.117 +# Gdb Options
   3.118 +#
   3.119 +# BR2_PACKAGE_GDB is not set
   3.120 +# BR2_PACKAGE_GDB_SERVER is not set
   3.121 +# BR2_PACKAGE_GDB_HOST is not set
   3.122 +
   3.123 +#
   3.124 +# elf2flt
   3.125 +#
   3.126 +# BR2_ELF2FLT is not set
   3.127 +# BR2_MKLIBS is not set
   3.128 +
   3.129 +#
   3.130 +# Common Toolchain Options
   3.131 +#
   3.132 +# BR2_PACKAGE_SSTRIP_TARGET is not set
   3.133 +# BR2_PACKAGE_SSTRIP_HOST is not set
   3.134 +BR2_ENABLE_MULTILIB=y
   3.135 +BR2_LARGEFILE=y
   3.136 +# BR2_SOFT_FLOAT is not set
   3.137 +BR2_TARGET_OPTIMIZATION="-Os -pipe"
   3.138 +BR2_CROSS_TOOLCHAIN_TARGET_UTILS=y
   3.139 +
   3.140 +#
   3.141 +# Package Selection for the target
   3.142 +#
   3.143 +
   3.144 +#
   3.145 +# The default minimal system
   3.146 +#
   3.147 +BR2_PACKAGE_BUSYBOX=y
   3.148 +# BR2_PACKAGE_BUSYBOX_SNAPSHOT is not set
   3.149 +BR2_PACKAGE_BUSYBOX_INSTALL_SYMLINKS=y
   3.150 +BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox.config"
   3.151 +
   3.152 +#
   3.153 +# The minimum needed to build a uClibc development system
   3.154 +#
   3.155 +# BR2_PACKAGE_BASH is not set
   3.156 +# BR2_PACKAGE_BZIP2 is not set
   3.157 +# BR2_PACKAGE_COREUTILS is not set
   3.158 +# BR2_PACKAGE_DIFFUTILS is not set
   3.159 +# BR2_PACKAGE_ED is not set
   3.160 +# BR2_PACKAGE_FINDUTILS is not set
   3.161 +# BR2_PACKAGE_FLEX is not set
   3.162 +# BR2_PACKAGE_GAWK is not set
   3.163 +# BR2_PACKAGE_GCC_TARGET is not set
   3.164 +# BR2_PACKAGE_CCACHE_TARGET is not set
   3.165 +# BR2_PACKAGE_GREP is not set
   3.166 +# BR2_PACKAGE_MAKE is not set
   3.167 +# BR2_PACKAGE_PATCH is not set
   3.168 +# BR2_PACKAGE_SED is not set
   3.169 +# BR2_PACKAGE_TAR is not set
   3.170 +
   3.171 +#
   3.172 +# Other stuff
   3.173 +#
   3.174 +# BR2_PACKAGE_ACPID is not set
   3.175 +# BR2_PACKAGE_ASTERISK is not set
   3.176 +# BR2_PACKAGE_AT is not set
   3.177 +# BR2_PACKAGE_AUTOCONF is not set
   3.178 +# BR2_PACKAGE_AUTOMAKE is not set
   3.179 +# BR2_PACKAGE_BERKELEYDB is not set
   3.180 +# BR2_PACKAGE_BIND is not set
   3.181 +# BR2_PACKAGE_BISON is not set
   3.182 +# BR2_PACKAGE_BOA is not set
   3.183 +# BR2_PACKAGE_BRIDGE is not set
   3.184 +# BR2_PACKAGE_CUSTOMIZE is not set
   3.185 +# BR2_PACKAGE_ISC_DHCP is not set
   3.186 +# BR2_PACKAGE_DIALOG is not set
   3.187 +# BR2_PACKAGE_DIRECTFB is not set
   3.188 +# BR2_PACKAGE_DISTCC is not set
   3.189 +# BR2_PACKAGE_DM is not set
   3.190 +# BR2_PACKAGE_DMRAID is not set
   3.191 +# BR2_PACKAGE_DNSMASQ is not set
   3.192 +# BR2_PACKAGE_DROPBEAR is not set
   3.193 +# BR2_PACKAGE_ETHTOOL is not set
   3.194 +# BR2_PACKAGE_EXPAT is not set
   3.195 +# BR2_PACKAGE_E2FSPROGS is not set
   3.196 +# BR2_PACKAGE_FAKEROOT is not set
   3.197 +# BR2_PACKAGE_FILE is not set
   3.198 +# BR2_PACKAGE_FREETYPE is not set
   3.199 +# BR2_PACKAGE_GETTEXT is not set
   3.200 +# BR2_PACKAGE_LIBINTL is not set
   3.201 +# BR2_PACKAGE_GZIP is not set
   3.202 +# BR2_PACKAGE_HASERL is not set
   3.203 +# BR2_PACKAGE_HDPARM is not set
   3.204 +# BR2_PACKAGE_HOSTAP is not set
   3.205 +# BR2_PACKAGE_HOTPLUG is not set
   3.206 +# BR2_PACKAGE_IOSTAT is not set
   3.207 +# BR2_PACKAGE_IPROUTE2 is not set
   3.208 +# BR2_PACKAGE_IPSEC_TOOLS is not set
   3.209 +# BR2_PACKAGE_IPTABLES is not set
   3.210 +# BR2_PACKAGE_JPEG is not set
   3.211 +# BR2_PACKAGE_LESS is not set
   3.212 +# BR2_PACKAGE_LIBCGI is not set
   3.213 +# BR2_PACKAGE_LIBCGICC is not set
   3.214 +# BR2_PACKAGE_LIBELF is not set
   3.215 +# BR2_PACKAGE_LIBFLOAT is not set
   3.216 +# BR2_PACKAGE_LIBGLIB12 is not set
   3.217 +# BR2_PACKAGE_LIBMAD is not set
   3.218 +# BR2_PACKAGE_LIBPCAP is not set
   3.219 +# BR2_PACKAGE_LIBPNG is not set
   3.220 +# BR2_PACKAGE_LIBSYSFS is not set
   3.221 +# BR2_PACKAGE_LIBTOOL is not set
   3.222 +# BR2_PACKAGE_LIBUSB is not set
   3.223 +# BR2_PACKAGE_LIGHTTPD is not set
   3.224 +# BR2_PACKAGE_LINKS is not set
   3.225 +# BR2_PACKAGE_LRZSZ is not set
   3.226 +# BR2_PACKAGE_LSOF is not set
   3.227 +# BR2_PACKAGE_LTP-TESTSUITE is not set
   3.228 +# BR2_PACKAGE_LTT is not set
   3.229 +# BR2_PACKAGE_LVM2 is not set
   3.230 +# BR2_PACKAGE_LZO is not set
   3.231 +# BR2_PACKAGE_LZMA is not set
   3.232 +# BR2_PACKAGE_M4 is not set
   3.233 +# BR2_PACKAGE_MDADM is not set
   3.234 +# BR2_PACKAGE_MEMTESTER is not set
   3.235 +# BR2_PACKAGE_MICROCOM is not set
   3.236 +# BR2_PACKAGE_MICROPERL is not set
   3.237 +# BR2_PACKAGE_MICROWIN is not set
   3.238 +# BR2_PACKAGE_MKDOSFS is not set
   3.239 +# BR2_PACKAGE_MODULE_INIT_TOOLS is not set
   3.240 +# BR2_PACKAGE_MODUTILS is not set
   3.241 +# BR2_PACKAGE_MPG123 is not set
   3.242 +# BR2_PACKAGE_MROUTED is not set
   3.243 +# BR2_PACKAGE_MTD is not set
   3.244 +# BR2_PACKAGE_NANO is not set
   3.245 +# BR2_PACKAGE_NCURSES is not set
   3.246 +# BR2_PACKAGE_NETKITBASE is not set
   3.247 +# BR2_PACKAGE_NETKITTELNET is not set
   3.248 +# BR2_PACKAGE_NETSNMP is not set
   3.249 +# BR2_PACKAGE_NEWT is not set
   3.250 +# BR2_PACKAGE_NTP is not set
   3.251 +# BR2_PACKAGE_OPENNTPD is not set
   3.252 +# BR2_PACKAGE_OPENSSH is not set
   3.253 +# BR2_PACKAGE_OPENSSL is not set
   3.254 +# BR2_PACKAGE_OPENVPN is not set
   3.255 +# BR2_PACKAGE_PCIUTILS is not set
   3.256 +# BR2_PACKAGE_PKGCONFIG is not set
   3.257 +# BR2_PACKAGE_PORTAGE is not set
   3.258 +# BR2_PACKAGE_PORTMAP is not set
   3.259 +# BR2_PACKAGE_PPPD is not set
   3.260 +# BR2_PACKAGE_PROCPS is not set
   3.261 +# BR2_PACKAGE_PSMISC is not set
   3.262 +# BR2_PACKAGE_PYTHON is not set
   3.263 +# BR2_PACKAGE_QTE is not set
   3.264 +BR2_QTE_TMAKE_VERSION="1.13"
   3.265 +# BR2_PACKAGE_RAIDTOOLS is not set
   3.266 +# BR2_READLINE is not set
   3.267 +# BR2_PACKAGE_RSYNC is not set
   3.268 +# BR2_PACKAGE_RUBY is not set
   3.269 +# BR2_PACKAGE_RXVT is not set
   3.270 +# BR2_PACKAGE_SDL is not set
   3.271 +# BR2_PACKAGE_SFDISK is not set
   3.272 +# BR2_PACKAGE_SLANG is not set
   3.273 +# BR2_PACKAGE_SMARTMONTOOLS is not set
   3.274 +# BR2_PACKAGE_SOCAT is not set
   3.275 +# BR2_PACKAGE_STRACE is not set
   3.276 +# BR2_PACKAGE_SUDO is not set
   3.277 +# BR2_PACKAGE_SYSKLOGD is not set
   3.278 +# BR2_PACKAGE_SYSVINIT is not set
   3.279 +# BR2_PACKAGE_TCL is not set
   3.280 +# BR2_PACKAGE_TCPDUMP is not set
   3.281 +# BR2_PACKAGE_TFTPD is not set
   3.282 +# BR2_PACKAGE_THTTPD is not set
   3.283 +# BR2_PACKAGE_TINYLOGIN is not set
   3.284 +# BR2_PACKAGE_TINYX is not set
   3.285 +# BR2_PACKAGE_TN5250 is not set
   3.286 +# BR2_PACKAGE_TTCP is not set
   3.287 +# BR2_PACKAGE_UDEV is not set
   3.288 +# BR2_PACKAGE_UDHCP is not set
   3.289 +# BR2_PACKAGE_UEMACS is not set
   3.290 +# BR2_PACKAGE_USBUTILS is not set
   3.291 +# BR2_PACKAGE_UTIL-LINUX is not set
   3.292 +# BR2_PACKAGE_VALGRIND is not set
   3.293 +# BR2_PACKAGE_VTUN is not set
   3.294 +# BR2_PACKAGE_WGET is not set
   3.295 +# BR2_PACKAGE_WHICH is not set
   3.296 +# BR2_PACKAGE_WIPE is not set
   3.297 +# BR2_PACKAGE_WIRELESS_TOOLS is not set
   3.298 +# BR2_PACKAGE_XFSPROGS is not set
   3.299 +# BR2_PACKAGE_ZLIB is not set
   3.300 +BR2_PACKAGE_HPING=y
   3.301 +
   3.302 +#
   3.303 +# Target Options
   3.304 +#
   3.305 +
   3.306 +#
   3.307 +# filesystem for target device
   3.308 +#
   3.309 +# BR2_TARGET_ROOTFS_CRAMFS is not set
   3.310 +# BR2_TARGET_ROOTFS_CLOOP is not set
   3.311 +BR2_TARGET_ROOTFS_EXT2=y
   3.312 +BR2_TARGET_ROOTFS_EXT2_BLOCKS=0
   3.313 +BR2_TARGET_ROOTFS_EXT2_INODES=0
   3.314 +BR2_TARGET_ROOTFS_EXT2_RESBLKS=0
   3.315 +BR2_TARGET_ROOTFS_EXT2_SQUASH=y
   3.316 +BR2_TARGET_ROOTFS_EXT2_OUTPUT="$(IMAGE).ext2"
   3.317 +# BR2_TARGET_ROOTFS_EXT2_GZ is not set
   3.318 +BR2_TARGET_ROOTFS_EXT2_COPYTO=""
   3.319 +# BR2_TARGET_ROOTFS_JFFS2 is not set
   3.320 +# BR2_TARGET_ROOTFS_SQUASHFS is not set
   3.321 +# BR2_TARGET_ROOTFS_TAR is not set
   3.322 +
   3.323 +#
   3.324 +# bootloader for target device
   3.325 +#
   3.326 +# BR2_TARGET_YABOOT is not set
   3.327 +
   3.328 +#
   3.329 +# Board Support Options
   3.330 +#
   3.331 +
   3.332 +#
   3.333 +# Generic System Support
   3.334 +#
   3.335 +# BR2_TARGET_GENERIC_ACCESS_POINT is not set
   3.336 +# BR2_TARGET_GENERIC_FIREWALL is not set
   3.337 +# BR2_TARGET_GENERIC_DEV_SYSTEM is not set