2022-05-31 23:13:29 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2022-10-07 21:07:38 +00:00
|
|
|
# Maintainer: Richard Acayan <mailingradian@gmail.com>
|
2022-05-31 23:13:29 +00:00
|
|
|
pkgname=device-google-sargo
|
|
|
|
pkgdesc="Google Pixel 3a"
|
2024-07-30 20:03:21 +00:00
|
|
|
pkgver=5
|
|
|
|
pkgrel=0
|
2022-05-31 23:13:29 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
2023-05-26 23:43:59 +00:00
|
|
|
alsa-ucm-conf-qcom-sdm670
|
2022-10-01 02:33:48 +00:00
|
|
|
linux-postmarketos-qcom-sdm670
|
2022-10-01 02:45:36 +00:00
|
|
|
make-dynpart-mappings
|
2022-05-31 23:13:29 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
2022-10-01 02:53:21 +00:00
|
|
|
soc-qcom-sdm845
|
|
|
|
soc-qcom-sdm845-qbootctl
|
2022-05-31 23:13:29 +00:00
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2023-09-23 21:08:48 +00:00
|
|
|
source="
|
2024-06-03 23:05:03 +00:00
|
|
|
10-unl0kr-msm.conf
|
2024-07-05 02:35:59 +00:00
|
|
|
81-libssc-google-sargo.rules
|
2023-09-23 21:08:48 +00:00
|
|
|
90-feedbackd-drv2624.rules
|
|
|
|
deviceinfo
|
2024-07-05 02:35:59 +00:00
|
|
|
hexagonrpcd-adsp-sensorspd.confd
|
2023-09-23 21:08:48 +00:00
|
|
|
modules-initfs
|
2024-07-30 20:03:21 +00:00
|
|
|
no-hexagonrpcd-on-suspend.sh
|
2023-09-23 21:08:48 +00:00
|
|
|
q6voiced.conf
|
|
|
|
"
|
2022-10-26 21:45:45 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2022-05-31 23:13:29 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2023-08-23 21:09:04 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/90-feedbackd-drv2624.rules \
|
|
|
|
-t "$pkgdir"/usr/lib/udev/rules.d
|
2024-06-03 23:05:03 +00:00
|
|
|
install -Dm644 "$srcdir"/10-unl0kr-msm.conf \
|
|
|
|
"$pkgdir"/etc/unl0kr.conf.d/10-unl0kr-msm.conf
|
2022-05-31 23:13:29 +00:00
|
|
|
}
|
|
|
|
|
2022-10-26 21:45:45 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Proprietary firmware blobs for the Google Pixel 3a"
|
2024-07-05 02:35:59 +00:00
|
|
|
replaces="hexagonrpcd-openrc"
|
2023-09-30 20:33:21 +00:00
|
|
|
depends="
|
|
|
|
firmware-google-sargo
|
2024-07-05 02:35:59 +00:00
|
|
|
hexagonrpcd
|
2023-09-30 20:33:21 +00:00
|
|
|
linux-firmware-ath10k
|
|
|
|
linux-firmware-qca
|
|
|
|
linux-firmware-qcom
|
|
|
|
soc-qcom-sdm845-modem
|
|
|
|
soc-qcom-sdm845-nonfree-firmware
|
|
|
|
"
|
2024-07-29 20:53:31 +00:00
|
|
|
# Enable HexagonRPCD by default, but not if the user installed this
|
|
|
|
# package then disabled it.
|
2024-07-05 02:35:59 +00:00
|
|
|
install="
|
|
|
|
device-google-sargo-nonfree-firmware.post-install
|
|
|
|
"
|
2022-10-26 21:45:45 +00:00
|
|
|
|
2023-10-05 03:14:38 +00:00
|
|
|
# The q6voiced configuration can only be used if the ADSP is brought up
|
|
|
|
# via non-free firmware.
|
|
|
|
install -Dm644 "$srcdir"/q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
|
2024-07-05 02:35:59 +00:00
|
|
|
|
|
|
|
# Sensors depend on ADSP firmware and the sensors registry served over FastRPC.
|
|
|
|
install -Dm644 "$srcdir"/hexagonrpcd-adsp-sensorspd.confd \
|
|
|
|
"$subpkgdir"/etc/conf.d/hexagonrpcd-adsp-sensorspd
|
|
|
|
|
|
|
|
# Sensors depend on ADSP firmware and the sensors registry served over FastRPC.
|
|
|
|
install -Dm644 "$srcdir"/81-libssc-google-sargo.rules \
|
|
|
|
"$subpkgdir"/usr/lib/udev/rules.d/81-libssc-google-sargo.rules
|
2024-07-30 20:03:21 +00:00
|
|
|
|
|
|
|
# The FastRPC service is only enabled when non-free firmware is installed.
|
|
|
|
install -Dm755 "$srcdir"/no-hexagonrpcd-on-suspend.sh \
|
|
|
|
"$subpkgdir"/etc/elogind/system-sleep/no-hexagonrpcd-on-suspend.sh
|
2022-10-26 21:45:45 +00:00
|
|
|
}
|
|
|
|
|
2022-05-31 23:13:29 +00:00
|
|
|
sha512sums="
|
2024-06-03 23:05:03 +00:00
|
|
|
f700af3145b79d1ef9edfb22982899b25cabfb212f9620dcbd3a2e6f44b5ad591e0a66056c6fcd66c3fde89a2b5f551e8a8fe2e65cf0e2a48adec57c027d7825 10-unl0kr-msm.conf
|
2024-07-05 02:35:59 +00:00
|
|
|
7fae1bae706d4117aade2462dac9aaba0d70215f5280bac89c3810df1eb94883ffdce5f81ff9f0dc39d27d6e56ca5476456866cfbd5b6e3f3e6e9048b758c51f 81-libssc-google-sargo.rules
|
2023-08-23 21:09:04 +00:00
|
|
|
016d398155f2344417f5e5649a361719ba6e53e593c501b5df39114cdd284302b9bf8686a39817aee0c08fec95b3ab613c181d6cc9596299aaf7fd05dbe0c3dd 90-feedbackd-drv2624.rules
|
2023-08-09 01:47:06 +00:00
|
|
|
8af19da4e4a4a59c49263722065229fae849c3273af313300b7ea1b8fe008c6e55cfd060b91909306dd600134e2494f740adda245707dbcff84b1ab2f37dbde7 deviceinfo
|
2024-07-05 02:35:59 +00:00
|
|
|
b6208c254b6e44ac4f6d748a38cc6b05da0db2c90235ada2011b138b82ccc3372687df2f5ad97e885e9eea135216a3c52266a08a7f4eb323e62e799f6f82ec7b hexagonrpcd-adsp-sensorspd.confd
|
2024-07-12 20:25:10 +00:00
|
|
|
3213a3586c25cef843a47e2446179ff73acad6421826a64bedb6b9800d30673503d0ea6b3fcc8cfbdcdcaf0926755a489323fce9d14d4411799e6988144b3518 modules-initfs
|
2024-07-30 20:03:21 +00:00
|
|
|
2972005a9cf6ca57061965075593dddfa8ee479bc6c21cd41851b1a14768cb1cddbd31a17975ae17adc36d40d294ccbc6bf83defbd69fc7b363f638d8564fbbc no-hexagonrpcd-on-suspend.sh
|
2023-09-23 21:08:48 +00:00
|
|
|
7f599f086dba97ac39ce98798969bc8e9c26dd3b062bb8f95852182df52814b70d49b701e27b43abeb3639b16ba053e416c14cf75e0bf4a9f2fe7c01fb0ac41c q6voiced.conf
|
2022-05-31 23:13:29 +00:00
|
|
|
"
|