2021-05-08 13:40:46 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-fairphone-fp3
|
|
|
|
pkgdesc="Fairphone 3"
|
2021-12-29 18:29:39 +00:00
|
|
|
pkgver=0.4
|
2022-10-10 19:33:44 +00:00
|
|
|
pkgrel=1
|
2021-05-08 13:40:46 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
msm-fb-refresher
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
|
|
|
source="deviceinfo"
|
|
|
|
subpackages="
|
2021-10-25 16:17:23 +00:00
|
|
|
$pkgname-downstream-firmware:downstream_firmware
|
2021-12-29 18:29:39 +00:00
|
|
|
$pkgname-mainline-firmware:mainline_firmware
|
2021-05-08 13:40:46 +00:00
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
2021-12-29 18:29:39 +00:00
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
2021-05-08 13:40:46 +00:00
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel (recommended)"
|
|
|
|
depends="linux-fairphone-fp3"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2021-12-29 18:29:39 +00:00
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Mainline kernel"
|
|
|
|
depends="linux-postmarketos-qcom-msm8953"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2021-05-08 13:40:46 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Firmware for WiFi, Audio, etc."
|
2021-10-25 16:17:23 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
downstream_firmware() {
|
|
|
|
pkgdesc="Firmware support packages for downstream kernel"
|
|
|
|
depends="
|
|
|
|
firmware-fairphone-fp3-wcnss
|
|
|
|
wcnss-wlan
|
|
|
|
"
|
|
|
|
install_if="$pkgname-kernel-downstream $pkgname-nonfree-firmware"
|
2021-05-08 13:40:46 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-12-29 18:29:39 +00:00
|
|
|
mainline_firmware() {
|
|
|
|
pkgdesc="Firmware support packages for mainline kernel"
|
|
|
|
depends="
|
|
|
|
firmware-fairphone-fp3-adreno
|
|
|
|
firmware-fairphone-fp3-adsp
|
|
|
|
firmware-fairphone-fp3-venus
|
|
|
|
firmware-fairphone-fp3-wcnss
|
|
|
|
rmtfs
|
|
|
|
"
|
|
|
|
install_if="$pkgname-kernel-mainline $pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-05-08 13:40:46 +00:00
|
|
|
sha512sums="
|
2021-12-29 18:29:39 +00:00
|
|
|
412f09b87067f4fb4a89e28617ca7084aba1c6d27815fd2cc913c78dec19988412127d340bd542c04bcef3ba106e168b6e75bbdeb00b6ca93106b2cf130bd4f4 deviceinfo
|
2021-05-08 13:40:46 +00:00
|
|
|
"
|