59 lines
1.5 KiB
Text
59 lines
1.5 KiB
Text
# Reference: <https://postmarketos.org/vendorkernel>
|
|
# Kernel config based on: arch/arm64/configs/(CHANGEME!)
|
|
|
|
pkgname=linux-pine64-pinenote
|
|
pkgver=6.3.10
|
|
pkgrel=2
|
|
pkgdesc="Pine64 PineNote kernel fork"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
_flavor="pine64-pinenote"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps pmb:cross-native"
|
|
makedepends="
|
|
bash
|
|
bc
|
|
bison
|
|
devicepkg-dev
|
|
findutils
|
|
flex
|
|
openssl-dev
|
|
perl
|
|
"
|
|
|
|
# Source
|
|
_repository="linux"
|
|
_commit="616dc3bce5598d47a42e6987199c07e5d3ce7729"
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/m-weigand/linux/archive/$_commit.tar.gz
|
|
$_config
|
|
"
|
|
builddir="$srcdir/$_repository-$_commit"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
REPLACE_GCCH=0 \
|
|
. downstreamkernel_prepare
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
package() {
|
|
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor"
|
|
|
|
make modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
|
}
|
|
|
|
sha512sums="
|
|
7ce7e734e31eaad89fb719b2a43600df1ffafca2c9db37df2a30df1b0df9f524585e2cd7ba89fb50f4278497abd2c1704038badcc6ce9d079929e042622a5882 linux-pine64-pinenote-616dc3bce5598d47a42e6987199c07e5d3ce7729.tar.gz
|
|
97e8c1b137768ff7722ad3d975ad2496490c11249aaf9ffc4ee4d77b8935e24f59244cc6346bafd9b0c9fd5751f2ccfa24def2256f03b995c46f8906d8c8fe9c config-pine64-pinenote.aarch64
|
|
"
|