Sodale, mein Notebook wird sich vermutlich demnächst gewerkschaftlich organisieren, aber immerhin läuft es jetzt.
makepkg hat natürlich alles aufgeräumt, also habe ich das ABS-Zeugs mit den Sachen aus dem Wiki in einen Topf geschmissen und kräftig umgerührt. Ich verstehe nichts davon, falls ich also etwas wichtiges vergessen habe...
PKGBUILD
4,6c4,7
< pkgname=kernel26
< _basekernel=2.6.26
< pkgver=2.6.26.2
---
> pkgname=kernel26custom
> _basekernel=2.6.25
> pkgver=2.6.25
> _ownver=custom
9,10c10
< _patchname="patch-${pkgver}-1-ARCH"
< pkgdesc="The Linux Kernel and modules"
---
> pkgdesc="The Linux Kernel and modules (Eigener Kernel)"
13,15d12
< groups=('base')
< url="http://www.kernel.org"
< backup=(etc/mkinitcpio.d/${pkgname}.preset)
20,30c17,21
< replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
< 'alsa-driver' 'ieee80211' 'hostap-driver26'
< 'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
< 'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs')
< install=kernel26.install
< source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
< ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2
< # the main kernel config files
< config config.x86_64
< # standard config files for mkinitcpio ramdisk
< kernel26.preset)
---
> install=kernel26${_ownver}.install
> source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-${_basekernel}.tar.bz2 \
> ${pkgname}.preset \
> ${pkgname}-fallback.conf \
> )
35,45c26,38
< cd $startdir/src/linux-$_basekernel
< # Add -ARCH patches
< # See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary
< patch -Np1 -i $startdir/src/${_patchname} || return 1
<
< if [ "$CARCH" = "x86_64" ]; then
< cat ../config.x86_64 >./.config
< else
< cat ../config >./.config
< fi
< # build the full kernel version to use in pathnames
---
> cd $startdir/src/linux-${_basekernel}
>
>
> # Enable this to reuse your old kernel config.
> # The config file must sit in the directory where the PKGBUILD is.
> # Also enable: make oldconfig in the section below.
> cp $startdir/config ./.config
>
> # load configuration
> #yes "" | make config
> make oldconfig || return 1
> make menuconfig || return 1
> #make gconfig || return 1
47,48d39
< ### next line is only needed for rc kernels
< #_kernver="2.6.25${CONFIG_LOCALVERSION}"
50,51c41,42
< # load configuration
< yes "" | make config
---
>
>
62,63c53,54
< cp System.map $startdir/pkg/boot/System.map26
< cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26
---
> cp System.map $startdir/pkg/boot/System.map26${_ownver}
> cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26${_ownver}
135c126
< sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.install
---
> sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26${_ownver}.install
138a130,132
>
> cp $startdir/src/linux-${_basekernel}/.config $startdir/config
>
kernel26custom.install
4c4,5
< KERNEL_VERSION=2.6.26-ARCH
---
> KERNEL_VERSION=2.6.25-custom
> _ownver=custom
19c20,21
< /sbin/mkinitcpio -p kernel26
---
> /sbin/mkinitcpio -p kernel26${_ownver}
>
124c126
< /sbin/mkinitcpio -p kernel26 -m "ATTENTION:\nIf you get a kernel panic below
---
> /sbin/mkinitcpio -p kernel26${_ownver} -m "ATTENTION:\nIf you get a kernel panic below
128c130
< /sbin/mkinitcpio -p kernel26
---
> /sbin/mkinitcpio -p kernel26${_ownver}
kernel26custom.preset
5c5
< source /etc/mkinitcpio.d/kernel26.kver
---
> source /etc/mkinitcpio.d/kernel26custom.kver
12c12
< default_image="/boot/kernel26.img"
---
> default_image="/boot/kernel26custom.img"
16,17c16,17
< fallback_image="/boot/kernel26-fallback.img"
< fallback_options="-S autodetect"
\ Kein Zeilenumbruch am Dateiende.
---
> fallback_image="/boot/kernel26custom-fallback.img"
> fallback_options="-S autodetect"
Also ich habe kernel26custom.conf nicht verwendet, sondern /etc/mkinitcpio.conf.
lg Simsalabim