28d7319042
Manual config changes: * QCOM_BAM_DMUX=y
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.7.0
|
|
pkgrel=0
|
|
_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-${_tag#v}"
|
|
|
|
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="
|
|
2e19a37eb7ec2f446b052290a7fe842caa9ad7ada278d9c477955ba15a85e94a39ef7aeebdceb65743f9ca17641d5bd72dcee2f205b090059feefd4b97136920 linux-v6.7.0-msm8226.tar.gz
|
|
5cfb55c831c3d3c7f0f4695a96930f173c3fd917466d60a8eb97998011cb075a5ad300b47a6a8ba242bcb387a76203b2bea5177af644fbfc83a8b5b5388033b2 config-postmarketos-qcom-msm8226.armv7
|
|
"
|