fixes for kernel26-raspberrypi pkgbuild

This commit is contained in:
Kevin Mihelich 2011-11-14 16:50:34 -05:00
parent 92fd0c4d5b
commit 91719394b9

View file

@ -36,8 +36,6 @@ md5sums=('6e7667c6c6348bfeca22eaaa05462d62'
'968a3a9468b90a8a50dae8cafb276760'
'fdbbc3c4f34d5959504f027bdc1e7a73')
options=('!distcc' '!ccache')
build() {
cd "${srcdir}/linux-${pkgver}"
@ -46,23 +44,23 @@ build() {
cp ${srcdir}/boot-uncompressed.txt arch/arm/boot/
cp ${srcdir}/imagetool-uncompressed.py arch/arm/boot/
# ALARM: add dma_coherent_write_sync calls to USB EHCI driver
patch -Np3 -i "${srcdir}/rp-patches/rpdh1.patch"
patch -Np1 -i "${srcdir}/rp-patches/smsc95xx.patch"
patch -Np1 -i "${srcdir}/armdma.patch"
patch -Np1 -i "${srcdir}/sys_accept4.patch"
# Prepare sources
#make prepare
make clean # sometimes git isn't clean
make mrproper # same as above
make prepare
#make clean # sometimes git isn't clean
#make mrproper # same as above
# Configure the kernel. Replace the line below with one of your choice.
#make menuconfig # CLI menu for configuration
#make nconfig # new CLI menu for configuration
#make oldconfig # using old config from previous kernel version
# ALARM: add dma_coherent_write_sync calls to USB EHCI driver
patch -Np1 -i "${srcdir}/rp-patches/rpdh1.patch"
patch -Np1 -i "${srcdir}/rp-patches/smsc95xx.patch"
patch -Np1 -i "${srcdir}/armdma.patch"
patch -Np1 -i "${srcdir}/sys_accept4.patch"
# Make the config compatible with Arch Linux's naming scheme
# sed 's|CONFIG_LOCALVERSION="-trimslice-1.02"|CONFIG_LOCALVERSION="-ARCH"|g' -i .config
sed 's|CONFIG_LOCALVERSION=""|CONFIG_LOCALVERSION="-ARCH"|g' -i .config
# Copy back our configuration (use with new kernel version)
#cp ./.config ../${_basekernel}.config
@ -71,11 +69,11 @@ build() {
#return 1
# Build!
make -j2 #${MAKEFLAGS}
make ${MAKEFLAGS}
}
package_kernel26-raspberrypi() {
pkgdesc="The Linux Kernel and modules"
pkgdesc="The Linux Kernel and modules - Raspberry Pi"
groups=('base')
depends=('coreutils' 'module-init-tools>=3.12-2')
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
@ -83,8 +81,8 @@ package_kernel26-raspberrypi() {
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'rt2500' 'nouveau-drm')
provides=('kernel26=2.6.38')
conflicts=('kernel26' 'kernel26-tegra' 'kernel26-omap')
provides=('kernel26=2.6.35.7')
conflicts=('kernel26' 'kernel26-trimslice')
install=kernel26.install
optdepends=('crda: to set the correct wireless channels of your country')
@ -115,9 +113,9 @@ package_kernel26-raspberrypi() {
}
package_kernel26-headers-raspberrypi() {
pkgdesc="Header files and scripts for building modules for kernel26"
provides=('kernel26-headers=2.35.7')
conflicts=('kernel26-headers' 'kernel26-headers-tegra' 'kernel26-headers-omap')
pkgdesc="Header files and scripts for building modules for kernel26 - Raspberry Pi"
provides=('kernel26-headers=2.6.35.7')
conflicts=('kernel26-headers' 'kernel26-headers-trimslice')
KARCH=arm
mkdir -p ${pkgdir}/lib/modules/${_kernver}
@ -239,5 +237,5 @@ package_kernel26-headers-raspberrypi() {
esac
done
# remove unneeded architectures
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa,x86}
}