2019-07-08 18:20:20 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-05-27 04:33:49 +00:00
|
|
|
# Maintainer: Nikita Travkin <nikitos.tr@gmail.com>
|
2020-08-04 09:46:27 +00:00
|
|
|
# Co-Maintainer: Minecrell <minecrell@minecrell.net>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-wileyfox-crackling
|
2019-07-08 18:20:20 +00:00
|
|
|
pkgdesc="Wileyfox Swift"
|
2020-04-04 16:00:14 +00:00
|
|
|
pkgver=3
|
2020-05-17 13:33:49 +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 16:00:14 +00:00
|
|
|
source="deviceinfo modprobe.conf"
|
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-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to 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() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to 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-05-17 13:33:49 +00:00
|
|
|
sha512sums="2b2b3ca29bfbe70c47550de1736595b7b613a34728e2339e45baa3188615531cca17690b6c85118aecc0dcc695a1586f49a806663eea841612b17ef7a1ca595c deviceinfo
|
2020-04-04 16:00:14 +00:00
|
|
|
a033c958c7539c7f2ce0b1f5ee3977900f8a71a02e9ff5e7f32aaeb7e3687e1765034a7c30477c050e3e0af67e534ecc2984eecbfce34c689247c24f69149d27 modprobe.conf"
|