2018-03-20 18:46:01 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-08-04 09:46:27 +00:00
|
|
|
# Maintainer: Asriel Dreemurr <asriel.danctnix@gmail.com>
|
|
|
|
# Co-Maintainer: Danct12 <danct12@disroot.org>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-xiaomi-santoni
|
2018-03-20 18:46:01 +00:00
|
|
|
pkgdesc="Xiaomi Redmi 4X"
|
2022-04-04 09:03:55 +00:00
|
|
|
pkgver=0.8
|
2022-04-05 16:34:43 +00:00
|
|
|
pkgrel=1
|
2018-03-20 18:46:01 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2018-11-07 06:45:58 +00:00
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2022-04-05 16:34:43 +00:00
|
|
|
depends="postmarketos-base linux-xiaomi-santoni mkbootimg mesa-dri-gallium msm-fb-refresher"
|
2018-03-20 18:46:01 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-08-03 08:08:01 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2020-02-10 11:44:59 +00:00
|
|
|
source="
|
|
|
|
ucm/90-device-xiaomi-santoni-audio.rules
|
|
|
|
ucm/HiFi
|
|
|
|
ucm/msm8920-sku7-snd-card.conf
|
|
|
|
deviceinfo
|
2019-04-28 08:43:35 +00:00
|
|
|
directfbrc
|
2020-02-10 11:44:59 +00:00
|
|
|
fb.modes"
|
2018-03-20 18:46:01 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2019-04-19 12:13:40 +00:00
|
|
|
|
2019-04-28 08:43:35 +00:00
|
|
|
install -Dm644 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
|
|
|
|
install -Dm644 "$srcdir"/directfbrc "$pkgdir"/etc/directfbrc
|
|
|
|
|
2019-06-06 19:59:17 +00:00
|
|
|
# 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
|
|
|
|
|
2019-04-19 12:13:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2022-04-04 09:03:55 +00:00
|
|
|
pkgdesc="Wi-Fi, ADSP Firmware"
|
2019-06-27 09:42:02 +00:00
|
|
|
depends="firmware-xiaomi-santoni wcnss-wlan adsp-audio pulseaudio pulseaudio-alsa alsa-plugins-pulse alsa-utils"
|
2019-07-14 12:40:42 +00:00
|
|
|
install="$pkgname-nonfree-firmware.post-install"
|
2019-04-19 12:13:40 +00:00
|
|
|
mkdir "$subpkgdir"
|
2019-06-27 09:42:02 +00:00
|
|
|
|
|
|
|
# Install UCM files for santoni
|
2021-12-12 16:06:38 +00:00
|
|
|
install -Dm644 -t "$subpkgdir"/usr/share/alsa/ucm2/conf.d/msm8920-sku7-snd-card \
|
|
|
|
"$srcdir"/HiFi \
|
|
|
|
"$srcdir"/msm8920-sku7-snd-card.conf
|
2019-06-27 09:42:02 +00:00
|
|
|
install -Dm644 "$srcdir"/90-device-xiaomi-santoni-audio.rules \
|
|
|
|
"$subpkgdir"/etc/udev/rules.d/90-device-xiaomi-santoni-audio.rules
|
2018-03-20 18:46:01 +00:00
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2020-02-10 11:44:59 +00:00
|
|
|
dc4bf7871307e659f220aebc3c9f7d74b861f46e1f3df1be37d724af984e46d91e553dbd36c2bd4482aa17dbe4d76d28dabe214952638f00830907466b110146 90-device-xiaomi-santoni-audio.rules
|
2020-03-06 07:02:36 +00:00
|
|
|
3452fe367e7b199d610fb3d8e9113b35e04071afc7585080edb6fe584ecc29591d8f3ab53ed4583c1ccea5882aa51050d6e56a5db7ef88f6c9af648ba1ef88af HiFi
|
|
|
|
7c702cf159699cea761ce7cb1ca21b79c59ceb3cdf1e410b537c4aa3a5aaa3be171b4c5555a713ac7a0e0f6dc389680cd5368a7783d14025fdc14d5f27fb922b msm8920-sku7-snd-card.conf
|
2021-09-21 10:33:20 +00:00
|
|
|
99aa6dc66e501bc42fb7843c85a28f49afceabd105d12c729817b3d96775b97565da38ebdc2817fbff1341f38e29284adc45f02264ab52857cb549f09abf9d45 deviceinfo
|
2020-02-10 11:44:59 +00:00
|
|
|
3db3ec596e159be926ea2b5b2496c18e9bc7be24a64a232a56c89a0c9ee710aa2efb2b6fa9fc08efa34759e8242e6c629d08a4ce688ec8aa125830717c191515 directfbrc
|
2021-09-18 17:06:03 +00:00
|
|
|
b634d13cac1f10535a31c142c7391986ab402ae9910d8093989920f4c2dbd63722ee8595f11962bffd9d314e2835a1ead955a91355856f044911ddcf1e428427 fb.modes
|
|
|
|
"
|