2021-07-12 17:58:20 +00:00
|
|
|
# Reference: <https://postmarketos.org/vendorkernel>
|
2021-09-12 09:11:01 +00:00
|
|
|
# Maintainer: Newbyte <newbyte@disroot.org>
|
2021-07-12 17:58:20 +00:00
|
|
|
# Kernel config based on: arch/arm64/configs/msm8939_defconfig
|
|
|
|
|
|
|
|
_flavor="postmarketos-qcom-msm8939"
|
|
|
|
pkgname=linux-$_flavor
|
2022-01-13 12:00:40 +00:00
|
|
|
pkgver=5.15_git20220114
|
2022-07-30 18:11:01 +00:00
|
|
|
pkgrel=1
|
2021-07-12 17:58:20 +00:00
|
|
|
pkgdesc="Mainline kernel fork for Qualcomm MSM8939 devices"
|
|
|
|
arch="aarch64"
|
|
|
|
_carch="arm64"
|
|
|
|
url="https://gitlab.com/msm8939-mainline/linux"
|
|
|
|
license="GPL-2.0-only"
|
2021-07-24 00:06:51 +00:00
|
|
|
options="!strip !check !tracedeps
|
|
|
|
pmb:cross-native
|
|
|
|
pmb:kconfigcheck-nftables
|
|
|
|
"
|
2021-09-14 11:07:44 +00:00
|
|
|
makedepends="
|
|
|
|
bash
|
|
|
|
bc
|
|
|
|
bison
|
|
|
|
devicepkg-dev
|
|
|
|
findutils
|
|
|
|
flex
|
|
|
|
openssl-dev
|
|
|
|
perl
|
2021-10-12 03:27:00 +00:00
|
|
|
postmarketos-installkernel
|
2021-09-14 11:07:44 +00:00
|
|
|
"
|
2021-07-12 17:58:20 +00:00
|
|
|
provides="linux-huawei-kiwi=$pkgver-r$pkgrel" # for backwards compatibility
|
|
|
|
replaces="linux-huawei-kiwi"
|
|
|
|
|
|
|
|
_repository="linux"
|
2022-01-13 12:00:40 +00:00
|
|
|
_tag="5.15-v1"
|
2021-07-12 17:58:20 +00:00
|
|
|
_config="config-$_flavor.$arch"
|
|
|
|
source="
|
|
|
|
$pkgname-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz
|
2021-12-18 22:09:44 +00:00
|
|
|
36dfdf11af49d3c009c711fb16f5c6e7a274505d.patch::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=36dfdf11af49d3c009c711fb16f5c6e7a274505d
|
|
|
|
6eea4ace62fa6414432692ee44f0c0a3d541d97a.patch::https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/patch/?id=6eea4ace62fa6414432692ee44f0c0a3d541d97a
|
2021-07-12 17:58:20 +00:00
|
|
|
$_config
|
|
|
|
"
|
|
|
|
builddir="$srcdir/$_repository-$_tag"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
cp "$srcdir/config-$_flavor.$CARCH" .config
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
unset LDFLAGS
|
|
|
|
make ARCH="$_carch" CC="${CC:-gcc}" \
|
|
|
|
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
mkdir -p "$pkgdir"/boot
|
|
|
|
make zinstall modules_install dtbs_install \
|
|
|
|
ARCH="$_carch" \
|
|
|
|
INSTALL_PATH="$pkgdir"/boot \
|
|
|
|
INSTALL_MOD_PATH="$pkgdir" \
|
|
|
|
INSTALL_MOD_STRIP=1 \
|
2022-07-30 18:11:01 +00:00
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
2021-07-12 17:58:20 +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
|
|
|
|
}
|
|
|
|
sha512sums="
|
2022-01-13 12:00:40 +00:00
|
|
|
9bd3481d6c9ecc213e9fa37b88366130b8b74b2eaa8625294031ee883232e5e20b3b47053dad8642eeb8fb1bad79cb70232ba6be46476fb2b81ee1576890b5a8 linux-postmarketos-qcom-msm8939-5.15-v1.tar.gz
|
2022-07-30 18:38:50 +00:00
|
|
|
ec2afe591b78adbecbd8eb3de08d0601136849d98a3ef14e748a086970810d33a6e11f3ae6e4e501a6c9915b17d957f3827611527151a78faec9de04dfa1b365 36dfdf11af49d3c009c711fb16f5c6e7a274505d.patch
|
|
|
|
b3bc4d99479f943c09c93ad2662f9ffc8bb852a668562704538403a9a7326cde73c146521ab7e76a3f565eab8f6c88820189d8ba677373e62dce31f1e43141c8 6eea4ace62fa6414432692ee44f0c0a3d541d97a.patch
|
2022-01-13 12:00:40 +00:00
|
|
|
5f4ba9ae63756410ce1572b96d1ce3a1b9ff1d1f7b89a37d7fa6f29abfff6cba37607002def5887c0abcadb4aa1570b4048415c5e0c5f629160d8e11fb67cafc config-postmarketos-qcom-msm8939.aarch64
|
2021-07-12 17:58:20 +00:00
|
|
|
"
|