Damn 1 minute edit time limit.
I'm using Arch x64 and this is the PKGBUILD I'm using:
Code:
pkgname=kernel26-custom
basekernel=2.6.37
pkgver=2.6.37
pkgrel=7
pkgdesc="My custom kernel"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.kernel.org"
depends=('module-init-tools' 'mkinitcpio')
provides=(kernel26)
install=kernel26.install
build() {
LOCAL_VERSION="$(grep "CONFIG_LOCALVERSION=" $startdir/.config | sed 's/.*"\(.*\)"/\1/')"
cd ..
make || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
# There's no separation of firmware depending on kernel version -
# comment this line if you intend on using the built kernel exclusively,
# otherwise there'll be file conflicts with the existing kernel
rm -rf $startdir/pkg/lib/firmware
install -Dm644 "System.map" "$startdir/pkg/boot/System.map26$LOCAL_VERSION"
install -Dm644 "arch/x86/boot/bzImage" "$startdir/pkg/boot/vmlinuz26$LOCAL_VERSION"
# Change the version strings in kernel26.install
sed -i \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=\"$basekernel\"/" \
-e "s/LOCAL_VERSION=.*/LOCAL_VERSION=\"$LOCAL_VERSION\"/" \
$startdir/kernel26.install
}