main/lk2nd: also package appended-dtb variant of msm8974 (MR 4077)

Devices like oneplus-bacon require this variant instead of the standard
variant.
This commit is contained in:
Luca Weiss 2023-05-13 11:39:22 +02:00 committed by Pablo Correa Gómez
parent e8eb332fa2
commit 644439c79f
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -1,7 +1,7 @@
# Maintainer: Alexey Minnekhanov <alexeymin@postmarketos.org>
pkgname=lk2nd
pkgver=0.14.0
pkgrel=0
pkgrel=1
pkgdesc="Secondary little kernel (lk) bootloader for several Qualcomm devices"
arch="armv7 aarch64"
url="https://github.com/msm8916-mainline/lk2nd"
@ -26,7 +26,9 @@ if [ "$CARCH" = "armv7" ]; then
$subpackages
$pkgname-msm8226
$pkgname-msm8226-appended:msm8226_appended
$pkgname-msm8974"
$pkgname-msm8974
$pkgname-msm8974-appended:msm8974_appended
"
fi
build() {
@ -72,6 +74,11 @@ msm8974() {
"$subpkgdir"/boot
}
msm8974_appended() {
install -Dm644 "$builddir"/build-lk2nd-msm8974/lk2nd-appended-dtb.img \
"$subpkgdir"/boot/lk2nd.img
}
msm8226() {
install -Dm644 "$builddir"/build-lk2nd-msm8226/lk2nd.img \
"$subpkgdir"/boot/lk2nd.img