diff options
author | eggz | 2019-08-04 12:33:35 +0200 |
---|---|---|
committer | eggz | 2019-08-04 12:33:35 +0200 |
commit | 9824816f06c1765a65192f0cb72239dc108e23fa (patch) | |
tree | 7684bc347030053e11f135c1b64a54231eb5f3d1 | |
parent | 90696e163083042c4d231dd19eee09a11af4b034 (diff) | |
download | aur-9824816f06c1765a65192f0cb72239dc108e23fa.tar.gz |
Forced zenv1 arch on build
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 5 |
2 files changed, 5 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgbase = linux-amd-raven pkgver = 5.1.v.21 - pkgrel = 1 + pkgrel = 2 url = https://www.kernel.org/ arch = x86_64 license = GPL2 @@ -4,7 +4,7 @@ pkgbase=linux-amd-raven _srcname=linux gitver=v5.1.21 pkgver=5.1.v.21 -pkgrel=1 +pkgrel=2 arch=('x86_64') url="https://www.kernel.org/" license=('GPL2') @@ -61,6 +61,9 @@ prepare() { build() { cd "${_srcname}" + #Force zenv1 architecture optimisation. + export CFLAGS="-march=znver1 -mtune=znver1 -O2 -pipe -fstack-protector-strong" + export CXXFLAGS="${CFLAGS}" make ${MAKEFLAGS} LOCALVERSION= bzImage modules } |