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-02-21 20:00:26 +00:00
|
|
|
pkgver=5.16
|
|
|
|
pkgrel=0
|
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
|
|
|
|
pmb:kconfigcheck-anbox
|
|
|
|
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-02-21 20:00:26 +00:00
|
|
|
_commit="3c92505f52f1b80b8bbd2332d8f5cb567200018f"
|
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" \
|
|
|
|
INSTALL_DTBS_PATH="$pkgdir"/usr/share/dtb
|
|
|
|
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-02-21 20:00:26 +00:00
|
|
|
ccd28b448f31faebe9ae0ae699bff6e9afa149908d03b10c47ee57bac6453cc00ab7c403c0aaddc3d2b2b41879d5092f2989e89881ec1bdc9e6201ec261c167c linux-postmarketos-qcom-msm8953-3c92505f52f1b80b8bbd2332d8f5cb567200018f.tar.gz
|
|
|
|
60811a61cf10aca1ada6a559ee3fdc07a4f97a3cd3252ae1856c370e5a983dee9c6b8013a0302527d3ec7d9e2f39df68d17d657da735b022b3ce4d35a50f1f03 config-postmarketos-qcom-msm8953.aarch64
|
2021-06-06 01:20:37 +00:00
|
|
|
"
|