summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Woudstra2023-10-07 12:05:23 +0200
committerEric Woudstra2023-10-07 12:05:23 +0200
commit4dec32a92e90be65b29a2c270ce249af997dc57f (patch)
treedf593e48c12a9308234fd0379a74e56711690fb3
parentd9952ecb43fc40632e7f63616cea6fa902b97006 (diff)
downloadaur-4dec32a92e90be65b29a2c270ce249af997dc57f.tar.gz
Enable cross-compile
-rw-r--r--.SRCINFO3
-rw-r--r--PKGBUILD5
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 2b52808b9366..f4d8ab8c5bba 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,9 @@
pkgbase = linux-bpir64-git
pkgver = 6.3.9.bpi
- pkgrel = 4
+ pkgrel = 5
url = http://www.kernel.org/
arch = aarch64
+ arch = x86_64
license = GPL2
makedepends = kmod
makedepends = inetutils
diff --git a/PKGBUILD b/PKGBUILD
index 8094dbf84433..69593ee62698 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -20,8 +20,8 @@ _gitroot="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux"
_kernelname=${pkgbase#linux}
_desc="AArch64 kernel for BPI-R64 and BPI-R3"
pkgver=6.3.9.bpi
-pkgrel=4
-arch=('aarch64')
+pkgrel=5
+arch=('aarch64' 'x86_64')
url="http://www.kernel.org/"
license=('GPL2')
makedepends=('kmod' 'inetutils' 'bc' 'git')
@@ -43,6 +43,7 @@ source=('defconfig'
md5sums=(SKIP SKIP SKIP SKIP SKIP SKIP SKIP SKIP SKIP)
export LOCALVERSION=""
+[[ "$(uname -m)" != "aarch64" ]] && export MAKEFLAGS+=" ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-"
[[ "$_lto" == "true" ]] && _llvm="LLVM=1" || _llvm=""