2021-05-08 13:40:46 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-fairphone-fp3
|
|
|
|
pkgdesc="Fairphone 3"
|
2023-09-06 08:31:41 +00:00
|
|
|
pkgver=1
|
|
|
|
pkgrel=0
|
2021-05-08 13:40:46 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
2023-06-25 09:04:10 +00:00
|
|
|
lk2nd-msm8953
|
2021-05-08 13:40:46 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
2023-09-06 08:31:41 +00:00
|
|
|
soc-qcom-msm8953
|
2021-05-08 13:40:46 +00:00
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2023-08-02 17:06:01 +00:00
|
|
|
source="deviceinfo modules-initfs.mainline"
|
2021-05-08 13:40:46 +00:00
|
|
|
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)"
|
2022-12-26 12:57:45 +00:00
|
|
|
depends="linux-fairphone-fp3 msm-fb-refresher"
|
2021-05-08 13:40:46 +00:00
|
|
|
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="
|
2023-08-02 17:06:01 +00:00
|
|
|
f066a16919f016a894a69d12cdac84e80a94ed942c69534a40dfdfabb4adc555e4a8a20146afb7e5bf525c8cd3d8dbf23d8671eb4f550c4b4c7de173289509a7 deviceinfo
|
|
|
|
c56e5b11dc5ecaba8bb5ff0e06a1f2746942eebb0336257e44e673e849f440a6800e5b30e297e5827fb540778e4400daa31b76f521b3e804279c0c2b3329267f modules-initfs.mainline
|
2021-05-08 13:40:46 +00:00
|
|
|
"
|