e07103fb74
Manual config changes: * CRYPTO_DEV_QCOM_RNG=m * LEDS_IS31FL319X=m * QCOM_RMTFS_MEM=y [ci:skip-build]: already built successfully in CI
65 lines
1.7 KiB
Text
65 lines
1.7 KiB
Text
# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
|
|
# Co-Maintainer: Luca Weiss <luca@z3ntu.xyz>
|
|
_flavor=postmarketos-qcom-msm8974
|
|
_config="config-$_flavor.$CARCH"
|
|
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.0.13
|
|
pkgrel=0
|
|
_tag="v$pkgver-msm8974"
|
|
pkgdesc="Kernel close to mainline with extra patches for Qualcomm MSM8974 devices"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
url="https://kernel.org/"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
pmb:kconfigcheck-community
|
|
"
|
|
makedepends="
|
|
bash
|
|
bison
|
|
findutils
|
|
flex
|
|
gmp-dev
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
source="
|
|
linux-$_tag.tar.gz::https://github.com/msm8974-mainline/linux/archive/refs/tags/$_tag.tar.gz
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-$pkgver-msm8974"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
cp "$srcdir/config-$_flavor.$CARCH" .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_MOD_STRIP=1 \
|
|
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
|
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="
|
|
8ccb08e3bc7b2220e766a14abfbbdbe3432fc509651c1fa01f5edfb34a3d210e33dc432fb7fb0a93803244e7552f9ccd0ae853c12b7e4aefd86c46f169e7c57d linux-v6.0.13-msm8974.tar.gz
|
|
070265962c7e3b0f7f54db9221f8d306a9fe98c910218fdfc068ac4ad5a36cce50959a6134929d7670d117fc76d190cdf90e51edf5aacf85c96d8bfec2b940b7 config-postmarketos-qcom-msm8974.armv7
|
|
"
|