2019-07-08 18:20:20 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-01-10 10:32:58 +00:00
|
|
|
# Contributor: Nikita Travkin <nikitos.tr@gmail.com>
|
2020-01-18 11:40:15 +00:00
|
|
|
# Contributor: Minecrell <minecrell@minecrell.net>
|
2019-07-08 18:20:20 +00:00
|
|
|
pkgname="device-wileyfox-crackling"
|
|
|
|
pkgdesc="Wileyfox Swift"
|
2020-01-18 11:40:15 +00:00
|
|
|
pkgver=2
|
2020-03-07 18:58:32 +00:00
|
|
|
pkgrel=1
|
2019-07-08 18:20:20 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
2019-07-12 19:42:56 +00:00
|
|
|
depends="postmarketos-base mkbootimg"
|
2019-07-08 18:20:20 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2019-07-12 19:42:56 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
2020-01-18 11:40:15 +00:00
|
|
|
$pkgname-kernel-mainline-modem:kernel_mainline_modem
|
2019-07-12 19:42:56 +00:00
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2020-01-18 11:40:15 +00:00
|
|
|
$pkgname-nonfree-firmware-modem:nonfree_firmware_modem
|
2019-07-12 19:42:56 +00:00
|
|
|
"
|
|
|
|
|
2019-07-08 18:20:20 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
fb.modes
|
|
|
|
"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2019-07-12 19:42:56 +00:00
|
|
|
install -Dm544 "$srcdir"/fb.modes "$pkgdir"/etc/fb.modes
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2020-01-18 11:40:15 +00:00
|
|
|
pkgdesc="Mainline kernel (no charging, no modem, audio routed directly)"
|
2019-07-12 19:42:56 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2020-01-18 11:40:15 +00:00
|
|
|
kernel_mainline_modem() {
|
|
|
|
pkgdesc="Mainline kernel (no charging, non-free modem, audio routed through ADSP)"
|
|
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916 soc-qcom-msm8916-modem"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2019-07-12 19:42:56 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="For charging/debugging only (prefer mainline)"
|
|
|
|
depends="linux-wileyfox-crackling mesa-dri-swrast mdss-fb-init-hack"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2020-01-18 11:40:15 +00:00
|
|
|
pkgdesc="GPU/WiFi/BT/Video(/Modem) firmware"
|
2019-07-12 19:42:56 +00:00
|
|
|
depends="linux-firmware-qcom firmware-wileyfox-crackling-venus firmware-wileyfox-crackling-wcnss"
|
|
|
|
mkdir "$subpkgdir"
|
2019-07-08 18:20:20 +00:00
|
|
|
}
|
|
|
|
|
2020-01-18 11:40:15 +00:00
|
|
|
nonfree_firmware_modem() {
|
|
|
|
pkgdesc="Modem firmware"
|
|
|
|
depends="firmware-wileyfox-crackling-modem"
|
|
|
|
install_if="$pkgname-nonfree-firmware $pkgname-kernel-mainline-modem"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-03-07 16:10:22 +00:00
|
|
|
sha512sums="4f307c36c23994ad11f5f4af3209415993f3e5b134a0f05a4b1694a02d2d83cea7a395eb33958650162f3d13e2f6dde35ada7d22c15c195705bdc8ac7da83ccf deviceinfo
|
2019-07-08 18:20:20 +00:00
|
|
|
587be41a15f5738c6f55c52f760e08810185a00af886e84864f77ce38675bdf65893779a4ea88c9811023746895818ce5829a1b060e158f2cdae87d13e13f07d fb.modes"
|