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-07-30 18:11:01 +00:00
|
|
|
pkgrel=1
|
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-09-17 09:39:20 +00:00
|
|
|
_commit="649f00020e253e8f84f2df66efaff07c6c49e815"
|
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-09-17 09:39:20 +00:00
|
|
|
ba6c5b0ab6020891d14b85688e27a251bbf4a74e73ee1630cb3d6ba967444ac4de8b51cc04aeeb2246e33883068c1a23ce0b764d2a18fd378da8c2b7badeaf84 linux-postmarketos-qcom-msm8953-649f00020e253e8f84f2df66efaff07c6c49e815.tar.gz
|
|
|
|
0f6327f8ae860bf4fb09d1df4f135524a87546c956eeb708ec0bc2b886ff4db06e6f1d3611080337de59ec53eb3434c122116fe4c2de21a83c36a8a4f0189674 config-postmarketos-qcom-msm8953.aarch64
|
2021-06-06 01:20:37 +00:00
|
|
|
"
|