device/community/firmware-*-sdm845: add pmtest subpackages (MR 4420)

Signed-off-by: Caleb Connolly <caleb@connolly.tech>
This commit is contained in:
Caleb Connolly 2023-10-02 12:59:07 +01:00
parent 570e52d99c
commit 6fcc759991
No known key found for this signature in database
GPG key ID: 7930459FB9303217
4 changed files with 28 additions and 4 deletions

View file

@ -0,0 +1 @@
/lib/firmware/qcom/sdm845/oneplus6/adsp.mbn

View file

@ -2,7 +2,7 @@
pkgname=firmware-oneplus-sdm845
pkgver=8
pkgrel=0
pkgrel=1
pkgdesc="Firmware for OnePlus 6 / 6T"
url="https://gitlab.com/sdm845-mainline/firmware-oneplus-sdm845"
arch="aarch64"
@ -17,9 +17,12 @@ source="$pkgname.tar.gz::$url/-/archive/$_version/$pkgname-$_version.tar.gz
firmware.files
30-gpu-firmware.files
board-2.bin::https://gitlab.com/dylanvanassche/ath10k-firmware/-/raw/$_board2_commit/linux-firmware/board-2.bin
30-oneplus-sdm845-firmware-ci.files
"
subpackages="
$pkgname-initramfs:firmware_initramfs"
$pkgname-initramfs:firmware_initramfs
$pkgname-pmtest
"
package() {
cd "$srcdir/$pkgname-$_version/"
@ -42,9 +45,17 @@ firmware_initramfs() {
"$subpkgdir/usr/share/mkinitfs/files/30-gpu-firmware.files"
}
pmtest() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
install -Dm644 "$srcdir/30-oneplus-sdm845-firmware-ci.files" \
"$subpkgdir/usr/share/mkinitfs/files/30-oneplus-sdm845-firmware-ci.files"
}
sha512sums="
59091452f1d6363fab0474ebc2738ec8fca6903c64837c3b6228eefb2030b0b4d5f0694770ddadf81f59f2ace4fad548459ad7a6604498aaa08a9064fb1dc736 firmware-oneplus-sdm845.tar.gz
f7a850f76eb5c757d4c7329b8e2040aadc62d9d5d7a6c21752f0fe1afb2343f9630738ede4b3c45cf1eba305e35923dd7f011e9fb6a68e97f3d25564b5c29306 firmware.files
bc6c329bf6bb9622320ab610f4f5fb944129e276855a4cf5646cb29a553f4c47cd9a4ef4305cbcd94a991471bc109b8f615cefd6871be99bf6a457fe0fa5aa19 30-gpu-firmware.files
a8eaab63f467553a65789a316d6f58cc15b0ad9bf3f698e6dbe51efa841db7f62a69d0c24b69da4f36de4a01dc29b723911d9cf17f925d3ce1170cbfa6b16029 board-2.bin
d6a81ab4697e763eebf2b428e8a63dbdd0a44743691d9277e9d3c7de26dbcbddaea1928a6cfa5509f8f41506d8812022f200ec47f87d28e05af77302683ffcf4 30-oneplus-sdm845-firmware-ci.files
"

View file

@ -0,0 +1 @@
/lib/firmware/qcom/sdm845/axolotl/adsp.mbn

View file

@ -2,7 +2,7 @@
pkgname=firmware-shift-sdm845
pkgver=20230815
pkgrel=0
pkgrel=1
pkgdesc="Firmware for SHIFT sdm845 devices"
url="https://gitlab.com/sdm845-mainline/firmware-shift-sdm845"
arch="aarch64"
@ -19,9 +19,12 @@ _board2_commit="fc750b3f1bda29c08cfe9329eb781c0ae3608456"
source="$pkgname.tar.gz::$url/-/archive/$_version/$pkgname-$_version.tar.gz
firmware.files
30-gpu-firmware.files
30-shift-sdm845-firmware-ci.files
board-2.bin::https://gitlab.com/dylanvanassche/ath10k-firmware/-/raw/$_board2_commit/linux-firmware/board-2.bin"
subpackages="
$pkgname-initramfs:firmware_initramfs"
$pkgname-initramfs:firmware_initramfs
$pkgname-pmtest
"
package() {
cd "$srcdir/$pkgname-$_version/"
@ -46,9 +49,17 @@ firmware_initramfs() {
"$subpkgdir/usr/share/mkinitfs/files/30-gpu-firmware.files"
}
pmtest() {
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-mkinitfs-hook-ci"
install -Dm644 "$srcdir/30-shift-sdm845-firmware-ci.files" \
"$subpkgdir/usr/share/mkinitfs/files/30-shift-sdm845-firmware-ci.files"
}
sha512sums="
72cbbbc2d1ea2698ee25e554cdb099729c059a01ab21efe66d2dd60c7aff7b138ec1b4dc1b5b86e5d69a87ef2950b614f36089e919c9436881cc2a3fbe384d55 firmware-shift-sdm845.tar.gz
2f1087a2133d5dbdaad94927be9e88acdceb6873eab731b76b295b5248e5a91c3e9e6498b4400fc7219ba378ca4362448b882ccd87d2e73ae5fbf0fd613277ba firmware.files
8695a37da5578fdae506f373131ce9481be3db1a86f329c19893e7360b9cb0fadd47b0b1318b2e74702c5e76a9be022f58610940ad17becab49788689f6ca3f8 30-gpu-firmware.files
97756b554cc0f91a69f511496663a012287517ec5853167246fe59c4deeb1cbf1eb352ec267bd0ad897e3f30547d2ad2818e70b597d9dfec26db45efca85b3f2 30-shift-sdm845-firmware-ci.files
a8eaab63f467553a65789a316d6f58cc15b0ad9bf3f698e6dbe51efa841db7f62a69d0c24b69da4f36de4a01dc29b723911d9cf17f925d3ce1170cbfa6b16029 board-2.bin
"