debuggers.hg

view tools/xm-test/ramdisk/make-release.sh @ 22848:6341fe0f4e5a

Added tag 4.1.0-rc2 for changeset 9dca60d88c63
author Keir Fraser <keir@xen.org>
date Tue Jan 25 14:06:55 2011 +0000 (2011-01-25)
parents b0d7780794eb
children
line source
1 #!/bin/sh
3 if [ "$1" == "" ]
4 then
5 arch=""
6 else
7 echo "Invalid architecture specified." >&2
8 exit 1
9 fi
11 set -eu
13 tempdir=$(mktemp -d)
15 dir=$(dirname "$0")
17 cd $(dirname "$dir")
19 ./autogen
20 ./configure
22 cd "$dir"
24 rm -Rf buildroot
25 make $arch initrd.img
27 initrd=$(readlink "initrd.img")
28 prefix=$(basename "$initrd" ".img")
29 arch=$(echo "$prefix" | sed -e 's/.*-//')
31 cp "$initrd" "$tempdir"
33 cp "buildroot/.config" "$tempdir/$prefix-buildroot-config"
34 cp "buildroot/package/busybox/busybox.config" "$tempdir/$prefix-busybox-config"
35 cp "buildroot/toolchain/uClibc/uClibc.config" "$tempdir/$prefix-uClibc-config"
37 mv "buildroot" "$tempdir/buildroot-$arch"
38 cd $tempdir
39 rm -Rf "buildroot-$arch"/toolchain_build*
40 rm -Rf "buildroot-$arch"/build_*
41 tar cjf "$prefix-buildroot.tar.bz2" "buildroot-$arch"
42 rm -Rf "buildroot-$arch"
44 echo -e "\n\nYour release is in $tempdir."