diff --git a/core/linux-armv5-rc/PKGBUILD b/core/linux-armv5-rc/PKGBUILD index 0324d7a27..580d77cb6 100644 --- a/core/linux-armv5-rc/PKGBUILD +++ b/core/linux-armv5-rc/PKGBUILD @@ -3,18 +3,20 @@ buildarch=2 -pkgbase=linux-armv5-rc -_srcname=linux-3.17-rc7 +pkgbase=linux-armv5 +_srcname=linux-3.17 _kernelname=${pkgbase#linux} _desc="ARMv5 based platforms" pkgver=3.17.0 -pkgrel=7 +pkgrel=1 arch=('arm') url="http://www.kernel.org/" license=('GPL2') makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git') options=('!strip') -source=("http://www.kernel.org/pub/linux/kernel/v3.x/testing/${_srcname}.tar.xz" +source=("http://www.kernel.org/pub/linux/kernel/v3.x/${_srcname}.tar.xz" + #"http://www.kernel.org/pub/linux/kernel/v3.x/patch-${pkgver}.xz" + #"git://git.code.sf.net/p/aufs/aufs3-standalone#branch=aufs${pkgver%.*}" "git://git.code.sf.net/p/aufs/aufs3-standalone#branch=aufs3.x-rcN" '0001-Added-ASoC-driver-for-i.MX233-s-builtin-ADC-DAC-code.patch' '0001-arm-dts-imx23-olinuxino-enable-mxs-builtin-audio.patch' @@ -22,7 +24,7 @@ source=("http://www.kernel.org/pub/linux/kernel/v3.x/testing/${_srcname}.tar.xz" '0001-imx23-I2C-fixes.patch' 'archlinuxarm.patch' 'config') -md5sums=('4c335a32a4c5c9d5f5367d3abe3cb4e2' +md5sums=('fb30d0f29214d75cddd2faa94f73d5cf' 'SKIP' 'e3911eef007c122d23fd8ad7e91d69bf' '3a1e689563354c2f9f2d2764e1baa334' @@ -34,6 +36,9 @@ md5sums=('4c335a32a4c5c9d5f5367d3abe3cb4e2' prepare() { cd "${srcdir}/${_srcname}" + # add upstream patch + #git apply "${srcdir}/patch-${pkgver}" + # ALARM patches git apply ../0001-Added-ASoC-driver-for-i.MX233-s-builtin-ADC-DAC-code.patch git apply ../0001-arm-dts-imx23-olinuxino-enable-mxs-builtin-audio.patch @@ -162,12 +167,12 @@ _package-headers() { done # 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-mvebu - cp -a arch/$KARCH/mach-mvebu/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/mach-mvebu/ - mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/plat-orion - cp -a arch/$KARCH/plat-orion/include ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/plat-orion/ + mkdir -p ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH + cp -a arch/$KARCH/include ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH/ + mkdir -p ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH/mach-mvebu + cp -a arch/$KARCH/mach-mvebu/include ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH/mach-mvebu/ + mkdir -p ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH/plat-orion + cp -a arch/$KARCH/plat-orion/include ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH/plat-orion/ # copy files necessary for later builds, like nvidia and vmware cp Module.symvers "${pkgdir}/usr/lib/modules/${_kernver}/build" @@ -230,6 +235,7 @@ _package-headers() { # add xfs and shmem for aufs building mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/fs/xfs" mkdir -p "${pkgdir}/usr/lib/modules/${_kernver}/build/mm" + cp fs/xfs/xfs_sb.h "${pkgdir}/usr/lib/modules/${_kernver}/build/fs/xfs/xfs_sb.h" # copy in Kconfig files for i in $(find . -name "Kconfig*"); do