kernel26-omap packaging fixes

This commit is contained in:
Kevin Mihelich 2011-05-17 19:33:58 -04:00
parent 77877e571b
commit 84989156f1

View file

@ -3,13 +3,13 @@
# Contributor: Julian Langschaedel <meta.rb@gmail.com>
# OMAP 3/4 kernel and kernel headers
# - note: any other kernel packages should not include headers package
# - note: any other kernel packages should include headers for that march
# - there will be no v7 kernel26 package, each march will be tagged individually
noautobuild=1
plugrel=1
pkgbase="kernel26"
pkgname=('kernel26-omap' 'kernel26-headers')
pkgname=('kernel26-omap' 'kernel26-headers-omap')
_kernelname=${pkgname#kernel26}
_basekernel=2.6.38
pkgver=${_basekernel}.6
@ -19,7 +19,6 @@ pkgrel=${_pkgrel}
makedepends=('xmlto' 'docbook-xsl' 'uboot-mkimage' 'make')
_patchname="patch-${pkgver}-${_pkgrel}-ARCH"
#_patchname="patch-${pkgver}-1-ARCH"
replaces=('kernel26')
arch=(armv7)
CARCH=armv7
KARCH=arm
@ -55,7 +54,7 @@ build() {
#make oldconfig # using old config from previous kernel version
# Copy back our configuration (use with new kernel version)
#cp ./.config ../${_basekernel}.config
cp ./.config ../${_basekernel}.config
# Halt the build for configuration only
#return 1
@ -73,6 +72,7 @@ package_kernel26-omap() {
'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
'gspcav1' 'atl2' 'wlan-ng26' 'rt2500' 'nouveau-drm' 'kernel26')
provides=('kernel26')
install=kernel26.install
optdepends=('crda: to set the correct wireless channels of your country')
@ -99,8 +99,10 @@ package_kernel26-omap() {
find "$pkgdir" -name '*.ko' -exec gzip -9 {} \;
}
package_kernel26-headers() {
package_kernel26-headers-omap() {
pkgdesc="Header files and scripts for building modules for kernel26"
replaces=('kernel26-headers')
provides=('kernel26-headers')
KARCH=arm
mkdir -p ${pkgdir}/lib/modules/${_kernver}
@ -122,8 +124,8 @@ package_kernel26-headers() {
# copy arch includes for external modules
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH
cp -a arch/$KARCH/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-kirkwood
cp -a arch/$KARCH/mach-kirkwood/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-kirkwood/
mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-omap2
cp -a arch/$KARCH/mach-omap2/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-omap2/
# copy files necessary for later builds, like nvidia and vmware
cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}