fairphone-fp3: add mainline kernel subpackage (MR 3020)

Modem firmware is currently not installed by default because the modem
doesn't actually boot.
This commit is contained in:
Luca Weiss 2021-12-29 19:29:39 +01:00
parent fa2bae032d
commit 7f9549f2bd
No known key found for this signature in database
GPG key ID: 72D843B89D4DD756
2 changed files with 25 additions and 6 deletions

View file

@ -1,7 +1,7 @@
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname=device-fairphone-fp3 pkgname=device-fairphone-fp3
pkgdesc="Fairphone 3" pkgdesc="Fairphone 3"
pkgver=0.3 pkgver=0.4
pkgrel=0 pkgrel=0
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
@ -17,7 +17,9 @@ makedepends="devicepkg-dev"
source="deviceinfo" source="deviceinfo"
subpackages=" subpackages="
$pkgname-downstream-firmware:downstream_firmware $pkgname-downstream-firmware:downstream_firmware
$pkgname-mainline-firmware:mainline_firmware
$pkgname-kernel-downstream:kernel_downstream $pkgname-kernel-downstream:kernel_downstream
$pkgname-kernel-mainline:kernel_mainline
$pkgname-nonfree-firmware:nonfree_firmware $pkgname-nonfree-firmware:nonfree_firmware
" "
@ -35,6 +37,12 @@ kernel_downstream() {
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
} }
kernel_mainline() {
pkgdesc="Mainline kernel"
depends="linux-postmarketos-qcom-msm8953"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
nonfree_firmware() { nonfree_firmware() {
pkgdesc="Firmware for WiFi, Audio, etc." pkgdesc="Firmware for WiFi, Audio, etc."
mkdir "$subpkgdir" mkdir "$subpkgdir"
@ -50,6 +58,19 @@ downstream_firmware() {
mkdir "$subpkgdir" mkdir "$subpkgdir"
} }
sha512sums=" mainline_firmware() {
5bee43115c36455fc9f1a6be2107420ccaf94b0c0bdef136fad2af5d6e4545965958a13ba1bbcbf3ef027e0da3cb5f16224b543ebd451a4ebc23e3b102322396 deviceinfo 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"
}
sha512sums="
412f09b87067f4fb4a89e28617ca7084aba1c6d27815fd2cc913c78dec19988412127d340bd542c04bcef3ba106e168b6e75bbdeb00b6ca93106b2cf130bd4f4 deviceinfo
" "

View file

@ -9,6 +9,7 @@ deviceinfo_codename="fairphone-fp3"
deviceinfo_year="2019" deviceinfo_year="2019"
deviceinfo_dtb_mainline="qcom/sdm632-fairphone-fp3" deviceinfo_dtb_mainline="qcom/sdm632-fairphone-fp3"
deviceinfo_append_dtb_mainline="true" deviceinfo_append_dtb_mainline="true"
deviceinfo_modules_initfs_mainline="msm panel-fairphone-fp3-hx83112b"
deviceinfo_arch="aarch64" deviceinfo_arch="aarch64"
# Device related # Device related
@ -18,7 +19,7 @@ deviceinfo_external_storage="true"
deviceinfo_screen_width="1080" deviceinfo_screen_width="1080"
deviceinfo_screen_height="2160" deviceinfo_screen_height="2160"
deviceinfo_getty="ttyMSM0;115200" deviceinfo_getty="ttyMSM0;115200"
deviceinfo_gpu_accelerated_mainline="true" deviceinfo_gpu_accelerated="true"
# Bootloader related # Bootloader related
deviceinfo_flash_method="fastboot" deviceinfo_flash_method="fastboot"
@ -35,6 +36,3 @@ deviceinfo_flash_offset_ramdisk="0x01000000"
deviceinfo_flash_offset_second="0x00f00000" deviceinfo_flash_offset_second="0x00f00000"
deviceinfo_flash_offset_tags="0x00000100" deviceinfo_flash_offset_tags="0x00000100"
deviceinfo_flash_pagesize="2048" deviceinfo_flash_pagesize="2048"
# USB
deviceinfo_rndis_function="ncm.usb0"