system/xen: Remove support for x86

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Mario Preksavec 2014-01-18 08:07:42 +07:00 committed by Erik Hanson
parent c9df0cc2f7
commit 55605859ff
6 changed files with 45 additions and 6507 deletions

View File

@ -12,5 +12,7 @@ mbootpack is an optional dependency. Since booting a Xen kernel with LILO
is not supported by default we have to use GRUB; alternatively, you can use
mbootpack to create a LILO compatible kernel.
The Xen hypervisor no longer builds on x86 32 bit operating systems.
See README.SLACKWARE (which is also installed with the package docs) for
setup, configuration, and usage hints.

View File

@ -1,12 +1,12 @@
kernel-xen.sh: This script builds the Linux Kernel for a Xen Hypervisor.
The configuration files included here are based on generic Slackware configs.
For 32bit systems, SMP based config was used. To run "make menuconfig" before
compiling a Xen kernel, use "MENUCONFIG=yes" variable.
The configuration file included here is based on a generic Slackware64 kernel
config. To run "make menuconfig" before compiling a Xen kernel, use the
"MENUCONFIG=yes" variable.
Originally, booting a Xen kernel with LILO bootloader is not supported, so GRUB
has to be used. Because some might preffer LILO over GRUB, there is a way to
accomplish this with mbootpack. Basicaly, mbootpack takes Linux kernel, initrd
has to be used. For those that preffer LILO over GRUB, there is a way to
accomplish this with mbootpack. Basically, mbootpack takes Linux kernel, initrd
and Xen VMM, and packages them up into a single file that looks like a bzImage
Linux kernel. To select how kernel is packed use "BOOTLOADER=" variable. Valid
options are "lilo" and "grub". Because generic kernel requires an initrd image,
@ -27,7 +27,7 @@ image = /boot/vmlinuz-xen
Note: everything before "--" is passed to Xen, and everything after "--" is
passed to the Linux kernel.
For GRUB, for example, include these lines in /boot/grub/menu.lst:
When using GRUB, you might want to include these lines in /boot/grub/menu.lst:
title Slackware XenLinux 14.1
root (hd0,0)
@ -35,10 +35,8 @@ title Slackware XenLinux 14.1
module /boot/vmlinuz-xen root=/dev/sda2 ro console=tty0 nomodeset
module /boot/initrd-xen.gz
Note that dom0_mem parameter is critical for a 32bit install.
Here are some notes/guidances if your dom0 crashes, freezes or maybe the
screen goes blank on boot:
screen goes blank at boot:
- Specify an out of range number to "fbcon" to disable framebuffer altogether,
which, for example, is done by appending fbcon=map:9 to the Linux kernel (To
see a list of available devices in your system check /proc/fb).

File diff suppressed because it is too large Load Diff

View File

@ -16,10 +16,9 @@ ROOTDEV=${ROOTDEV:-/dev/sda2}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
x86_64) ARCH=x86_64 ;;
# Bail out on everything else:
*) echo "Unsupported architecture detected ($ARCH)"; exit ;;
*) echo "Unsupported architecture detected ($ARCH)"; exit ;;
esac
fi

View File

@ -2,7 +2,7 @@
# Slackware build script for xen
# Copyright 2010-2013 Mario Preksavec, Zagreb, HR
# Copyright 2010, 2011, 2013, 2014 Mario Preksavec, Zagreb, HR
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,14 +24,13 @@
PRGNAM=xen
VERSION=${VERSION:-4.3.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
x86_64) ARCH=x86_64 ;;
*) echo "Unsupported architecture detected ($ARCH)"; exit ;;
esac
fi
@ -41,8 +40,7 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ $ARCH == "x86_64" ] && [ ! -f /usr/include/gnu/stubs-32.h ]; then
cat << EOF
cat << EOF
For a 32bit guest support 32bit libs are required to build the
stub-domain. This is usualy done by installing multilib, but
@ -56,7 +54,7 @@ EOF
exit
fi
if [ "$ARCH" = "x86_64" ]; then
if [ $ARCH == "x86_64" ]; then
LIBDIRSUFFIX="64"
else
LIBDIRSUFFIX=""
@ -72,8 +70,8 @@ tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \
-exec chmod 755 {} \; -o \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
@ -107,18 +105,21 @@ make install-xen \
mandir=/usr/man \
MANDIR=/usr/man \
DESTDIR=$PKG
make install-tools \
docdir=/usr/doc/$PRGNAM-$VERSION \
DOCDIR=/usr/doc/$PRGNAM-$VERSION \
mandir=/usr/man \
MANDIR=/usr/man \
DESTDIR=$PKG
make install-stubdom \
docdir=/usr/doc/$PRGNAM-$VERSION \
DOCDIR=/usr/doc/$PRGNAM-$VERSION \
mandir=/usr/man \
MANDIR=/usr/man \
DESTDIR=$PKG
make install-docs \
docdir=/usr/doc/$PRGNAM-$VERSION \
DOCDIR=/usr/doc/$PRGNAM-$VERSION \

