2018-02-24 18:46:54 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-jolla-sbj
|
2018-02-24 18:46:54 +00:00
|
|
|
pkgdesc="Jolla phone"
|
2023-12-12 07:28:32 +00:00
|
|
|
pkgver=1
|
|
|
|
pkgrel=0
|
2018-02-24 18:46:54 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2021-05-08 15:18:09 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="postmarketos-base linux-jolla-sbj mkbootimg msm-fb-refresher wcnss-wlan alsa-ucm-conf"
|
2018-02-24 18:46:54 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2021-05-15 08:05:30 +00:00
|
|
|
install="$pkgname.post-install $pkgname.post-upgrade"
|
2021-05-10 21:56:48 +00:00
|
|
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
2021-05-15 08:05:30 +00:00
|
|
|
source="deviceinfo
|
|
|
|
load-wlan-module
|
|
|
|
wcnss-wlan
|
|
|
|
100-charging.rules
|
|
|
|
led-charging-sbj.sh
|
|
|
|
led-discharging-sbj.sh
|
|
|
|
pointercal
|
|
|
|
asound.state
|
|
|
|
ucm/msm8930-sitar.conf
|
|
|
|
ucm/HiFi.conf
|
|
|
|
buttons.conf
|
|
|
|
"
|
2018-02-24 18:46:54 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2021-05-15 08:05:30 +00:00
|
|
|
|
|
|
|
install -Dm744 "$srcdir"/led-charging-sbj.sh \
|
|
|
|
"$pkgdir"/usr/lib/device-jolla-sbj/led-charging-sbj.sh
|
|
|
|
install -Dm744 "$srcdir"/led-discharging-sbj.sh \
|
|
|
|
"$pkgdir"/usr/lib/device-jolla-sbj/led-discharging-sbj.sh
|
|
|
|
|
|
|
|
install -Dm644 "$srcdir"/100-charging.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/100-charging.rules
|
|
|
|
|
|
|
|
install -D -m644 "$srcdir"/pointercal \
|
|
|
|
"$pkgdir"/etc/pointercal
|
|
|
|
install -D -m644 "$srcdir"/asound.state \
|
|
|
|
"$pkgdir"/var/lib/alsa/asound.state
|
|
|
|
|
|
|
|
# Install triggerhappy evdev rules for sbj
|
|
|
|
install -Dm755 "$srcdir"/buttons.conf "$pkgdir"/etc/triggerhappy/triggers.d/buttons.conf
|
|
|
|
|
|
|
|
# Alsa usecase manager config
|
2021-12-12 16:07:46 +00:00
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/alsa/ucm2/conf.d/msm8930-sitar \
|
|
|
|
"$srcdir"/msm8930-sitar.conf \
|
|
|
|
"$srcdir"/HiFi.conf
|
2021-05-15 08:05:30 +00:00
|
|
|
|
|
|
|
# Remove v4l rules due to crashes and hangs
|
|
|
|
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
|
2018-02-24 18:46:54 +00:00
|
|
|
}
|
|
|
|
|
2021-05-10 21:56:48 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Firmware for Modem and WiFi"
|
|
|
|
depends="firmware-jolla-sbj-modem firmware-jolla-sbj-wlan msm-modem-downstream"
|
|
|
|
mkdir "$subpkgdir"
|
2021-05-15 08:05:30 +00:00
|
|
|
|
|
|
|
install -Dm755 "$srcdir"/load-wlan-module \
|
|
|
|
"$pkgdir"/etc/init.d/load-wlan-module
|
|
|
|
install -Dm644 "$srcdir"/wcnss-wlan \
|
|
|
|
"$pkgdir"/etc/conf.d/wcnss-wlan
|
2021-05-10 21:56:48 +00:00
|
|
|
}
|
|
|
|
|
2021-05-08 15:18:09 +00:00
|
|
|
sha512sums="
|
2021-09-18 17:06:03 +00:00
|
|
|
19e2730f8bbf811f9a5849c1e5e677013c0c88ef2b843dac7ca743176dd9c8d5449c6b4a1f8fd8f4055f7753d9123fad2ada8e22ae40b240967176de585cf241 deviceinfo
|
2023-12-12 07:28:32 +00:00
|
|
|
501fbd47a2302ba9320fcdba81c4d6b806d2ded3e0fa70ab486fc0ff6501216f702d4724ef2878df2d7deef5eb1f66b42a04981804e7cfe3b4dc6dbee2be0ce5 load-wlan-module
|
2021-05-15 08:05:30 +00:00
|
|
|
a8cfde9dd3bc96d990038443e8d10a551f13536f017992ae23545d2f1e09b0f729e5cfd1f94f52a2a335335172f082925b91c980695a27f76f636343de795898 wcnss-wlan
|
|
|
|
829c8c8699188b6d0347a947abdb66f44096ac3a35094fb4d574b8debb6cb410f1f403321fed2cf82678fc7f52cb156959124aa6c15f3ef728b7237d62240e7e 100-charging.rules
|
|
|
|
e6241b7cebe2f970fb6d24ecd18edc55e92e73307594e6dda985fc9b0a2f5039313bb835b7969faf1d6aba9aed2cf97d4d7f24744e5d7528d3b7402b0dd72693 led-charging-sbj.sh
|
|
|
|
df54971314fde8e917e675b7813f208bc0e92748d177e9e07faf27c9e8d66e816de47da9a6760be0327842a9196ff563debc09a3a478485c814d7cbee3217095 led-discharging-sbj.sh
|
|
|
|
c6698c4992c0f88c90364107eb8e5d0120b70b380ecdcf32879615def782d8e64ab64c8a94ee69d13aaba2d9105044ffbf33f106170bcfd1eaf4447240ceef51 pointercal
|
|
|
|
4515ba1e449502e321f70de6bb69a771ccbe5d3f87777e9d91da80b9e0fb43f7198055555102e534043b0154dc8c30e942f09f3e753d0a8a5c91c6444f7d3497 asound.state
|
|
|
|
abbf130efc767c7062ac875e3a7c1a912c3f677abdc36ef4ed4c0a8d52a3b279680ecf1124ed5bf8f14321fee30b52b19d1ad4acebefb19880991a1e136735e2 msm8930-sitar.conf
|
|
|
|
0130ef966d66b284ad422a1d8333f7b308b9359c310db432047658906590713fea9103f422eab25c64d0d35684b4981879d08a6e64d44885c77284459683f8bd HiFi.conf
|
|
|
|
635565cb2caf4c17456590bf4db8903a8f8a0eeef7a643eceb3eea923908b19a0b2a0156cd62c0cd9ea4509e05e8bf08b9e0900ab1b622310f19947850dfc63d buttons.conf
|
2021-05-08 15:18:09 +00:00
|
|
|
"
|