2020-05-27 00:19:35 +00:00
|
|
|
# Maintainer: Caleb Connolly <caleb@connolly.tech>
|
|
|
|
|
|
|
|
pkgname=firmware-oneplus-sdm845
|
2023-05-19 23:39:44 +00:00
|
|
|
pkgver=9
|
|
|
|
pkgrel=0
|
2020-05-27 00:19:35 +00:00
|
|
|
pkgdesc="Firmware for OnePlus 6 / 6T"
|
|
|
|
url="https://gitlab.com/sdm845-mainline/firmware-oneplus-sdm845"
|
|
|
|
arch="aarch64"
|
2022-03-17 07:25:20 +00:00
|
|
|
depends="linux-firmware-qcom linux-firmware-ath10k"
|
2020-05-27 00:19:35 +00:00
|
|
|
license="proprietary"
|
2023-05-19 23:39:44 +00:00
|
|
|
options="!check !strip !archcheck !tracedeps textrels pmb:cross-native"
|
2020-05-27 00:19:35 +00:00
|
|
|
|
2023-05-19 23:39:44 +00:00
|
|
|
_version="dc9c77f220d104d7224c03fcbfc419a03a58765e"
|
2023-08-17 09:15:31 +00:00
|
|
|
_board2_commit="fc750b3f1bda29c08cfe9329eb781c0ae3608456"
|
2020-05-27 00:19:35 +00:00
|
|
|
|
|
|
|
source="$pkgname.tar.gz::$url/-/archive/$_version/$pkgname-$_version.tar.gz
|
2021-04-08 23:27:54 +00:00
|
|
|
firmware.files
|
2023-05-19 23:39:44 +00:00
|
|
|
sensor.files
|
2023-08-17 09:15:31 +00:00
|
|
|
30-gpu-firmware.files
|
|
|
|
board-2.bin::https://gitlab.com/dylanvanassche/ath10k-firmware/-/raw/$_board2_commit/linux-firmware/board-2.bin
|
2023-10-02 11:59:07 +00:00
|
|
|
30-oneplus-sdm845-firmware-ci.files
|
2023-05-19 23:39:44 +00:00
|
|
|
"
|
2021-04-08 23:27:54 +00:00
|
|
|
subpackages="
|
2023-10-02 11:59:07 +00:00
|
|
|
$pkgname-initramfs:firmware_initramfs
|
|
|
|
$pkgname-pmtest
|
2023-05-19 23:39:44 +00:00
|
|
|
$pkgname-sensors:firmware_sensors
|
2023-10-02 11:59:07 +00:00
|
|
|
"
|
2020-05-27 00:19:35 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$_version/"
|
|
|
|
while IFS="" read -r _i || [ -n "$_i" ]; do
|
2022-09-24 17:34:22 +00:00
|
|
|
install -Dm644 "$_i" "$pkgdir/$_i"
|
2020-05-27 00:19:35 +00:00
|
|
|
done < "$srcdir/firmware.files"
|
2023-08-17 09:15:31 +00:00
|
|
|
|
|
|
|
# Install board-2.bin until upstream
|
|
|
|
install -Dm644 "$srcdir"/board-2.bin \
|
|
|
|
"$pkgdir"/lib/firmware/postmarketos/ath10k/WCN3990/hw1.0/board-2.bin
|
2020-05-27 00:19:35 +00:00
|
|
|
}
|
|
|
|
|
2021-04-08 23:27:54 +00:00
|
|
|
firmware_initramfs() {
|
|
|
|
pkgdesc="Files to be included in the initramfs to support osk-sdl"
|
|
|
|
depends="$pkgname"
|
|
|
|
install_if="$pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir/30-gpu-firmware.files" \
|
2023-02-18 23:27:50 +00:00
|
|
|
"$subpkgdir/usr/share/mkinitfs/files/30-gpu-firmware.files"
|
2021-04-08 23:27:54 +00:00
|
|
|
}
|
|
|
|
|
2023-10-02 11:59:07 +00:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2023-05-19 23:39:44 +00:00
|
|
|
firmware_sensors() {
|
|
|
|
pkgdesc="Files to be included to add sensor support"
|
|
|
|
depends="$pkgname"
|
|
|
|
install_if="$pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
|
|
|
|
cd "$srcdir/$pkgname-$_version/"
|
|
|
|
while IFS="" read -r _i || [ -n "$_i" ]; do
|
|
|
|
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname $_i)
|
|
|
|
echo $_i
|
|
|
|
install -Dm644 $_i "$pkgdir/$_i"
|
|
|
|
done < "$srcdir/sensor.files"
|
|
|
|
}
|
|
|
|
|
2021-07-09 22:57:41 +00:00
|
|
|
sha512sums="
|
2023-05-19 23:39:44 +00:00
|
|
|
d14b22434016cb12b8c04a3e7ac186451d77b92284e926a2771d958960d4da8ffb10cb9db555a200babcedd7be3379d2840882d19c26edc88805eee943310c2f firmware-oneplus-sdm845.tar.gz
|
|
|
|
23e4ea891f688bf5669e4b8479aab06b56c5478429b759c22fa417e1ad09cb413e55856140b456c6b676b8920ecec40aa0215d8fd61a23ac2c5c02240552f247 firmware.files
|
|
|
|
4e5c4f55d4b084c6c21810b93a63a75ad86dd04cd1c079497bd2387f8bd0a411053ca1e894974af8bfda77ddc79c92a6669550be3a48fbef01cf797b54d6cb67 sensor.files
|
2021-07-09 22:57:41 +00:00
|
|
|
bc6c329bf6bb9622320ab610f4f5fb944129e276855a4cf5646cb29a553f4c47cd9a4ef4305cbcd94a991471bc109b8f615cefd6871be99bf6a457fe0fa5aa19 30-gpu-firmware.files
|
2023-08-17 09:15:31 +00:00
|
|
|
a8eaab63f467553a65789a316d6f58cc15b0ad9bf3f698e6dbe51efa841db7f62a69d0c24b69da4f36de4a01dc29b723911d9cf17f925d3ce1170cbfa6b16029 board-2.bin
|
2023-10-02 11:59:07 +00:00
|
|
|
d6a81ab4697e763eebf2b428e8a63dbdd0a44743691d9277e9d3c7de26dbcbddaea1928a6cfa5509f8f41506d8812022f200ec47f87d28e05af77302683ffcf4 30-oneplus-sdm845-firmware-ci.files
|
2021-07-09 22:57:41 +00:00
|
|
|
"
|