core/linux-odroid-c2: include arm arch headers (#1498)

Without this, it's not possible to build external modules, since there
are lots of cross-arch (arm64->arm) includes.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
This commit is contained in:
Jason A. Donenfeld 2017-07-05 04:32:15 +02:00 committed by Kevin Mihelich
parent ff8e972caa
commit 9679acf182

View file

@ -9,7 +9,7 @@ _srcname=linux-${_commit}
_kernelname=${pkgbase#linux} _kernelname=${pkgbase#linux}
_desc="ODROID-C2" _desc="ODROID-C2"
pkgver=3.14.79 pkgver=3.14.79
pkgrel=25 pkgrel=26
arch=('aarch64') arch=('aarch64')
url="https://github.com/hardkernel/linux/tree/odroidc2-3.14.y" url="https://github.com/hardkernel/linux/tree/odroidc2-3.14.y"
license=('GPL2') license=('GPL2')
@ -85,6 +85,7 @@ _package() {
cd "${srcdir}/${_srcname}" cd "${srcdir}/${_srcname}"
KARCH=arm64 KARCH=arm64
KSUBARCH=arm
# get kernel version # get kernel version
_kernver="$(make kernelrelease)" _kernver="$(make kernelrelease)"
@ -161,6 +162,8 @@ _package-headers() {
# copy arch includes for external modules # copy arch includes for external modules
mkdir -p ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH mkdir -p ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KARCH
cp -a arch/$KARCH/include ${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/$KSUBARCH
cp -a arch/$KSUBARCH/include ${pkgdir}/usr/lib/modules/${_kernver}/build/arch/$KSUBARCH/
# copy files necessary for later builds, like nvidia and vmware # copy files necessary for later builds, like nvidia and vmware
cp Module.symvers "${pkgdir}/usr/lib/modules/${_kernver}/build" cp Module.symvers "${pkgdir}/usr/lib/modules/${_kernver}/build"