From be98e742bfd3e8f1aeeed06ffa856b6eb49e4d23 Mon Sep 17 00:00:00 2001 From: John Regan Date: Sat, 2 Jan 2016 16:08:06 +0000 Subject: [PATCH] rpi-kernel: fix includes for rpi2 --- srcpkgs/rpi-kernel/template | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/srcpkgs/rpi-kernel/template b/srcpkgs/rpi-kernel/template index 3a364f1234..374d4a2354 100644 --- a/srcpkgs/rpi-kernel/template +++ b/srcpkgs/rpi-kernel/template @@ -5,7 +5,7 @@ _gitshort="${_githash:0:7}" pkgname=rpi-kernel version=4.1.15 -revision=1 +revision=2 wrksrc="linux-${_githash}" maintainer="Juan RP " homepage="http://www.kernel.org" @@ -128,9 +128,18 @@ do_install() { chmod og-w -R ${hdrdest}/scripts # copy arch includes for external modules - mkdir -p ${hdrdest}/arch/arm/mach-bcm2708 + mkdir -p ${hdrdest}/arch/arm cp -a arch/arm/include ${hdrdest}/arch/arm - cp -a arch/arm/mach-bcm2708/include ${hdrdest}/arch/arm/mach-bcm2708 + case "$XBPS_TARGET_MACHINE" in + armv7l*) + mkdir -p ${hdrdest}/arch/arm/mach-bcm2709 + cp -a arch/arm/mach-bcm2709/include ${hdrdest}/arch/arm/mach-bcm2709 + ;; + armv6l*) + mkdir -p ${hdrdest}/arch/arm/mach-bcm2708 + cp -a arch/arm/mach-bcm2708/include ${hdrdest}/arch/arm/mach-bcm2708 + ;; + esac mkdir -p ${hdrdest}/arch/arm/kernel