96179b88df
Upgrade to a newer 5.18.3 commit that adds this support, and enable the relevant kconfig options.
61 lines
1.7 KiB
Text
61 lines
1.7 KiB
Text
# Maintainer: Ultracoolguy <ultracoolguy@disroot.org>
|
|
# Kernel config based on: defconfig, msm8953.config, and device configs
|
|
|
|
_flavor="postmarketos-qcom-msm8953"
|
|
pkgname=linux-$_flavor
|
|
pkgver=5.18.3
|
|
pkgrel=2
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8953 devices"
|
|
arch="aarch64"
|
|
url="https://github.com/msm8953-mainline/linux"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-waydroid
|
|
pmb:kconfigcheck-nftables
|
|
"
|
|
makedepends="
|
|
bison
|
|
findutils
|
|
flex
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
|
|
_carch="arm64"
|
|
# Source
|
|
_commit="57f6fd0feb9b81ab5fda48e47e9a7f01d39be243"
|
|
source="
|
|
$pkgname-$_commit.tar.gz::https://github.com/msm8953-mainline/linux/archive/$_commit.tar.gz
|
|
config-$_flavor.$arch
|
|
"
|
|
builddir="$srcdir/linux-$_commit"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$arch" .config
|
|
}
|
|
|
|
build() {
|
|
unset LDFLAGS
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
KBUILD_BUILD_VERSION=$((pkgrel + 1 ))
|
|
}
|
|
|
|
package() {
|
|
mkdir -p "$pkgdir"/boot
|
|
make zinstall modules_install dtbs_install \
|
|
ARCH="$_carch" \
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
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="
|
|
63493a9551ddb3bc8ffb7a3ced99860c6630f79e1b4705b793767e0ea5668ba0c7438d3acf79092fc84390d80490252dfe391610571c47a304f5f78bf409460d linux-postmarketos-qcom-msm8953-57f6fd0feb9b81ab5fda48e47e9a7f01d39be243.tar.gz
|
|
b982f2eb79b2a72e4fbe71c263d16056398a3eddd1a19e8f062d2d39cf34d0743e3b50c61cebe8cef41293d09c9fbf75f8e5580b8fedd8f018fb98b1acbad198 config-postmarketos-qcom-msm8953.aarch64
|
|
"
|