diff options
author | awilliam@xenbuild.aw <awilliam@xenbuild.aw> | 2006-11-10 11:11:04 -0700 |
---|---|---|
committer | awilliam@xenbuild.aw <awilliam@xenbuild.aw> | 2006-11-10 11:11:04 -0700 |
commit | 8eb135484ec9d5cd6e647a5aaaee667866052664 (patch) | |
tree | 1ade1e601050b3ca474a18679a1183f0d40451cb /tools/xm-test/ramdisk | |
parent | 23a577ea38b06dc33c321a65f3e1eb2c9df38750 (diff) | |
parent | acff088125bb38f2b9e40f49ae9a9159e183b129 (diff) | |
download | xen-8eb135484ec9d5cd6e647a5aaaee667866052664.tar.gz xen-8eb135484ec9d5cd6e647a5aaaee667866052664.tar.bz2 xen-8eb135484ec9d5cd6e647a5aaaee667866052664.zip |
merge with xen-unstable.hg
Diffstat (limited to 'tools/xm-test/ramdisk')
-rw-r--r-- | tools/xm-test/ramdisk/Makefile.am | 6 | ||||
-rw-r--r-- | tools/xm-test/ramdisk/README-XenSource-initrd-1.0-img | 3 | ||||
-rw-r--r-- | tools/xm-test/ramdisk/README-XenSource-initrd-1.1-img | 45 | ||||
-rw-r--r-- | tools/xm-test/ramdisk/make-release.sh | 47 | ||||
-rw-r--r-- | tools/xm-test/ramdisk/patches/buildroot/add_xvd_devices.patch | 13 |
5 files changed, 110 insertions, 4 deletions
diff --git a/tools/xm-test/ramdisk/Makefile.am b/tools/xm-test/ramdisk/Makefile.am index dd7f5ec058..14bfc9267c 100644 --- a/tools/xm-test/ramdisk/Makefile.am +++ b/tools/xm-test/ramdisk/Makefile.am @@ -4,7 +4,7 @@ # Download a pre-built ramdisk. # INITRD = <Directory to download ramdisk from> # -# make initrd: +# make initrd.img: # # Make a ramdisk from scratch. # BR_URL = <The URL of the Buildroot source code> @@ -17,9 +17,9 @@ INITRD ?= http://xm-test.xensource.com/ramdisks BR_ARCH ?= $(shell uname -m | sed -e s/i.86/i386/ -e 's/ppc\(64\)*/powerpc/') @MK@ifdef BR_SNAPSHOT - BR_URL = http://buildroot.uclibc.org/downloads/snapshots/buildroot-snapshot.tar.bz2 +@MK@ BR_URL = http://buildroot.uclibc.org/downloads/snapshots/buildroot-snapshot.tar.bz2 @MK@else - BR_URL ?= http://xm-test.xensource.com/ramdisks/buildroot-20061023.tar.bz2 +@MK@ BR_URL = http://xm-test.xensource.com/ramdisks/buildroot-20061023.tar.bz2 @MK@endif BR_TAR = $(notdir $(BR_URL)) diff --git a/tools/xm-test/ramdisk/README-XenSource-initrd-1.0-img b/tools/xm-test/ramdisk/README-XenSource-initrd-1.0-img index a77476a4a6..80ac26be79 100644 --- a/tools/xm-test/ramdisk/README-XenSource-initrd-1.0-img +++ b/tools/xm-test/ramdisk/README-XenSource-initrd-1.0-img @@ -7,7 +7,8 @@ suitable for use with Xen's xm-test regression testing suite. They has been built and provided by XenSource, for the convenience of Xen users. xm-test initrds may be mixed across minor xm-test versions, but not across major versions; this initrd is suitable for all 1.0.x versions of xm-test (as -shipped with Xen 3.0.4 and the unstable tree leading up to that release). +shipped with the Xen unstable tree for a short while between Xen 3.0.3 and +Xen 3.0.4). In order to use one of these initrds, run "./autogen; ./configure; make existing" inside the xm-test directory, and the appropriate initrd for your diff --git a/tools/xm-test/ramdisk/README-XenSource-initrd-1.1-img b/tools/xm-test/ramdisk/README-XenSource-initrd-1.1-img new file mode 100644 index 0000000000..526c601ccc --- /dev/null +++ b/tools/xm-test/ramdisk/README-XenSource-initrd-1.1-img @@ -0,0 +1,45 @@ +XenSource xm-test 1.1 initrds +============================= + +http://xm-test.xensource.com/ramdisks/initrd-1.1-i386.img and +http://xm-test.xensource.com/ramdisks/initrd-1.1-powerpc.img are initrds +suitable for use with Xen's xm-test regression testing suite. They has been +built and provided by XenSource, for the convenience of Xen users. xm-test +initrds may be mixed across minor xm-test versions, but not across major +versions; this initrd is suitable for all 1.1.x versions of xm-test (as +shipped with Xen 3.0.4 and the unstable tree leading up to that release). + +In order to use one of these initrds, run "./autogen; ./configure; make +existing" inside the xm-test directory, and the appropriate initrd for your +architecture will be downloaded automatically. Alternatively, if you have +already downloaded that file, place it into the xm-test/ramdisk directory and +run the same command. In either case, runtest.sh can then be used as normal. +See xm-test/README for more details. + +These initrds were built using the infrastructure provided by xm-test. Each +is a full guest operating system and filesystem, and as such includes a large +number of pieces of software. The source code for the majority of these are +included in full inside the file +http://xm-test.xensource.com/ramdisks/<INITRD>-buildroot.tar.bz2, where +<INITRD> is either initrd-1.1-i386 or initrd-1.1-powerpc as appropriate, or +alongside this file. Copyright statements and licences are contained therein. +The remaining source code is included in the Xen distribution, at +http://www.xensource.com/xen/downloads/archives.html. The configurations used +for BusyBox, uClibc, and Buildroot are available as +http://xm-test.xensource.com/ramdisks/<INITRD>-busybox-config, +http://xm-test.xensource.com/ramdisks/<INITRD>-uClibc-config, and +http://xm-test.xensource.com/ramdisks/<INITRD>-buildroot-config respectively, +or alongside this file. + +XenSource and the Xen contributors are grateful to the authors of these +software packages for their contributions to free and open-source software. + + +Buildroot and BusyBox are Copyright (c) Erik Andersen <andersen@codepoet.org>. +BusyBox is licensed under the GNU General Public License (GPL). A copy of +this license is available in the file GPL-2, +http://xm-test.xensource.com/ramdisks/GPL-2, or alongside this file. + +uClibc is licensed under the GNU Lesser General Public License (LGPL). A copy +of this license is available in the file +http://xm-test.xensource.com/ramdisks/LGPL-2, or alongside this file. diff --git a/tools/xm-test/ramdisk/make-release.sh b/tools/xm-test/ramdisk/make-release.sh new file mode 100644 index 0000000000..5aa3831181 --- /dev/null +++ b/tools/xm-test/ramdisk/make-release.sh @@ -0,0 +1,47 @@ +#!/bin/sh + +if [ "$1" == "" ] +then + arch="" +elif [ "$1" == "powerpc" ] +then + arch="BR_ARCH=powerpc" +else + echo "Invalid architecture specified." >&2 + exit 1 +fi + +set -eu + +tempdir=$(mktemp -d) + +dir=$(dirname "$0") + +cd $(dirname "$dir") + +./autogen +./configure + +cd "$dir" + +rm -Rf buildroot +make $arch initrd.img + +initrd=$(readlink "initrd.img") +prefix=$(basename "$initrd" ".img") +arch=$(echo "$prefix" | sed -e 's/.*-//') + +cp "$initrd" "$tempdir" + +cp "buildroot/.config" "$tempdir/$prefix-buildroot-config" +cp "buildroot/package/busybox/busybox.config" "$tempdir/$prefix-busybox-config" +cp "buildroot/toolchain/uClibc/uClibc.config" "$tempdir/$prefix-uClibc-config" + +mv "buildroot" "$tempdir/buildroot-$arch" +cd $tempdir +rm -Rf "buildroot-$arch"/toolchain_build* +rm -Rf "buildroot-$arch"/build_* +tar cjf "$prefix-buildroot.tar.bz2" "buildroot-$arch" +rm -Rf "buildroot-$arch" + +echo -e "\n\nYour release is in $tempdir." diff --git a/tools/xm-test/ramdisk/patches/buildroot/add_xvd_devices.patch b/tools/xm-test/ramdisk/patches/buildroot/add_xvd_devices.patch new file mode 100644 index 0000000000..25d073da68 --- /dev/null +++ b/tools/xm-test/ramdisk/patches/buildroot/add_xvd_devices.patch @@ -0,0 +1,13 @@ +--- buildroot/target/generic/device_table.txt~ 2006-10-26 17:38:04.000000000 +1000 ++++ buildroot/target/generic/device_table.txt 2006-10-26 17:37:08.000000000 +1000 +@@ -169,3 +169,10 @@ + #/dev/mcd b 640 0 0 23 0 0 0 - + #/dev/optcd b 640 0 0 17 0 0 0 - + ++# Xen Virtual Block Devices ++/dev/xvda b 640 0 0 202 0 0 0 - ++/dev/xvda b 640 0 0 202 1 1 1 4 ++/dev/xvdb b 640 0 0 202 16 0 0 - ++/dev/xvdb b 640 0 0 202 17 1 1 4 ++/dev/xvdc b 640 0 0 202 32 0 0 - ++/dev/xvdc b 640 0 0 202 33 1 1 4 |