diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 13 insertions, 15 deletions
@@ -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 |