summaryrefslogtreecommitdiff
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2021-02-20 15:03:51 +0100
committerJaron Kent-Dobias <jaron@kent-dobias.com>2021-02-20 15:03:51 +0100
commit19757ebc6c0b2383c37feb36c6631ad3ec694d58 (patch)
treedf01cc3a6cabf999a27538d38e3c32acbad29250 /PKGBUILD
parentfbf4332aadd3aecf9c8bb0b12986acd8c87720a5 (diff)
downloadlinux-pinebook-19757ebc6c0b2383c37feb36c6631ad3ec694d58.tar.gz
linux-pinebook-19757ebc6c0b2383c37feb36c6631ad3ec694d58.tar.bz2
linux-pinebook-19757ebc6c0b2383c37feb36c6631ad3ec694d58.zip
Working 5.10.17 cross compile config.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD28
1 files changed, 13 insertions, 15 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 218ec5a..2b97353 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,10 +2,10 @@
# Maintainer: Jaron Kent-Dobias <jaron@kent-dobias.com>
# Contributor: Vasily Khoruzhick <anarsoul@gmail.com>
-buildarch=8
+#buildarch=8
pkgbase=linux-pinebook
-pkgver=5.10.12.pinebook1
+pkgver=5.10.17.pinebook1
pkgrel=1
_desc="AArch64 multi-platform with Pinebook support."
_srctag=v${pkgver%.*}-${pkgver##*.}
@@ -13,15 +13,12 @@ url="https://git.kent-dobias.com/system/linux/log/?h=$_srctag"
_kernelname=${pkgbase#linux}
arch=('aarch64')
license=('GPL2')
-makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'uboot-tools' 'dtc')
+makedepends=('xmlto' 'docbook-xsl' 'kmod' 'inetutils' 'bc' 'git' 'uboot-tools' 'dtc' 'clang' 'llvm' 'lld')
options=('!strip')
_srcname=pinebook-linux
source=(
"$_srcname::git+https://git.kent-dobias.com/system/linux?signed#tag=$_srctag"
'config'
- 'kernel.its'
- 'kernel.keyblock'
- 'kernel_data_key.vbprivk'
'linux.preset'
'99-linux.hook'
)
@@ -32,13 +29,14 @@ validpgpkeys=(
'D214744D04A2CC409C37D331534FC3B63E48F730' # Jaron Kent-Dobias
)
md5sums=('SKIP'
- '479a4ad517b00cb74df8d47ee55e6931'
- '11a4f35c50f0bde59c30182aa7b797b7'
- '61c5ff73c136ed07a7aadbf58db3d96a'
- '584777ae88bce2c5659960151b64c7d8'
+ '9e6362ffdfd93148cf8e1157d0a94d72'
'1bcc6c5d103b31523c5077b7c89f2b79'
'1d4477026533efaa0358a40855d50a83')
+export KBUILD_BUILD_HOST=archlinux
+export KBUILD_BUILD_USER=$pkgbase
+export KBUILD_BUILD_TIMESTAMP="$(date -Ru${SOURCE_DATE_EPOCH:+d @$SOURCE_DATE_EPOCH})"
+
prepare() {
cd "${srcdir}/${_srcname}"
@@ -55,7 +53,7 @@ build() {
cd "${srcdir}/${_srcname}"
# get kernel version
- make prepare
+ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make LLVM=1 prepare
# load configuration
# Configure the kernel. Replace the line below with one of your choice.
@@ -79,7 +77,7 @@ build() {
# build!
unset LDFLAGS
- make -j9 ${MAKEFLAGS} Image Image.gz modules dtbs
+ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make -j9 LLVM=1 ${MAKEFLAGS} Image Image.gz modules dtbs
}
_package() {
@@ -97,13 +95,13 @@ _package() {
KARCH=arm64
# get kernel version
- _kernver="$(make kernelrelease)"
+ _kernver="$(ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make LLVM=1 kernelrelease)"
_basekernel=${_kernver%%-*}
_basekernel=${_basekernel%.*}
mkdir -p "${pkgdir}"/{lib/modules,lib/firmware}
- make INSTALL_MOD_PATH="${pkgdir}" modules_install
- make INSTALL_DTBS_PATH="${pkgdir}/boot/dtbs" dtbs_install
+ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make LLVM=1 INSTALL_MOD_PATH="${pkgdir}" modules_install
+ ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- make LLVM=1 INSTALL_DTBS_PATH="${pkgdir}/boot/dtbs" dtbs_install
cp arch/$KARCH/boot/Image{,.gz} "${pkgdir}/boot"
# set correct depmod command for install