You are not logged in.
Read more about morph sources here: http://forums.gentoo.org/viewtopic.php?t=255721
Credits: This PKGBUILD is adopted from hyp0luxa <hyp0luxa@yahoo.com>'s nitro sources PKGBUILD.
logo_linux_clut224.ppm and a default kernel config is available in Arch CVS http://cvs.archlinux.org/cgi-bin/viewcv … /kernel26/
# Morph Sources (2.6.10-morph5)
# Adopted from hyp0luxa <hyp0luxa@yahoo.com> 's nitro sources PKGBUILD
# siimo <siimo@mail.ru>
pkgname=kernel26morph
origkernelver=2.6.10
morphver=5
pkgver=${origkernelver}.morph${morphver}
kernelver=${origkernelver}-morph${morphver}
pkgrel=1
pkgdesc="The Linux Kernel and modules (IDE support) [morph kernel]"
url="http://forums.gentoo.org/viewtopic.php?t=255721"
backup=('boot/kconfig26morph')
depends=('module-init-tools')
source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-$origkernelver.tar.bz2
http://www.ing.unitn.it/~rbiscani/patch-$kernelver.bz2
config
logo_linux_clut224.ppm)
build() {
# if we run the makepkg more than once and use 'makepkg -e' to save time:
if [ -d $startdir/src/linux-${origkernelver} ]
then
cd $startdir/src/linux-${origkernelver}
#apply morph patchset
patch -Np1 -i ../patch-$kernelver || return 1
mv $startdir/src/linux-${origkernelver} $startdir/src/linux-$kernelver
fi
cd $startdir/src/linux-$kernelver
#CLEAN-ME:
if [ -f ../${kernelver} ]
then
rm ../${kernelver} # cleanup the existing patch (needed, if "makepkg -e" for another round)
fi
# get rid of the 'i' in i686
carch=`echo $CARCH | sed 's|i||'`
cat ../config | sed "s|#CARCH#|$carch|g" >./.config
mv -f $startdir/config $startdir/config.orig
# replace logo:
cp $startdir/src/logo_linux_clut224.ppm $startdir/src/linux-$kernelver/drivers/video/logo/ && echo "==> logo replaced successfully"
sleep 2
# let's be "user-friendly":
echo "==> "
echo "==> How do you want to configure the kernel:"
echo "==> ----------------------------------------"
echo "==> (for ArchLinux defaults, use 'not_at_all (1)')"
echo "==> "
AUSWAHL="not_at_all menuconfig xconfig oldconfig config"
select opt in $AUSWAHL; do
if [ "$opt" = "not_at_all" ]; then
yes "" | make config || return 1
mv $startdir/config.orig $startdir/config
break
elif [ "$opt" = "menuconfig" ]; then
make menuconfig || return 1
cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
break
elif [ "$opt" = "xconfig" ]; then
make xconfig || return 1
cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
break
elif [ "$opt" = "config" ]; then
make config || return 1
cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
break
elif [ "$opt" = "oldconfig" ]; then
make oldconfig || return 1
cp .config $startdir/config && echo "==> your config was saved to $startdir/config"
break
else
clear
echo "==> I don't understand (bad option) ... assuming you don't want "
echo "==> to configure and use the defaults."
sleep 1
echo "==> 3..."
sleep 1
echo "==> 2..."
sleep 1
echo "==> 1..."
sleep 1
echo "==> 0: GO! --------------------------- :-)"
yes "" | make config || return 1
mv $startdir/config.orig $startdir/config
break
fi
done
echo ""
echo "==> Building the kernel $kernelver will start in 2s ! "
echo "==> Happy compiling and good luck :-)"
echo ""
sleep 2
make clean bzImage modules || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
cp System.map $startdir/pkg/boot/System.map26morph
cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26morph
install -D -m644 Makefile $startdir/pkg/usr/src/linux-$kernelver/Makefile
install -D -m644 .config $startdir/pkg/usr/src/linux-$kernelver/.config
install -D -m644 .config $startdir/pkg/boot/kconfig26morph
mkdir -p $startdir/pkg/usr/src/linux-$kernelver/include
mkdir -p $startdir/pkg/usr/src/linux-$kernelver/arch/i386/kernel
for i in acpi asm-generic asm-i386 config linux math-emu net pcmcia scsi video; do
cp -a include/$i $startdir/pkg/usr/src/linux-$kernelver/include/
done
# copy files necessary for later builds, like nvidia and vmware
cp -a scripts $startdir/pkg/usr/src/linux-$kernelver/
mkdir -p $startdir/pkg/usr/src/linux-$kernelver/.tmp_versions
cp arch/i386/Makefile $startdir/pkg/usr/src/linux-$kernelver/arch/i386/
cp arch/i386/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-$kernelver/arch/i386/kernel/
# copy in Kconfig files
for i in `find . -name "Kconfig*"`; do
mkdir -p $startdir/pkg/usr/src/linux-$kernelver/`echo $i | sed 's|/Kconfig.*||'`
cp $i $startdir/pkg/usr/src/linux-$kernelver/$i
done
cd $startdir/pkg/usr/src/linux-$kernelver/include && ln -s asm-i386 asm
chown -R root.root $startdir/pkg/usr/src/linux-$kernelver
cd $startdir/pkg/lib/modules/$kernelver &&
(rm -f build; ln -sf /usr/src/linux-$kernelver build)
}
Offline
this looks pretty fun - I think I'm gonna try it on my laptop later
To err is human... to really foul up requires the root password.
Offline
seems he applies same patches as nitro, no?
Offline
It seems to be an extended nitro.
Offline
The entire patchset is an extension of other patchsets!
The only question is how "stable" it is for desktop use
To err is human... to really foul up requires the root password.
Offline
This patchset is almost identical to CKO really...
Offline
./PKGBUILD: line 135: cd: /var/abs/local/pkg/lib/modules/2.6.10-morph5: No such file or directory
==> ERROR: Build Failed. Aborting...
To err is human... to really foul up requires the root password.
Offline