core/linux-odroid-c2 to 3.14.65-2

This commit is contained in:
Kevin Mihelich 2016-05-26 12:37:33 +00:00
parent 49648686de
commit d349f9a6a0
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,24 @@
From 7474934d7294f066a04d258fdcb364bbe3c92a85 Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Thu, 26 May 2016 06:29:07 -0600
Subject: [PATCH] add extra errata 843419 build flags
---
arch/arm64/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile
index 18ea69f..59c5e48 100644
--- a/arch/arm64/Makefile
+++ b/arch/arm64/Makefile
@@ -37,6 +37,7 @@ CHECKFLAGS += -D__aarch64__
ifeq ($(CONFIG_ARM64_ERRATUM_843419), y)
KBUILD_CFLAGS_MODULE += -mcmodel=large
+KBUILD_CFLAGS_MODULE += $(call cc-option, -mpc-relative-literal-loads)
endif
# Default value
--
2.7.2

View file

@ -9,7 +9,7 @@ _srcname=linux-${_commit}
_kernelname=${pkgbase#linux}
_desc="ODROID-C2"
pkgver=3.14.65
pkgrel=1
pkgrel=2
arch=('aarch64')
url="https://github.com/hardkernel/linux/tree/odroidc2-3.14.y"
license=('GPL2')
@ -17,11 +17,13 @@ makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git')
options=('!strip')
source=("https://github.com/hardkernel/linux/archive/${_commit}.tar.gz"
"git+https://github.com/mdrjr/c2_bootini.git"
'0001-add-extra-errata-843419-build-flags.patch'
'config'
'linux.preset'
'amlogic.service')
md5sums=('037581ead3a6dc63843a69b65890b8ce'
'SKIP'
'3c4a5342ac88d86b4bf99e7d0b8b2977'
'ac02240150a75c2e1773e6e0f7573f30'
'85fd3026c435ffa6d7c2d7f9767b4251'
'b8956789318f49cec5b8bb0b41654a9b')
@ -37,6 +39,7 @@ prepare() {
# don't run depmod on 'make install'. We'll do this ourselves in packaging
sed -i '2iexit 0' scripts/depmod.sh
patch -p1 -i ../0001-add-extra-errata-843419-build-flags.patch
cp include/linux/compiler-gcc5.h include/linux/compiler-gcc6.h
}