3ed9591e41
This cmdline argument is now a no-op. Drop it everywhere and add a new CI check to enforce this. Adjust the deprecated "minimal" initramfs variant to use pmos.debug-shell to enable logging instead. It doesn't /support/ dropping to a shell, so the variable takes on a different meaning. But that's ok since it's at least more consistent. [ci:ignore-count] [ci:skip-vercheck] Signed-off-by: Caleb Connolly <caleb@postmarketos.org> Tweaked-by: Oliver Smith <ollieparanoid@postmarketos.org> [ci:skip-build]: kernel builds are very likely to go through now
99 lines
3 KiB
Text
99 lines
3 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-fairphone-fp2
|
|
pkgdesc="Fairphone 2"
|
|
pkgver=7
|
|
pkgrel=7
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="
|
|
lk2nd-msm8974
|
|
mkbootimg
|
|
postmarketos-base
|
|
swclock-offset
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
source="
|
|
deviceinfo
|
|
modules-initfs.mainline
|
|
FP2.conf
|
|
hifi
|
|
phoc.ini
|
|
30-gpu-firmware.files
|
|
"
|
|
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
|
|
$pkgname-phosh
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
kernel_downstream() {
|
|
pkgdesc="Downstream kernel"
|
|
depends="linux-fairphone-fp2"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_mainline() {
|
|
pkgdesc="Close to mainline kernel"
|
|
depends="linux-postmarketos-qcom-msm8974 mesa-egl"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="Firmware for WiFi, Audio, etc."
|
|
depends="firmware-fairphone-fp2-adsp firmware-fairphone-fp2-modem firmware-fairphone-fp2-wcnss"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
downstream_firmware() {
|
|
pkgdesc="Firmware support packages for downstream kernel"
|
|
depends="$pkgname-alsa adsp-audio msm-modem-downstream wcnss-wlan"
|
|
install_if="$pkgname-kernel-downstream $pkgname-nonfree-firmware"
|
|
mkdir "$subpkgdir"
|
|
}
|
|
|
|
mainline_firmware() {
|
|
pkgdesc="Firmware support packages for mainline kernel"
|
|
depends="msm-modem msm-modem-uim-selection firmware-qcom-adreno-a330"
|
|
install_if="$pkgname-kernel-mainline $pkgname-nonfree-firmware"
|
|
mkdir "$subpkgdir"
|
|
|
|
install -Dm644 "$srcdir/30-gpu-firmware.files" \
|
|
"$subpkgdir/usr/share/mkinitfs/files/30-gpu-firmware.files"
|
|
}
|
|
|
|
alsa() {
|
|
pkgdesc="Audio configuration files"
|
|
|
|
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/
|
|
}
|
|
|
|
phosh() {
|
|
install_if="$pkgname postmarketos-ui-phosh"
|
|
install -Dm644 "$srcdir"/phoc.ini \
|
|
"$subpkgdir"/etc/phosh/phoc.ini
|
|
}
|
|
|
|
sha512sums="
|
|
f44cc3b5db025b0df7e3df88561a46b10b8b106e27e5a227ea50b44ebbd91d2986f4eac3a5f1e3cbac2d3a8c119708d22c057bbb9e4fc7b3b9c0c03460f5e850 deviceinfo
|
|
1a99953420a4068c6205dd90015e895909d39011dcc72fd73ac6880920fe4b95fe54377b9d4864a2d4fac56c4334e0c896ba8cc92dea61f93e9384de0998a910 modules-initfs.mainline
|
|
55360b1ba4ddadea341c9edb13c32ba5f19aabf75ab28602f30cfb79b9df8834f115ef979c70569f23ec1293b1fcd408baf320d87803293ce7106bdc73a26c9f FP2.conf
|
|
b834461c6866bb0c473dd089dd5da641dd42a00f610aad6503117aa50fe6e200db9ad0a264bb609f12350d59faee1f772907bacd75439f702ea7d52f6f85e2b1 hifi
|
|
cef2fd633cddbcf4ac9b4d2fa6bf3a1e3e8d810a2ea8050767fe649d289db753662821d5e41e2c8d20fb9c765c1babcb6a4d95e4c9345f5ea32d1b1d2b1e5126 phoc.ini
|
|
bbe6d6f530a9fa1934dd065dd4f6da48450e2115e4656b219d7f3aebc8b6a2775c02a2e5ffb5790950bb8183fca4677fbeaf9d8a267089c9f0d08461fc8ed45d 30-gpu-firmware.files
|
|
"
|