2018-06-28 22:03:50 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-samsung-klte
|
2018-02-02 19:59:14 +00:00
|
|
|
pkgdesc="Samsung Galaxy S5"
|
2021-03-17 01:10:15 +00:00
|
|
|
pkgver=0.4
|
|
|
|
pkgrel=0
|
2018-02-02 19:59:14 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2019-03-11 08:41:05 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2020-11-21 00:35:40 +00:00
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2018-02-02 19:59:14 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2018-05-13 19:47:32 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
2019-04-19 12:40:44 +00:00
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2020-03-29 18:04:28 +00:00
|
|
|
$pkgname-downstream-firmware:downstream_firmware
|
|
|
|
$pkgname-mainline-firmware:mainline_firmware
|
2019-06-02 02:49:02 +00:00
|
|
|
"
|
|
|
|
source="
|
2020-01-13 10:40:26 +00:00
|
|
|
70-klte-android.rules
|
|
|
|
battery-status
|
2021-03-17 01:10:15 +00:00
|
|
|
bt-module-deps.conf
|
2020-01-13 10:40:26 +00:00
|
|
|
cpufreq.start
|
2019-06-02 02:49:02 +00:00
|
|
|
deviceinfo
|
|
|
|
fstab.android
|
|
|
|
set-brightness
|
|
|
|
NetworkManager-klte.conf
|
2018-05-13 19:47:32 +00:00
|
|
|
"
|
2018-02-02 19:59:14 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2018-05-13 19:47:32 +00:00
|
|
|
kernel_downstream() {
|
2019-06-02 02:49:02 +00:00
|
|
|
pkgdesc="Display, touchscreen, Wi-Fi works (see device table for details)"
|
2020-11-21 00:35:40 +00:00
|
|
|
depends="
|
|
|
|
cpufrequtils
|
|
|
|
dropbear
|
|
|
|
linux-samsung-klte
|
|
|
|
msm-fb-refresher
|
|
|
|
"
|
2019-06-02 02:49:02 +00:00
|
|
|
install="$pkgname-kernel-downstream.post-install"
|
|
|
|
|
2018-10-15 19:54:15 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
2019-06-02 02:49:02 +00:00
|
|
|
|
|
|
|
# Disable v4l udev rules (video4linux), because without the camera
|
|
|
|
# firmware blobs this makes udev helper hang (#1033)
|
2020-01-10 10:32:56 +00:00
|
|
|
mkdir -p "$subpkgdir"/etc/udev/rules.d
|
|
|
|
ln -s /dev/null "$subpkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
|
2019-06-02 02:49:02 +00:00
|
|
|
|
|
|
|
# NetworkManager configuration - ignore unsupported devices for now and set default dhcp client
|
2020-01-10 10:32:56 +00:00
|
|
|
install -Dm644 "$startdir"/NetworkManager-klte.conf \
|
|
|
|
"$subpkgdir"/etc/NetworkManager/conf.d/10-klte.conf
|
2019-06-02 02:49:02 +00:00
|
|
|
|
|
|
|
# Extras, helper scripts that make life of developer/user easier
|
2020-01-10 10:32:56 +00:00
|
|
|
install -Dm755 "$startdir"/set-brightness "$subpkgdir"/usr/bin/set-brightness
|
|
|
|
install -Dm755 "$startdir"/battery-status "$subpkgdir"/usr/bin/battery-status
|
2020-01-13 10:40:26 +00:00
|
|
|
|
|
|
|
# Power saver
|
|
|
|
install -Dm755 "$startdir"/cpufreq.start "$subpkgdir"/etc/local.d/cpufreq.start
|
2018-05-13 19:47:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2020-11-21 00:35:40 +00:00
|
|
|
pkgdesc="Close to mainline kernel. Display, touchscreen, Wi-Fi works. Work in progress!"
|
2020-03-29 18:04:28 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8974 mesa-dri-gallium"
|
2018-10-15 19:54:15 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
2018-05-13 19:47:32 +00:00
|
|
|
}
|
|
|
|
|
2019-04-19 12:40:44 +00:00
|
|
|
nonfree_firmware() {
|
2020-03-29 18:04:28 +00:00
|
|
|
pkgdesc="Wifi, GPU firmware"
|
|
|
|
mkdir "$subpkgdir"
|
2021-03-17 01:10:15 +00:00
|
|
|
# This config makes sense only if non-free firmware is installed
|
|
|
|
install -Dm644 "$srcdir"/bt-module-deps.conf \
|
|
|
|
"$subpkgdir"/etc/modprobe.d/bt-module-deps.conf
|
2020-03-29 18:04:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
downstream_firmware() {
|
|
|
|
pkgdesc="Firmware packages for klte downstream kernel"
|
2019-04-19 12:40:44 +00:00
|
|
|
depends="firmware-samsung-klte"
|
2020-03-29 18:04:28 +00:00
|
|
|
install_if="$pkgname-kernel-downstream $pkgname-nonfree-firmware"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
mainline_firmware() {
|
|
|
|
pkgdesc="Firmware packages for klte mainline kernel"
|
2020-11-21 00:35:40 +00:00
|
|
|
depends="firmware-adreno firmware-samsung-klte"
|
2020-03-29 18:04:28 +00:00
|
|
|
install_if="$pkgname-kernel-mainline $pkgname-nonfree-firmware"
|
2019-04-19 12:40:44 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2020-01-13 10:40:26 +00:00
|
|
|
sha512sums="a68734d3fe30695d5a9302c92327e8ca564a73d06f0de87371800d1bdf4c541c3721af380b8d44cfa0b4cc1dc8a71586aec3f00bb877ee9dc18f41ba34caaeff 70-klte-android.rules
|
|
|
|
66db173b9f1075a133efeea8bda94ef08089b7c15acbc1e3aefb9f8510daa7690a0ce2739d20647e096ba69940ac5c4c6699f3b032ec67609ca56f116bb25256 battery-status
|
2021-03-17 01:10:15 +00:00
|
|
|
6cef5f8ae1785ac16e6fe84bfc861ac50cdfb94db35d764f44a25c960e123cb82f6e56f45362a5340c62a3d5ac225f2689afd4f6964cb88305a0892ba44214f0 bt-module-deps.conf
|
2020-01-13 10:40:26 +00:00
|
|
|
c66e0c57e911b644cf6c340ea19ce0a9399b8e9e6cb0da38f612e0f8b3d0812ad109cd7b7506184e840a653397a64e3e57fdc71ab8b0fc52733bf74365b9c0e7 cpufreq.start
|
2021-03-07 20:45:03 +00:00
|
|
|
6a44037e10a8374283726ad920b9405a441f313d0fd4bc8aa8b5c1eb3e61eba513c1ddc6a4587593a7223fd945f5e4958be6fdf77a2e4ffcf264a00666fa9e42 deviceinfo
|
2019-06-02 02:49:02 +00:00
|
|
|
35f3b120152ebe709e11cebc9ced03f21f52768d88bd68ed23ed864fe1dd3b63665c8f74575882e217dd8226ae5d260e5ad2045dc4ab2470c89185f19b81c4a7 fstab.android
|
|
|
|
f773a9792407c1ad96b11c6673093c9eeff7d538459b7772c5956760a8cbb4de8912b24c77e8812afe056db26fa3e29af09e2a3851828baa0b9a9986bf80790b set-brightness
|
2019-06-03 20:14:31 +00:00
|
|
|
3753dcd8c25cfbbdd8f087a3168537df1334f0d33f36bc8923ec3d225ceb88121aa8d1670d6c6a2baab3d7067c86a43571695ce22e3b47076f97fcb53d1d7e6f NetworkManager-klte.conf"
|