Hi all,
I need the package of kernel with below options:
"Processor type and features" -> "High Memory Support" -> Make sure it is set to 64GB
• "Processor type and features" -> "PAE (Physical Address Extension) Support" -> enable
• "Processor type and features" -> "Paravirtualized guest support" -> enable
• "Processor type and features" -> "Paravirtualized guest support" -> "Xen guest support" -> enable
• "Device Drivers" -> "Block devices" -> "Xen virtual block device support" -> enable either as a module or built in
• "Device Drivers" -> "Network device support" -> "Xen network device frontend driver" -> enable either as a module or built in
The below package is not boot on Xen I mean Amazon aws...
#!/bin/bash
# Make sure your source tree is ready before running this script. See
# README for instructions.
#
# Ivan Grigoryevich Zaigralin a.k.a. melikamp. Copyright (C) 2012
#
# Slackware build script for kernel, modules, and firmware. Written
# by melikamp <melikamp@melikamp.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# without any warranty; without even the implied warranty of
# merchantability or fitness for a particular purpose. Compiling,
# interpreting, executing or merely reading the text of the program
# may result in lapses of consciousness and/or very being, up to and
# including the end of all existence and the Universe as we know it.
# See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program (most likely, a file named COPYING). If
# not, see <http://www.gnu.org/licenses/>.
#
# You can get the latest version of this slackbuild early at
#
http://melikamp.com/features/slackbuilds.shtml
TMP=/tmp
CWD=$(pwd)
PKG=/tmp/package-kernel
LINUX_SOURCE_PATH=${LINUX_SOURCE_PATH:-/usr/src/linux}
# Exit on most errors.
set -e
cd $LINUX_SOURCE_PATH
# Extract kernel version.
KERNEL_RELEASE=$(make kernelrelease)
KERNNAME=common
VERSION=$KERNEL_RELEASE
# Slackware packager does not tolerate - in version
PKG_VERSION=$(echo $KERNEL_RELEASE | tr - .)
ARCH=NONE
if [ -r arch/x86_64/boot/bzImage ] ; then
ARCH=x86_64
elif [ -r arch/x86/boot/bzImage ] ; then
ARCH=x86
fi
BUILD=${BUILD:-1}
KERNEL=arch/$ARCH/boot/bzImage
SYSMAP=System.map
CONFIG=.config
echo "kernel: $(pwd)/$KERNEL"
echo "sysmap: $(pwd)/$SYSMAP"
echo "config: $(pwd)/$CONFIG"
echo 'Checking availability...'
test -r $KERNEL -a -r $SYSMAP -a -r $CONFIG
echo 'Found!'
echo "Press any key to package kernel release $KERNEL_RELEASE"
read -n 1 junk
# Set up package
rm -rf $PKG
mkdir -p $PKG
mkdir -p $PKG/boot
mkdir -p $PKG/lib/modules
mkdir -p $PKG/lib/firmware/${VERSION}
echo 'Staging kernel image, map, config.'
cp $KERNEL $PKG/boot/vmlinuz-$KERNNAME-${VERSION}
( cd $PKG/boot ; ln -sf vmlinuz-$KERNNAME-${VERSION} vmlinuz )
cp $SYSMAP $PKG/boot/System.map-$KERNNAME-${VERSION}
( cd $PKG/boot ; ln -sf System.map-$KERNNAME-${VERSION} System.map )
cp $CONFIG $PKG/boot/config-$KERNNAME-${VERSION}
( cd $PKG/boot ; ln -sf config-$KERNNAME-${VERSION} config )
echo 'Staging modules and firmware.'
make INSTALL_MOD_PATH=$PKG\
INSTALL_FW_PATH=$PKG/lib/firmware/${VERSION}\
modules_install firmware_install
echo 'Staging documentation.'
DOCDIR=$PKG/usr/doc/kernel-$KERNNAME-${VERSION}
mkdir -p $DOCDIR
cp -a $CWD/README $CWD/kernel-common.SlackBuild $DOCDIR
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
echo 'Creating the package.'
cd $PKG
makepkg -l y -c n $TMP/kernel-$KERNNAME-${PKG_VERSION}-$ARCH-$BUILD.txz