# $Id: PKGBUILD 25277 2009-01-25 10:01:21Z tpowa $ # Maintainer: Tobias Powalowski # Maintainer: Thomas Baechler pkgname=kernel26_firmwares _basekernel=2.6.28 pkgver=${_basekernel}.4 pkgrel=2 _patchname="patch-${pkgver}-${pkgrel}-ARCH" pkgdesc="The Linux Kernel firmwares" arch=(i686 x86_64) license=('GPL2') groups=('base') url="http://www.kernel.org" source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2 ftp://ftp.archlinux.org/other/kernel26/${_patchname}.bz2) build() { KARCH=x86 cd ${srcdir}/linux-$_basekernel if [[ ! -e _arch_patched ]]; then # Add -ARCH patches # See http://projects.archlinux.org/git/?p=linux-2.6-ARCH.git;a=summary patch -Np1 -i ${srcdir}/${_patchname} || return 1 # patch -Np0 -i ${startdir}/eeepc_laptop-bluetooth-2.6.29rc2.patch || return 1 # patch -Np0 -i ${startdir}/bt_attributes.patch || return 1 touch _arch_patched else msg "Already patched, skipping." fi msg "Patches done, continuating with compilation..." # get kernel version # make prepare # # load configuration # yes "" | make config &> /dev/null make allmodconfig # build! make modules || return 1 #mkdir -p ${pkgdir}/{lib/modules,boot} make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1 rm -fr ${pkgdir}/lib/modules }