cf956551f9
This includes the "Alta" and "Solitude" boards, the latter of which I also introduce a device package for in a later patch. It should be easy to introduce support for the former, but I don't have the hardware to test that on. The two new patches have been merged and will be included in Linux 6.7 as I understand.
75 lines
2.6 KiB
Text
75 lines
2.6 KiB
Text
# 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
|
|
pkgver=6.5.5
|
|
pkgrel=1
|
|
pkgdesc="Mainline kernel for Amlogic devices"
|
|
arch="aarch64"
|
|
_carch="arm64"
|
|
_flavor=postmarketos-amlogic
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
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
|
|
0001-ARM64-dts-meson-gxl-add-support-for-the-Xiaomi-Mi-Bo.patch
|
|
0002-add-x96-mini-support.patch
|
|
0003-dt-bindings-arm-amlogic-add-libretech-cottonwood-sup.patch
|
|
0004-arm64-dts-amlogic-add-libretech-cottonwood-support.patch
|
|
"
|
|
builddir="$srcdir/linux-$pkgver"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp -v "$srcdir"/$_config .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
}
|
|
|
|
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" \
|
|
INSTALL_DTBS_PATH="$pkgdir/boot/dtbs"
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
"$pkgdir/usr/share/kernel/$_flavor/kernel.release"
|
|
}
|
|
|
|
sha512sums="
|
|
c95ad978847915e044146f254c9cec7d3d32e4afc28a5cbbeec2f0591aef28f584f0a273f7bb5bd8706cd7cc849dfd0cdb764fbc2c84e8b3c1b0f30fb6bfd306 linux-postmarketos-amlogic-6.5.5.tar.xz
|
|
d2a663bbd6842b612b4bcba8a00035e5f1ab20d62fd1f94c0cd57095c2c2e3095b69faddff5f16b4d7f73228cfbcb59000dcbe00276888c2279dbc2a0f513a24 config-postmarketos-amlogic.aarch64
|
|
2c40c1c32eec37c33034f7c11a0423ce6a752cfb98bab38198a64c20f24545436c3a53f0d50c60236518585d42489314123636395242b3d013d51d65f1977a51 0001-ARM64-dts-meson-gxl-add-support-for-the-Xiaomi-Mi-Bo.patch
|
|
4538994c7d3bbb0c4740e8ce108b6838618be239a549e407ca239f3ceca8eed29b5a9ca75d162567dbc06b13ac7caacc61ebf55b247ce6fe122fecc7e5b275d5 0002-add-x96-mini-support.patch
|
|
141f0cd494dc915ad4bc6bec02b830f351d497b3e4f8bbbcd83240d72aaabcf0ad5fad81f91bea538e301aa483cd482b06405f64f522d5c8cc8c915f0e7f0b63 0003-dt-bindings-arm-amlogic-add-libretech-cottonwood-sup.patch
|
|
a0ff579a9bd82baa5c0d1592fb3d0a0c2998fd79374b07a25f9401095a230cc22f24ecd701e154baf95310a5dd55d1fc882c97b340098171ea07f8fe0b982b98 0004-arm64-dts-amlogic-add-libretech-cottonwood-support.patch
|
|
"
|