main/linux-postmarketos-qcom-msm8939: new aport (MR 2344)
This commit is contained in:
parent
9fef7b33d0
commit
dc0f00d48c
2 changed files with 5657 additions and 0 deletions
54
main/linux-postmarketos-qcom-msm8939/APKBUILD
Normal file
54
main/linux-postmarketos-qcom-msm8939/APKBUILD
Normal file
|
@ -0,0 +1,54 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/msm8939_defconfig
|
||||
|
||||
_flavor="postmarketos-qcom-msm8939"
|
||||
pkgname=linux-$_flavor
|
||||
pkgver=5.9_rc7_git20210713
|
||||
pkgrel=0
|
||||
pkgdesc="Mainline kernel fork for Qualcomm MSM8939 devices"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
url="https://gitlab.com/msm8939-mainline/linux"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="bash bc bison devicepkg-dev installkernel flex openssl-dev perl"
|
||||
provides="linux-huawei-kiwi=$pkgver-r$pkgrel" # for backwards compatibility
|
||||
replaces="linux-huawei-kiwi"
|
||||
|
||||
_repository="linux"
|
||||
_tag="5.9-rc7-v1"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_tag.tar.gz::$url/-/archive/$_tag/linux-$_tag.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_tag"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/config-$_flavor.$CARCH" .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"/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
|
||||
}
|
||||
sha512sums="
|
||||
a50083ea1ef33b2326a4b241a82f923f7529155969523052dd3c3f330a7ff194f1ef081cb698fc1d866efca2d73ca027dbbc68edf265b88daebabde901a31613 linux-postmarketos-qcom-msm8939-5.9-rc7-v1.tar.gz
|
||||
d9e04dadbaff1bc99b2366ade49a84cca1e6c7dac726b2b6ddfeeca9e67539ef67563f430507982df7e92b41617f3714f604ed3f77d58f5f1efef395722f3611 config-postmarketos-qcom-msm8939.aarch64
|
||||
"
|
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue