2022-09-06 22:41:44 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-samsung-a6lte
|
|
|
|
pkgdesc="Samsung Galaxy A6 2018"
|
2023-06-30 16:37:51 +00:00
|
|
|
pkgver=0.5
|
2024-03-26 15:34:27 +00:00
|
|
|
pkgrel=6
|
2022-09-06 22:41:44 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="aarch64"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
alsa-utils
|
2023-12-29 13:33:46 +00:00
|
|
|
bootmac
|
2022-09-06 22:41:44 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
2023-01-18 16:59:25 +00:00
|
|
|
util-linux
|
2022-09-06 22:41:44 +00:00
|
|
|
"
|
|
|
|
replaces="
|
|
|
|
lightdm
|
|
|
|
pipewire-media-session
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2023-01-18 16:59:25 +00:00
|
|
|
install="$pkgname.post-install"
|
2022-09-06 22:41:44 +00:00
|
|
|
source="
|
2023-12-29 13:33:46 +00:00
|
|
|
$pkgname.post-install
|
|
|
|
$pkgname-downstream-quirks.post-install
|
2022-09-06 22:41:44 +00:00
|
|
|
deviceinfo
|
2023-01-18 16:59:25 +00:00
|
|
|
etc-conf.d-samsungipcd
|
2023-12-29 13:33:46 +00:00
|
|
|
etc-init.d-hciattach-ttySAC0
|
2022-09-06 22:41:44 +00:00
|
|
|
etc-init.d-udev-settle
|
2023-02-05 00:22:15 +00:00
|
|
|
etc-init.d-wlan0-up
|
2022-09-06 22:41:44 +00:00
|
|
|
etc-lightdm-lightdm.conf
|
|
|
|
etc-NetworkManager-conf.d-swlan0-unmanaged.conf
|
2023-01-18 16:59:25 +00:00
|
|
|
usr-libexec-samsungipcd-voicecall.sh
|
2022-09-06 22:41:44 +00:00
|
|
|
usr-share-alsa-ucm2-conf.d-Universal7870-I-HiFi.conf
|
|
|
|
usr-share-alsa-ucm2-conf.d-Universal7870-I-Universal7870-I.conf
|
2023-01-18 16:59:25 +00:00
|
|
|
usr-share-alsa-ucm2-conf.d-Universal7870-I-VoiceCall.conf
|
2022-09-06 22:41:44 +00:00
|
|
|
usr-share-pipewire-media-session.d-alsa-monitor.conf
|
|
|
|
"
|
2023-03-04 20:58:56 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
2023-12-29 13:33:46 +00:00
|
|
|
$pkgname-downstream-quirks:downstream_quirks
|
2023-03-04 20:58:56 +00:00
|
|
|
"
|
2022-09-06 22:41:44 +00:00
|
|
|
|
|
|
|
# pulseaudio does not seem to work on this device. Will use pipewire-pulse instead.
|
2023-03-04 20:58:56 +00:00
|
|
|
# (For downstream kernel, mainline does not have audio yet and I'd like to run Phosh)
|
2022-09-06 22:41:44 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2023-01-18 16:59:25 +00:00
|
|
|
install -Dm644 etc-conf.d-samsungipcd "$pkgdir"/etc/conf.d/samsungipcd
|
2023-02-05 00:22:15 +00:00
|
|
|
install -Dm755 etc-init.d-wlan0-up "$pkgdir"/etc/init.d/wlan0-up
|
2022-09-06 22:41:44 +00:00
|
|
|
install -Dm644 etc-lightdm-lightdm.conf "$pkgdir"/etc/lightdm/lightdm.conf
|
|
|
|
install -Dm644 etc-NetworkManager-conf.d-swlan0-unmanaged.conf "$pkgdir"/etc/NetworkManager/conf.d/swlan0-unmanaged.conf
|
2023-01-18 16:59:25 +00:00
|
|
|
install -Dm755 usr-libexec-samsungipcd-voicecall.sh "$pkgdir"/usr/libexec/samsungipcd/voicecall.sh
|
2022-09-06 22:41:44 +00:00
|
|
|
install -Dm644 usr-share-alsa-ucm2-conf.d-Universal7870-I-HiFi.conf "$pkgdir"/usr/share/alsa/ucm2/conf.d/Universal7870-I/HiFi.conf
|
|
|
|
install -Dm644 usr-share-alsa-ucm2-conf.d-Universal7870-I-Universal7870-I.conf "$pkgdir"/usr/share/alsa/ucm2/conf.d/Universal7870-I/Universal7870-I.conf
|
2023-01-18 16:59:25 +00:00
|
|
|
install -Dm644 usr-share-alsa-ucm2-conf.d-Universal7870-I-VoiceCall.conf "$pkgdir"/usr/share/alsa/ucm2/conf.d/Universal7870-I/VoiceCall.conf
|
2022-09-06 22:41:44 +00:00
|
|
|
install -Dm644 usr-share-pipewire-media-session.d-alsa-monitor.conf "$pkgdir"/usr/share/pipewire/media-session.d/alsa-monitor.conf
|
|
|
|
}
|
|
|
|
|
2023-03-04 20:58:56 +00:00
|
|
|
kernel_downstream() {
|
2023-12-29 13:33:46 +00:00
|
|
|
pkgdesc="Working: display, touchscreen, wifi, bluetooth, audio, cellular"
|
2023-06-30 16:37:51 +00:00
|
|
|
depends="linux-samsung-a6lte msm-fb-refresher pipewire pipewire-pulse"
|
2023-03-04 20:58:56 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2023-12-29 13:33:46 +00:00
|
|
|
pkgdesc="Close-to-mainline WIP. Working: display, touchscreen, wifi, bluetooth"
|
2023-06-30 16:37:51 +00:00
|
|
|
depends="linux-postmarketos-exynos7870 mesa-dri-simpledrm"
|
2023-03-04 20:58:56 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2024-03-26 15:34:27 +00:00
|
|
|
# samsungipcd is technically not a firmware package, but it does use the firmware stored on the on-device RADIO partition
|
|
|
|
# so it makes sense to have it here rather than in the main depends list
|
2022-09-06 22:41:44 +00:00
|
|
|
nonfree_firmware() {
|
2024-03-26 15:34:27 +00:00
|
|
|
pkgdesc="Wifi firmware & kill-switch for the cellular modem"
|
|
|
|
depends="firmware-samsung-a6lte samsungipcd"
|
2022-09-06 22:41:44 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2023-12-29 13:33:46 +00:00
|
|
|
downstream_quirks() {
|
|
|
|
pkgdesc="Hacks to make the downstream kernel work"
|
|
|
|
depends="bluez-deprecated"
|
|
|
|
install_if="$pkgname-kernel-downstream"
|
|
|
|
replaces="bootmac udev-init-scripts-openrc"
|
|
|
|
install="$subpkgname.post-install"
|
|
|
|
install -Dm755 etc-init.d-udev-settle "$subpkgdir"/etc/init.d/udev-settle
|
|
|
|
install -Dm755 etc-init.d-hciattach-ttySAC0 "$subpkgdir"/etc/init.d/hciattach-ttySAC0
|
|
|
|
# we run bootmac ourselves and don't want it to trigger from the udev rule
|
|
|
|
# so remove the rule
|
|
|
|
install -Dm755 /dev/null "$subpkgdir"/usr/lib/udev/rules.d/90-bootmac.rules
|
|
|
|
}
|
|
|
|
|
2022-09-06 22:41:44 +00:00
|
|
|
sha512sums="
|
2023-12-29 13:33:46 +00:00
|
|
|
e787dd30a667fd886a46bb0b670bd2771a8fc78fddc39bb86405fdda6024bc1211b82f89664b7cfc622adf2968b9cd09b0eb3d2ed607148bf3549dd783e6f752 device-samsung-a6lte.post-install
|
|
|
|
9c0f939c97582d9c03fb62386527569b7f08dd6c8350c8ac6cf9f70d6d5da61d5fc95997b413c4fdb671379ab35caedb631b9af33c7a1e8f3388b3fb56d9b435 device-samsung-a6lte-downstream-quirks.post-install
|
2023-06-05 21:11:15 +00:00
|
|
|
d5f9631b0753abc70b83dcba2eba1d7191bba979ab3ad404401abbe4f4326068d610b49d4482d16115ac9d8c36006753caf794aebed06413497f9f3c37bb9ffa deviceinfo
|
2023-01-18 16:59:25 +00:00
|
|
|
3e5bb764529010d2b6b1f2759a7799f665d140aebcee2dd63433e68cd4282e09b5d3b34fb7c21e737595b406501e7f02ece4592651c60e4c2b9419de4aedb438 etc-conf.d-samsungipcd
|
2023-12-29 13:33:46 +00:00
|
|
|
5e23fd88baa4694ef48ec9590f948e11101be1e472c626f88011a182534a16520eb00c95a10ea77a773123892036188e2e0783540f3b8f8fe158da5e06568e02 etc-init.d-hciattach-ttySAC0
|
2022-09-06 22:41:44 +00:00
|
|
|
203b832a7080d5f1351c5e024e444f9fe509f6e0fd4b376a60c7d73359b7e356863a4f15caf9b2e4e733dc44d2971722083e7c69ca94a012eb004b4b8ded9d09 etc-init.d-udev-settle
|
2023-02-05 00:22:15 +00:00
|
|
|
7caddfe4659c969a33adcc27a760bc78d4f70ca4b7a4a5ec28a6411c12f3e6dd6d427b59f75976a737a5fe0f09806f8b6d65798f6358bd1e1954ad2a28fbfdc8 etc-init.d-wlan0-up
|
2022-09-06 22:41:44 +00:00
|
|
|
861270c6bc0b2a3e6cd389c21c8c895e62de8cf8bec6fcf23c178f8cbaae855d62b0ee98692671ab4f518d84cb43dd0b2fe46f5a609f65af6a6c06e0fdbb6d0c etc-lightdm-lightdm.conf
|
|
|
|
ef24527b13e48a9153643f3713167d3d08486e7de8b4c94d7c446ff380396115890573d8cd4aa5448766d9e779e189833a83e7921081679bd348c3f8a59410af etc-NetworkManager-conf.d-swlan0-unmanaged.conf
|
2023-01-18 16:59:25 +00:00
|
|
|
abe1c4a2f59fe862cebef75c54b8806bd86ce06aeb15d8c0699ab1338c9d575cb72a4d5b099f94272b1d9c9c3f4960af209a9e058ea9e57733b7d905dad0d33f usr-libexec-samsungipcd-voicecall.sh
|
|
|
|
2169590d10d6123575d43e8ff7dc0d2ba824f8266d9fa75a5b59a4cc5753e47e327368b777082930d6b7a7aed6f57fa6ac2c5a2e816e1e12cd1032a8bb1822b5 usr-share-alsa-ucm2-conf.d-Universal7870-I-HiFi.conf
|
|
|
|
dc528deb556906adfb89b02b6faa04a8b21358706bb60e2fa51c8a3c909b680fcc02fa425b0cb5d6273595f27dfc9b640e1a8d455657fd6b47652af9e8ec295a usr-share-alsa-ucm2-conf.d-Universal7870-I-Universal7870-I.conf
|
|
|
|
3e74de3504f134a2726ee87740c5803bbd578352674d1d7de8b9460e57553100e9c4d322143ee83d3d584884c52eef47762bed41814ff1fca8cd9c4552f39b73 usr-share-alsa-ucm2-conf.d-Universal7870-I-VoiceCall.conf
|
2022-09-06 22:41:44 +00:00
|
|
|
5e87452f4cd70bbbcfb3e69bae73f2690ba328e7ccde55c47482e8fb1583d807de5bd3d328b1fe6a8733b4de78b2ed0c6ae8cdb60f6bf51ed4362c2174671b3e usr-share-pipewire-media-session.d-alsa-monitor.conf
|
|
|
|
"
|