pkgname-nonfree-firmware packages have been not allowed for years, but nearly every device package just didn't fix that. With the new grep check, these need to be fixed no matter what. The changing of `replaces=` to include the full name of the package and not the pkgname variable is to work around limitations of the grep ci check, as it cannot differentiate between a nonfree-firmware subpackage and a string stating its replacement. A workaround for that is to use the whole package name, as the grep check checks for the pkgname variable. Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/8958>
62 lines
2.5 KiB
Bash
62 lines
2.5 KiB
Bash
maintainer="Casey Connolly <kcxt@postmarketos.org>"
|
|
pkgname=firmware-oneplus-sdm845
|
|
pkgver=16
|
|
pkgrel=0
|
|
_commit="3e31a0c3e5a061645c09f805387b49fa9d35acbf"
|
|
pkgdesc="Firmware for OnePlus 6 / 6T"
|
|
url="https://gitlab.com/sdm845-mainline/firmware-oneplus-sdm845"
|
|
arch="aarch64"
|
|
depends="linux-firmware-qcom linux-firmware-ath10k"
|
|
license="proprietary"
|
|
subpackages="
|
|
$pkgname-pmtest
|
|
$pkgname-sensors:firmware_sensors
|
|
"
|
|
source="$pkgname-$_commit.tar.gz::https://gitlab.com/sdm845-mainline/firmware-oneplus-sdm845/-/archive/$_commit/$pkgname-$_commit.tar.gz
|
|
firmware.files
|
|
sensor.files
|
|
30-oneplus-sdm845-firmware-ci.files
|
|
0001-oneplus6-set-mount-matrix.patch
|
|
"
|
|
options="!archcheck !check !strip !tracedeps pmb:cross-native textrels"
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
package() {
|
|
while IFS="" read -r _i || [ -n "$_i" ]; do
|
|
local _u="${_i/usr\/lib/\/lib}"
|
|
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname "$pkgdir"/$_i)
|
|
install -Dm644 .$_u "$pkgdir/$_i"
|
|
done < "$srcdir/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"
|
|
}
|
|
|
|
firmware_sensors() {
|
|
pkgdesc="Files to be included to add sensor support"
|
|
depends="$pkgname=$pkgver-r$pkgver"
|
|
mkdir "$subpkgdir"
|
|
|
|
cd "$builddir"
|
|
while IFS="" read -r _i || [ -n "$_i" ]; do
|
|
local _u="${_i/usr\/lib/\/lib}"
|
|
[ ! -d $(dirname $_i) ] && mkdir -p $(dirname "$subpkgdir"/$_i)
|
|
install -Dm644 .$_u "$subpkgdir/$_i"
|
|
done < "$srcdir/sensor.files"
|
|
|
|
ln -s oneplus6 "$subpkgdir"/usr/share/qcom/sdm845/OnePlus/enchilada
|
|
ln -s oneplus6 "$subpkgdir"/usr/share/qcom/sdm845/OnePlus/fajita
|
|
}
|
|
|
|
sha512sums="
|
|
56604c46ad0f30f1f715af4b83bd2686d96723024063c7ef6baa5c73cd52b375478e3d65b886ff08efc95ce129fc789b8509efcdf9f0d46cf7229f4ec1afa513 firmware-oneplus-sdm845-3e31a0c3e5a061645c09f805387b49fa9d35acbf.tar.gz
|
|
aefc540de7d67df936108750ea4ad95101eacf5cbc0243d849d7267932fa0d3ef602f9e461ba003d3953f5e81b77b798df0a5c43d179269ceb5c71f73ab23c0a firmware.files
|
|
f3e4e1ca689400492d9860fbe478d781bcf3d0b7d1b018bc23309d4a0458dc693554c198d79a4048436e0a04e1ea9d07b004c63d297a4eb423a7ea355fc21f95 sensor.files
|
|
ed8e0c4437c4f9b1ad34337d57eb3fbcc66dbcd520864642ff704e48b1656e6b2970f61c4f7ea264bd7aefedc07d8b7f7fb12569b0218a6f56ab5daf6946d9e9 30-oneplus-sdm845-firmware-ci.files
|
|
3f5b04afd8ccd08e676cee2d290c08c3b5e0f0c0b85ddf6e94f86730615ea174a2cc57452dc8455f68675fc173bf0fb79c0505819c3e0203ad5a7acb5ebf4b10 0001-oneplus6-set-mount-matrix.patch
|
|
"
|