2023-03-05 14:42:46 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
|
|
|
# Kernel config based on: arch/arm64/configs/pinenote_defconfig
|
|
|
|
|
|
|
|
pkgname=linux-pine64-pinenote
|
2023-07-27 06:48:14 +00:00
|
|
|
pkgver=6.3.10
|
2024-07-30 10:31:04 +00:00
|
|
|
pkgrel=1
|
2023-03-05 14:42:46 +00:00
|
|
|
pkgdesc="Pine64 PineNote close to mainline 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="bison findutils flex installkernel openssl-dev perl"
|
|
|
|
|
|
|
|
# Source
|
|
|
|
_config="config-$_flavor.$arch"
|
2023-07-27 06:48:14 +00:00
|
|
|
_commit="616dc3bce5598d47a42e6987199c07e5d3ce7729"
|
2023-03-05 14:42:46 +00:00
|
|
|
|
|
|
|
source="
|
2023-06-01 16:10:56 +00:00
|
|
|
$pkgname-$pkgver.tar.gz::https://github.com/m-weigand/linux/archive/$_commit.tar.gz
|
2023-03-05 14:42:46 +00:00
|
|
|
$_config
|
|
|
|
"
|
2023-06-01 16:10:56 +00:00
|
|
|
builddir="$srcdir/linux-$_commit"
|
2023-03-05 14:42:46 +00:00
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-06-01 16:10:56 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-$_flavor"
|
2023-03-05 14:42:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
|
|
|
|
install -Dm644 "$builddir/arch/$_carch/boot/Image" \
|
|
|
|
"$pkgdir/boot/vmlinuz"
|
|
|
|
|
|
|
|
make modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot/ \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-07-27 06:48:14 +00:00
|
|
|
7ce7e734e31eaad89fb719b2a43600df1ffafca2c9db37df2a30df1b0df9f524585e2cd7ba89fb50f4278497abd2c1704038badcc6ce9d079929e042622a5882 linux-pine64-pinenote-6.3.10.tar.gz
|
2024-07-30 10:31:04 +00:00
|
|
|
a05ccc590de8e907dcdb7326a21791e85bd9bae5de2ce67e14e51dc4f8628f2c54dd315f84f6521911054a8130de752c1cc87fde0d03ea128ae1557b5e1c7f7d config-pine64-pinenote.aarch64
|
2023-03-05 14:42:46 +00:00
|
|
|
"
|