device-xiaomi-santoni: avoid overriding udev v4l rule in /etc (MR 4768)

Depend on postmarketos-base-downstream-disable-udev-v4l instead, which
symlinks /lib/udev/rules.d/60-persistent-v4l.rules to /dev/null.
This commit is contained in:
Henrik Grimler 2024-01-28 17:02:00 +01:00 committed by Pablo Correa Gómez
parent 6fde810437
commit 4e9a885f22
No known key found for this signature in database
GPG key ID: 7A342565FF635F79

View file

@ -4,12 +4,18 @@
pkgname=device-xiaomi-santoni pkgname=device-xiaomi-santoni
pkgdesc="Xiaomi Redmi 4X" pkgdesc="Xiaomi Redmi 4X"
pkgver=0.8 pkgver=0.8
pkgrel=5 pkgrel=6
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="aarch64" arch="aarch64"
options="!check !archcheck" options="!check !archcheck"
depends="postmarketos-base linux-xiaomi-santoni mkbootimg msm-fb-refresher" depends="
postmarketos-base
postmarketos-base-downstream-disable-udev-v4l
linux-xiaomi-santoni
mkbootimg
msm-fb-refresher
"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware" subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
source=" source="
@ -29,12 +35,6 @@ package() {
install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc
# Disable v4l udev rules (video4linux), because without the camera
# firmware blobs this makes udev helper hang (#1033)
mkdir -p "$pkgdir"/etc/udev/rules.d
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
} }
nonfree_firmware() { nonfree_firmware() {