2018-08-23 18:40:19 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-fairphone-fp2
|
2017-09-21 17:21:21 +00:00
|
|
|
pkgdesc="Fairphone 2"
|
2022-11-21 19:38:37 +00:00
|
|
|
pkgver=7
|
2023-05-13 09:22:50 +00:00
|
|
|
pkgrel=2
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2017-09-21 17:21:21 +00:00
|
|
|
license="MIT"
|
2019-02-13 18:54:14 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2020-10-08 09:08:02 +00:00
|
|
|
depends="
|
2023-05-13 09:22:50 +00:00
|
|
|
lk2nd-msm8974
|
2020-10-08 09:08:02 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
2022-11-21 19:38:37 +00:00
|
|
|
swclock-offset
|
2020-10-08 09:08:02 +00:00
|
|
|
"
|
2018-08-23 18:40:19 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2018-10-10 07:30:21 +00:00
|
|
|
source="deviceinfo
|
|
|
|
FP2.conf
|
2020-08-03 18:58:19 +00:00
|
|
|
hifi
|
2022-04-03 09:04:48 +00:00
|
|
|
phoc.ini
|
2020-10-08 09:08:02 +00:00
|
|
|
30-gpu-firmware.files
|
2020-08-03 18:58:19 +00:00
|
|
|
"
|
2019-10-19 19:57:59 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-downstream-firmware:downstream_firmware
|
|
|
|
$pkgname-mainline-firmware:mainline_firmware
|
|
|
|
$pkgname-alsa
|
2020-08-03 18:58:19 +00:00
|
|
|
$pkgname-phosh
|
2019-10-19 19:57:59 +00:00
|
|
|
"
|
2018-08-23 18:40:19 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
2017-09-21 17:21:21 +00:00
|
|
|
|
|
|
|
package() {
|
2018-08-23 18:40:19 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-09-21 17:21:21 +00:00
|
|
|
}
|
|
|
|
|
2019-10-19 19:57:59 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
2020-10-08 09:08:02 +00:00
|
|
|
depends="linux-fairphone-fp2"
|
2019-10-19 19:57:59 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to mainline kernel"
|
2020-10-08 09:08:02 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8974 mesa-egl"
|
2019-10-19 19:57:59 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2018-02-26 20:53:22 +00:00
|
|
|
nonfree_firmware() {
|
2018-10-10 07:30:21 +00:00
|
|
|
pkgdesc="Firmware for WiFi, Audio, etc."
|
2019-10-19 19:57:59 +00:00
|
|
|
depends="firmware-fairphone-fp2-adsp firmware-fairphone-fp2-modem firmware-fairphone-fp2-wcnss"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
downstream_firmware() {
|
|
|
|
pkgdesc="Firmware support packages for downstream kernel"
|
2020-03-08 19:26:46 +00:00
|
|
|
depends="$pkgname-alsa adsp-audio msm-modem-downstream wcnss-wlan"
|
2019-10-19 19:57:59 +00:00
|
|
|
install_if="$pkgname-kernel-downstream $pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
mainline_firmware() {
|
|
|
|
pkgdesc="Firmware support packages for mainline kernel"
|
2022-05-25 19:31:10 +00:00
|
|
|
depends="msm-modem msm-modem-uim-selection firmware-qcom-adreno-a330"
|
2019-10-19 19:57:59 +00:00
|
|
|
install_if="$pkgname-kernel-mainline $pkgname-nonfree-firmware"
|
2018-02-26 20:53:22 +00:00
|
|
|
mkdir "$subpkgdir"
|
2020-10-08 09:08:02 +00:00
|
|
|
|
|
|
|
install -Dm644 "$srcdir/30-gpu-firmware.files" \
|
2023-02-18 23:30:50 +00:00
|
|
|
"$subpkgdir/usr/share/mkinitfs/files/30-gpu-firmware.files"
|
2018-02-26 20:53:22 +00:00
|
|
|
}
|
|
|
|
|
2018-10-10 07:30:21 +00:00
|
|
|
alsa() {
|
2019-10-15 18:17:39 +00:00
|
|
|
pkgdesc="Audio configuration files"
|
|
|
|
|
2018-10-10 07:30:21 +00:00
|
|
|
mkdir -p "$subpkgdir"/usr/share/alsa/ucm/FP2
|
|
|
|
install -Dm644 "$srcdir"/FP2.conf "$subpkgdir"/usr/share/alsa/ucm/FP2/
|
|
|
|
install -Dm644 "$srcdir"/hifi "$subpkgdir"/usr/share/alsa/ucm/FP2/
|
|
|
|
}
|
|
|
|
|
2020-08-03 18:58:19 +00:00
|
|
|
phosh() {
|
|
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
2022-04-03 09:04:48 +00:00
|
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
2020-08-03 18:58:19 +00:00
|
|
|
}
|
|
|
|
|
2022-05-05 14:50:55 +00:00
|
|
|
sha512sums="
|
2022-10-04 20:34:45 +00:00
|
|
|
1327db1026b118ec9f5f74e637e4d7d60763836e6481b0f379be83de2980b7a1c9aed6e0f0dfbd44340a1efd1331e6b21cbac8a968fdf04e7188a990698f9520 deviceinfo
|
2018-10-10 07:30:21 +00:00
|
|
|
55360b1ba4ddadea341c9edb13c32ba5f19aabf75ab28602f30cfb79b9df8834f115ef979c70569f23ec1293b1fcd408baf320d87803293ce7106bdc73a26c9f FP2.conf
|
2020-08-03 18:58:19 +00:00
|
|
|
b834461c6866bb0c473dd089dd5da641dd42a00f610aad6503117aa50fe6e200db9ad0a264bb609f12350d59faee1f772907bacd75439f702ea7d52f6f85e2b1 hifi
|
2022-05-05 14:50:55 +00:00
|
|
|
cef2fd633cddbcf4ac9b4d2fa6bf3a1e3e8d810a2ea8050767fe649d289db753662821d5e41e2c8d20fb9c765c1babcb6a4d95e4c9345f5ea32d1b1d2b1e5126 phoc.ini
|
|
|
|
bbe6d6f530a9fa1934dd065dd4f6da48450e2115e4656b219d7f3aebc8b6a2775c02a2e5ffb5790950bb8183fca4677fbeaf9d8a267089c9f0d08461fc8ed45d 30-gpu-firmware.files
|
|
|
|
"
|