You are not logged in.
# $Id: PKGBUILD,v 1.5 2004/08/22 16:43:06 damir Exp $
# Contributor: hyp0luxa <hyp0luxa@yahoo.com>
pkgname=kernel26nitro
origkernelver=2.6.10
nitrover=1
pkgver=${origkernelver}.nitro${nitrover}
kernelver=${origkernelver}-nitro${nitrover}
pkgrel=1
pkgdesc="The Linux Kernel and modules (IDE support) [nitro kernel]"
url="http://www.sepi.be/nitro.php"
backup=('boot/kconfig26nitro')
depends=('module-init-tools')
source=(http://www.kernel.org/pub/linux/kernel/v2.6/linux-$origkernelver.tar.bz2
http://mitglied.lycos.de/nitrosources/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 nitro 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
cp -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"
# 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 "==> Press [ENTER] to start compiling kernel $kernelver or [CTRL-C] to halt... "
read KEY
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.map26nitro
cp arch/i386/boot/bzImage $startdir/pkg/boot/vmlinuz26nitro
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/kconfig26nitro
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/$origkernelver-ck1 &&
(rm -f build; ln -sf /usr/src/linux-$kernelver build)
}
Offline
hey no fair, thats my job!
Offline
:oops: sorry m8... wont happen again
Offline
:oops: sorry m8... wont happen again
nah thats cool, its good that someone else is doin somethin. it'll save me some time when i update my pkgbuild
besides yours is different, it allows the user to configure it, whereas mine will just follow plain arch config.
Offline
actually, its not mine :
# Contributor: hyp0luxa <hyp0luxa@yahoo.com>
im just the ripper
Offline
Do I have to use the config from the abs-tree or do i need a special one?
Offline
use the one from ABS-tree .... (for 2.6 ;-)) ....
you may find it breaks on some low-level scsi drivers .... don't panic easy to fix
enjoy
8)
Mr Green
Offline
just some remarks about 2.6.10-ck1-nitro1 :
my usb is making me lotta problems (after removing and reattching it, uhci-hcd will report it working once out of ten tries :S the led wont start either) but iono if its just my hw, nitro, or 2.6.10.
besides that, i noticed a major performance gain with this kernel - again, dunno if its the nitro or 2.6.10...
Offline
Try playing with the PLug and Play settings, and in particular disabling ACPI PNP.
I've got a gut feeling that option will/is causing your problems.....
Offline
i dont have ACPI enabled nor Plug n Play... so i doubt its that. i think its in the kernel/nitro. we'll know for sure once more ppl will use it.
Offline
I am feeling the usb problems that z4ziggy had too.
Check out this new thread:
http://bbs.archlinux.org/viewtopic.php?t=8883
Offline
hehe... feels like the wind is heading our way...
though i dont use hotplug nor i dont get any errors on bootup - the usb problem still occurs... i tweaked and tweaked the kernel (removed all options from usb-storage options) but for vain... i guess we can just cross our fingers and wait for a patch soon
Offline
i dont have ACPI enabled nor Plug n Play... so i doubt its that. i think its in the kernel/nitro. we'll know for sure once more ppl will use it.
I have the same issues with a vanilla 2.6.10 kernel, so I don't think it's due to the nitro patchset.
Also, if anybody has any idea how to get rid of the hotplug startup issues without disabling hotplug, feel free to share.
93,
-Sascha.rb
Offline
ooooooook......
the hotplug startup issues are caused by all the new PNP stuff.
i've made a package without this and am uploading it now.
Either way, all my usb stuff works though.
Offline
Errr I'm getting confused :? is 2.6.10-ck1-nitro1 the same as 2.6.10-nitro1 ?
As for USB I get usbdevfs not found on boot up (or /proc/bus/usb not found )
I do not use hotplug so I guess usb in 2.6.10 needs some fixing ???
Mr Green losing track of his kernel builds
Mr Green
Offline
Errr I'm getting confused :? is 2.6.10-ck1-nitro1 the same as 2.6.10-nitro1 ?
As for USB I get usbdevfs not found on boot up (or /proc/bus/usb not found )
I do not use hotplug so I guess usb in 2.6.10 needs some fixing ???
Mr Green losing track of his kernel builds
They're the same kernel,
I updated it and reuploaded the kernel with the new pnp stuff off.
http://aslan.no-ip.com/~iphitus/arch/ke … pkg.tar.gz
iphitus
Offline
ok, regarding the usb problem, i downsized the problem to ehci-hcd module only. once i remove this module or add it to my blacklist, all works fine
Offline
how do your pkgbuild handle the patchset appending it's own extraversion and people adding their own localversion?
Offline
mine has an arch localversion and the extra version is modified to -nitro1, i took the cko out.
Offline