2023-03-09 18:05:06 +00:00
|
|
|
# Reference: <https://postmarketos.org/mainline>
|
|
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
|
|
# Maintainer: Ferass El Hafidi <vitali64pmemail@protonmail.com>
|
|
|
|
# Co-Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
|
|
|
pkgname=linux-postmarketos-amlogic
|
2023-09-24 16:07:38 +00:00
|
|
|
pkgver=6.5.5
|
2023-06-29 12:38:40 +00:00
|
|
|
pkgrel=0
|
2023-03-09 18:05:06 +00:00
|
|
|
pkgdesc="Mainline kernel for Amlogic devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
_flavor=postmarketos-amlogic
|
|
|
|
url="https://kernel.org"
|
|
|
|
license="GPL-2.0-only"
|
2023-03-21 19:28:58 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-community
|
|
|
|
"
|
2023-03-09 18:05:06 +00:00
|
|
|
makedepends="
|
|
|
|
bash
|
|
|
|
bc
|
|
|
|
bison
|
|
|
|
devicepkg-dev
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
gmp-dev
|
|
|
|
mpc1-dev
|
|
|
|
mpfr-dev
|
|
|
|
findutils
|
|
|
|
postmarketos-installkernel
|
|
|
|
gzip
|
|
|
|
"
|
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$pkgver.tar.xz::https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$pkgver.tar.xz
|
|
|
|
$_config
|
2023-06-29 12:38:40 +00:00
|
|
|
0001-add-xiaomi-once-support.patch
|
|
|
|
0002-add-x96-mini-support.patch
|
2023-03-09 18:05:06 +00:00
|
|
|
"
|
|
|
|
builddir="$srcdir/linux-$pkgver"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp -v "$srcdir"/$_config .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
2023-06-29 12:38:40 +00:00
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
2023-03-09 18:05:06 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make install modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
2023-06-29 12:38:40 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
2023-03-09 18:05:06 +00:00
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-09-24 16:07:38 +00:00
|
|
|
c95ad978847915e044146f254c9cec7d3d32e4afc28a5cbbeec2f0591aef28f584f0a273f7bb5bd8706cd7cc849dfd0cdb764fbc2c84e8b3c1b0f30fb6bfd306 linux-postmarketos-amlogic-6.5.5.tar.xz
|
|
|
|
d2a663bbd6842b612b4bcba8a00035e5f1ab20d62fd1f94c0cd57095c2c2e3095b69faddff5f16b4d7f73228cfbcb59000dcbe00276888c2279dbc2a0f513a24 config-postmarketos-amlogic.aarch64
|
2023-06-29 12:38:40 +00:00
|
|
|
9d664c9cc6168a7aa4804662886941744e92c0748e7b7b4fad2472740a4931c89a60cbc4a519913b58933718d02f33f48ff72ea182d912bcd50014ca8d7ff110 0001-add-xiaomi-once-support.patch
|
|
|
|
3ea569b69297fdb196006b1e1bd82a9dec8d89362ec3ef17918018b6c573143f299a968b8227119660442f6a6e0b795aa4c8a272f6bc23e9622f3fd41ddc97eb 0002-add-x96-mini-support.patch
|
2023-03-09 18:05:06 +00:00
|
|
|
"
|