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-06-29 12:38:40 +00:00
|
|
|
pkgver=6.4
|
|
|
|
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-06-29 12:38:40 +00:00
|
|
|
11a48b25e0b513782d3b89101c2ec8dd9cefd6ce08dc63a91137903b66392aa72ca1fe32816710673af84dd47de3ab8738056a6af93dc0d5e60ef4b869b49928 linux-postmarketos-amlogic-6.4.tar.xz
|
2023-06-02 08:17:45 +00:00
|
|
|
6268c09fcdba61a9800b1991fad1fe7ef855c0361f40a6d9e3bb20509664369bbcff19fddae322f30c4d08e29a149441b722c2caf9c19c9446d47ee3e95b711a 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
|
|
|
"
|