f1e0404fb8
[ci:ignore-count] [ci:skip-vercheck] needed for the postmarketos-ui-* packages in this series [ci:skip-build] already built ui-* packages in CI, and device pacakges are just trivial deviceinfo change (manually built some just to verify)
74 lines
2.4 KiB
Text
74 lines
2.4 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
# Maintainer: Minecrell <minecrell@minecrell.net>
|
|
pkgname=device-xiaomi-wt88047
|
|
pkgdesc="Xiaomi Redmi 2"
|
|
pkgver=2
|
|
pkgrel=3
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="aarch64"
|
|
options="!check !archcheck"
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
|
|
makedepends="devicepkg-dev"
|
|
source="deviceinfo"
|
|
subpackages="
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
$pkgname-kernel-mainline-modem-wt86047:kernel_mainline_modem_wt86047
|
|
$pkgname-kernel-mainline-modem-wt88047:kernel_mainline_modem_wt88047
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
$pkgname-nonfree-firmware-modem-wt86047:nonfree_firmware_modem_wt86047
|
|
$pkgname-nonfree-firmware-modem-wt88047:nonfree_firmware_modem_wt88047
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
kernel_mainline() {
|
|
pkgdesc="Close to mainline kernel (no modem, audio routed directly)"
|
|
depends="linux-postmarketos-qcom-msm8916"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
# wt86047 (Chinese variant) and wt88047 (global variant) need different
|
|
# modem firmware, otherwise they are pretty much the same.
|
|
|
|
kernel_mainline_modem_wt86047() {
|
|
pkgdesc="Close to mainline kernel (wt86047 (China), non-free modem, audio routed through ADSP)"
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_mainline_modem_wt88047() {
|
|
pkgdesc="Close to mainline kernel (wt88047 (global), non-free modem, audio routed through ADSP)"
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
|
|
depends="linux-firmware-qcom firmware-qcom-msm8916-wcnss firmware-xiaomi-wt88047-wcnss-nv"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
nonfree_firmware_modem_wt86047() {
|
|
pkgdesc="Modem firmware (WT86047)"
|
|
depends="firmware-xiaomi-wt86047-modem"
|
|
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem-wt86047"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
nonfree_firmware_modem_wt88047() {
|
|
pkgdesc="Modem firmware (WT88047)"
|
|
depends="firmware-xiaomi-wt88047-modem"
|
|
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem-wt88047"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
sha512sums="
|
|
49cf49a45737767bf85e30dea70e695fc7128ceacc3ed7d6150f947096a8ec3ff725da5d932ffa0abda2e4e47a64c421f1a6b02814cf71f79a7d6cfb94a38956 deviceinfo
|
|
"
|