2021-06-30 19:22:57 +00:00
|
|
|
# Maintainer: Ultracoolguy <ultracoolguy@disroot.org>
|
2021-06-17 00:09:42 +00:00
|
|
|
# Kernel config based on: defconfig, msm8953.config, and device configs
|
2020-06-20 21:24:50 +00:00
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-msm8953"
|
|
|
|
pkgname=linux-$_flavor
|
2022-09-17 09:39:20 +00:00
|
|
|
pkgver=5.18.3
|
2022-11-18 23:20:34 +00:00
|
|
|
pkgrel=2
|
2020-06-20 21:24:50 +00:00
|
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8953 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
url="https://github.com/msm8953-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
2021-07-19 21:40:01 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
2022-10-08 18:36:46 +00:00
|
|
|
pmb:kconfigcheck-waydroid
|
2021-07-19 21:40:01 +00:00
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
"
|
2021-10-12 10:11:12 +00:00
|
|
|
makedepends="
|
|
|
|
bison
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
|
|
|
postmarketos-installkernel
|
|
|
|
"
|
2020-06-20 21:24:50 +00:00
|
|
|
|
|
|
|
_carch="arm64"
|
|
|
|
# Source
|
2022-11-18 23:20:34 +00:00
|
|
|
_commit="57f6fd0feb9b81ab5fda48e47e9a7f01d39be243"
|
2020-06-20 21:24:50 +00:00
|
|
|
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" \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2020-06-20 21:24:50 +00:00
|
|
|
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
|
|
|
|
|
|
|
install -D "$builddir"/include/config/kernel.release \
|
|
|
|
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
|
|
|
}
|
2021-06-06 01:20:37 +00:00
|
|
|
sha512sums="
|
2022-11-18 23:20:34 +00:00
|
|
|
63493a9551ddb3bc8ffb7a3ced99860c6630f79e1b4705b793767e0ea5668ba0c7438d3acf79092fc84390d80490252dfe391610571c47a304f5f78bf409460d linux-postmarketos-qcom-msm8953-57f6fd0feb9b81ab5fda48e47e9a7f01d39be243.tar.gz
|
|
|
|
b982f2eb79b2a72e4fbe71c263d16056398a3eddd1a19e8f062d2d39cf34d0743e3b50c61cebe8cef41293d09c9fbf75f8e5580b8fedd8f018fb98b1acbad198 config-postmarketos-qcom-msm8953.aarch64
|
2021-06-06 01:20:37 +00:00
|
|
|
"
|