View File

@ -1,30 +1,30 @@
PRGNAM="xen"
VERSION="4.3.1"
HOMEPAGE="http://www.xen.org/"
DOWNLOAD="http://bits.xensource.com/oss-xen/release/4.3.1/xen-4.3.1.tar.gz \
http://xenbits.xen.org/xen-extfiles/ipxe-git-9a93db3f0947484e30e753bbd61a10b17336e20e.tar.gz \
http://xenbits.xen.org/xen-extfiles/lwip-1.3.0.tar.gz \
http://xenbits.xen.org/xen-extfiles/zlib-1.2.3.tar.gz \
http://xenbits.xen.org/xen-extfiles/newlib-1.16.0.tar.gz \
http://xenbits.xen.org/xen-extfiles/pciutils-2.2.9.tar.bz2 \
http://xenbits.xen.org/xen-extfiles/grub-0.97.tar.gz \
http://xenbits.xen.org/xen-extfiles/polarssl-1.1.4-gpl.tgz \
http://xenbits.xen.org/xen-extfiles/gmp-4.3.2.tar.bz2 \
http://xenbits.xen.org/xen-extfiles/tpm_emulator-0.7.4.tar.gz \
http://mirror.slackware.hr/sources/xen-extfiles/seabios-git-3a28511b46f0c2af5fae1b6ed2b0c19d7913cee3.tar.gz"
MD5SUM="7616b8704e1ab89c81f011f0e3703bc8 \
7496268cebf47d5c9ccb0696e3b26065 \
36cc57650cffda9a0269493be2a169bb \
debc62758716a169df9f62e6ab2bc634 \
bf8f1f9e3ca83d732c00a79a6ef29bc4 \
cec05e7785497c5e19da2f114b934ffd \
cd3f3eb54446be6003156158d51f4884 \
7b72caf22b01464ee7d6165f2fd85f44 \
dd60683d7057917e34630b4a787932e8 \
e26becb8a6a2b6695f6b3e8097593db8 \
451b0dfc69b48a45841cb10c53f82ddb"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
REQUIRES="acpica yajl"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
DOWNLOAD_x86_64="http://bits.xensource.com/oss-xen/release/4.3.1/xen-4.3.1.tar.gz \
http://xenbits.xen.org/xen-extfiles/ipxe-git-9a93db3f0947484e30e753bbd61a10b17336e20e.tar.gz \
http://xenbits.xen.org/xen-extfiles/lwip-1.3.0.tar.gz \
http://xenbits.xen.org/xen-extfiles/zlib-1.2.3.tar.gz \
http://xenbits.xen.org/xen-extfiles/newlib-1.16.0.tar.gz \
http://xenbits.xen.org/xen-extfiles/pciutils-2.2.9.tar.bz2 \
http://xenbits.xen.org/xen-extfiles/grub-0.97.tar.gz \
http://xenbits.xen.org/xen-extfiles/polarssl-1.1.4-gpl.tgz \
http://xenbits.xen.org/xen-extfiles/gmp-4.3.2.tar.bz2 \
http://xenbits.xen.org/xen-extfiles/tpm_emulator-0.7.4.tar.gz \
http://mirror.slackware.hr/sources/xen-extfiles/seabios-git-3a28511b46f0c2af5fae1b6ed2b0c19d7913cee3.tar.gz"
MD5SUM_x86_64="7616b8704e1ab89c81f011f0e3703bc8 \
7496268cebf47d5c9ccb0696e3b26065 \
36cc57650cffda9a0269493be2a169bb \
debc62758716a169df9f62e6ab2bc634 \
bf8f1f9e3ca83d732c00a79a6ef29bc4 \
cec05e7785497c5e19da2f114b934ffd \
cd3f3eb54446be6003156158d51f4884 \
7b72caf22b01464ee7d6165f2fd85f44 \
dd60683d7057917e34630b4a787932e8 \
e26becb8a6a2b6695f6b3e8097593db8 \
451b0dfc69b48a45841cb10c53f82ddb"
MAINTAINER="Mario Preksavec"
EMAIL="mario at slackware dot hr"