0ccd921802
Some of these sensors give spurious dmesg warnings, even when not used, so move them to modules.
64 lines
1.6 KiB
Text
64 lines
1.6 KiB
Text
# Maintainer: Newbyte <newbie13xd@gmail.com>
|
|
# Kernel config based on: arch/arm/configs/qcom_defconfig
|
|
|
|
_flavor="postmarketos-qcom-msm8226"
|
|
pkgname=linux-$_flavor
|
|
pkgver=6.5.7
|
|
pkgrel=4
|
|
_tag="v$pkgver-msm8226"
|
|
pkgdesc="Mainline kernel fork for Qualcomm APQ8026/MSM8226/MSM8926 devices"
|
|
arch="armv7"
|
|
_carch="arm"
|
|
url="https://kernel.org"
|
|
license="GPL-2.0-only"
|
|
options="!strip !check !tracedeps
|
|
pmb:cross-native
|
|
"
|
|
makedepends="
|
|
bison
|
|
findutils
|
|
flex
|
|
gmp-dev
|
|
mpc1-dev
|
|
mpfr-dev
|
|
openssl-dev
|
|
perl
|
|
postmarketos-installkernel
|
|
"
|
|
|
|
# Source
|
|
source="
|
|
linux-$_tag.tar.gz::https://github.com/msm8226-mainline/linux/archive/refs/tags/$_tag.tar.gz
|
|
config-$_flavor.armv7
|
|
"
|
|
builddir="$srcdir/linux-$pkgver-msm8226"
|
|
|
|
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="
|
|
f7868e00a734fc5e85d0388e9a1c8faa798ebf35a345f5cd287c0bb8044e9b9fd9dfda57ac50e4e9113f18e251ffefe70bbe8f50828860b80f6fd2290063d9af linux-v6.5.7-msm8226.tar.gz
|
|
ea00ef59129079150f5cb18e5689c92a3cc81d0be81b09d9f5902d7d2b3f9c26f4d07993787bdc9b90e815cb94d3ea02754f582ac2f1031a9a8ddae3118f4534 config-postmarketos-qcom-msm8226.armv7
|
|
"
|