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
|
2021-06-17 00:09:42 +00:00
|
|
|
pkgver=5.13_rc6
|
2021-10-12 10:11:12 +00:00
|
|
|
pkgrel=4
|
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
|
2021-06-17 00:09:42 +00:00
|
|
|
_commit="fd0f81dcec8023ea37d854c3d6d426ce41efb455"
|
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="
|
2021-06-17 00:09:42 +00:00
|
|
|
7c517fba7dcaf5b993323c37d665c424a2562abdf2a5af78963cc5dbadc7191a6653c0059609ea05ee2880253b067bc270d57130c5a175cd4c833ccfab2a4aaf linux-postmarketos-qcom-msm8953-fd0f81dcec8023ea37d854c3d6d426ce41efb455.tar.gz
|
2021-09-08 19:57:11 +00:00
|
|
|
dd4aa99954ba7dac06847dce826573f240f188531edcc849dc239d35a01e51244de98afebad16a9c58e7f49c258eb87b62c41194cb7dfe8b247168119e203ae3 config-postmarketos-qcom-msm8953.aarch64
|
2021-06-06 01:20:37 +00:00
|
|
|
"
|