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"
|
2020-04-04 15:50:19 +00:00
|
|
|
depends="postmarketos-base mkbootimg soc-qcom-msm8916"
|
2019-07-08 18:20:20 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-04-04 15:50:19 +00:00
|
|
|
source="deviceinfo"
|
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-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
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2019-07-12 19:42:56 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2020-01-18 11:40:15 +00:00
|
|
|
pkgdesc="Mainline kernel (no charging, no modem, audio routed directly)"
|
2020-04-04 15:50:19 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8916"
|
2019-07-12 19:42:56 +00:00
|
|
|
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)"
|
2020-04-04 15:50:19 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8916 soc-qcom-msm8916-modem"
|
2019-07-12 19:42:56 +00:00
|
|
|
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-04-04 15:50:19 +00:00
|
|
|
sha512sums="1dc287097cee0119c3610d6ff26dacb2a3a7a8fa981e9c331e536810985fe189c59170c2c440c21aaea09e6c84dfdf0dcbfbbaf272005b261c8d2cfdbf5c5efe deviceinfo"
|