Skip to content
Snippets Groups Projects
Commit 6c2b6c9c authored by Barnabás Czémán's avatar Barnabás Czémán
Browse files

linux-postmarketos-qcom-msm89x7: new package

parent ed7cfa41
No related branches found
No related tags found
No related merge requests found
_flavor="postmarketos-qcom-msm89x7"
pkgname=linux-postmarketos-qcom-msm89x7
pkgver=6.11
pkgrel=0
pkgdesc="Mainline kernel fork for Qualcomm QM215/MSM8917/MSM8937/MSM8940 devices"
arch="aarch64"
_carch="arm64"
url="https://github.com/msm89x7-mainline/linux"
license="GPL-2.0-only"
options="!strip !check !tracedeps
pmb:cross-native
pmb:kconfigcheck-nftables
"
makedepends="
bash
bc
bison
devicepkg-dev
findutils
flex
openssl-dev
perl
postmarketos-installkernel
python3
"
_commit="ab03fe66422b99f13962489ebc6a7d6634a6f270"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/msm89x7-mainline/linux/archive/$_commit/linux-$_commit.tar.gz
$_config
"
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 ))-postmarketOS"
}
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="
c7a70a74a447529b2b61b8dde044558e5e6a57af1d38fd60b30580830f50b705b253c3fd3100a66b4a7cf664c9714d7cf6ec5371cf08798d7939b86e231cfc12 linux-postmarketos-qcom-msm89x7-ab03fe66422b99f13962489ebc6a7d6634a6f270.tar.gz
380cf0c83eebe3c7cda86bb5b8490d4032c7865767303dd265142b2b715de29affa28bb4338ab2d3cfa11bd87c306ce166a7d81060b593ecc5e7a9c4dfb05407 config-postmarketos-qcom-msm89x7.aarch64
"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment