You are not logged in.

#1 2004-12-30 05:18:41

siimo
Member
Registered: 2004-09-02
Posts: 34

[new] kernel-2.6.10-morph5 (morph sources)

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

#2 2004-12-30 06:28:26

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [new] kernel-2.6.10-morph5 (morph sources)

this looks pretty fun - I think I'm gonna try it on my laptop later big_smile


To err is human... to really foul up requires the root password.

Offline

#3 2004-12-30 14:26:36

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: [new] kernel-2.6.10-morph5 (morph sources)

seems he applies same patches as nitro, no?

Offline

#4 2004-12-30 14:29:35

Fox
Member
Registered: 2004-07-28
Posts: 124

Re: [new] kernel-2.6.10-morph5 (morph sources)

It seems to be an extended nitro.

Offline

#5 2004-12-30 17:10:05

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [new] kernel-2.6.10-morph5 (morph sources)

The entire patchset is an extension of other patchsets!
The only question is how "stable" it is for desktop use smile


To err is human... to really foul up requires the root password.

Offline

#6 2004-12-31 01:21:48

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: [new] kernel-2.6.10-morph5 (morph sources)

This patchset is almost identical to CKO really...

Offline

#7 2004-12-31 03:28:35

oscar
Member
From: Kiruna, Sweden
Registered: 2004-08-13
Posts: 457

Re: [new] kernel-2.6.10-morph5 (morph sources)

./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

Board footer

Powered by FluxBB