8ea01b4219
Also enable CONFIG_FW_LOADER_COMPRESS_ZSTD for zstd compression of firmware. See https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/60282 Signed-off-by: Ferass El Hafidi <funderscore@postmarketos.org> [ci:skip-build]: Already built successfully in CI.
71 lines
2.1 KiB
Text
71 lines
2.1 KiB
Text
# Reference: <https://postmarketos.org/mainline>
|
|
# Kernel config based on: arch/arm64/configs/defconfig
|
|
# Maintainer: Ferass El Hafidi <funderscore@postmarketos.org>
|
|
# Co-Maintainer: exkc <exxxxkc@getgoogleoff.me>
|
|
pkgname=linux-postmarketos-amlogic
|
|
pkgver=6.7.2
|
|
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
|
|
"
|
|
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="
|
|
707fa401bf736661038f11222db00ae8369a18ca6c15275be7e5153572b2b6ffc1fc0eb7374d0e759ed0475d1428d06dcbea2f8cafa7a5ace78aba5349e3e8f1 linux-postmarketos-amlogic-6.7.2.tar.xz
|
|
bffcd836e86834b9b0d6d94bc1cd929aa2c04eeaaf7fa821e879922d2d00c7fa8ada3c60ac609a8247c128823ed233405bedae27c6b3d5d63804866177f6f825 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
|
|
"
|