beside the migration to 6.16, UDMABUF was also enabled to satisfy the kconfig check Signed-off-by: Robert Eckelmann <longnoserob@postmarketos.org> Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6868
69 lines
1.9 KiB
Bash
69 lines
1.9 KiB
Bash
# Reference: https://github.com/archlinuxarm/PKGBUILDs/blob/d2ee78cab3c298583eb3f3bed4d75970f54885be/core/linux-armv7/config
|
|
# Kernel config based on: ~2021 mainline kernel of the linux-armv7 package (5.x mainline) from archlinux arm
|
|
# Maintainer: Robert Eckelmann <longnoserob@postmarketos.org>
|
|
# Co-Maintainer: exkc <exkc@exkc.moe>
|
|
|
|
pkgname=linux-postmarketos-marvell
|
|
pkgver=6.16
|
|
pkgrel=0
|
|
pkgdesc="mainline (stable) for Marvell SoC"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
_flavor="${pkgname#linux-}"
|
|
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
|
|
findutils
|
|
flex
|
|
openssl-dev
|
|
perl
|
|
xz
|
|
"
|
|
replaces="linux-postmarketos-marvell-dove"
|
|
|
|
# Source
|
|
_config="config-$_flavor.$arch"
|
|
source="
|
|
$pkgname-$pkgver.tar.xz::https://cdn.kernel.org/pub/linux/kernel/v${pkgver%%.*}.x/linux-$pkgver.tar.xz
|
|
$_config
|
|
"
|
|
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() {
|
|
install -Dm644 "$builddir/arch/$_carch/boot/zImage" \
|
|
"$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="
|
|
55a00f89ad6db6db2e26ff5dc5cfc96bbf6654e5bd5d17d2a3b944a47640367e54139716d230923187bebc6cb7756edc9511a620fb8abc6f32c50a658a734784 linux-postmarketos-marvell-6.16.tar.xz
|
|
63ff36f1a03a4e082ed96422e275024a6e81589fb45732fc1a5342d4ee36cf0d4bbc16cfb346b71c652e1c0dbb14ee805cd6c8073ebd644efde4328e9cabf6b1 config-postmarketos-marvell.armv7
|
|
"
|