samsung-t0lte: add panel selection (MR 3549)

Let the user select between two kernel variants using the different
device trees for the different panel variants (ea8061 and s6evr02)

[ci:skip-build]: Already built successfully in CI
This commit is contained in:
Affe Null 2023-02-25 15:16:12 +01:00 committed by Newbyte
parent 8b470375a9
commit c293b03642
No known key found for this signature in database
GPG key ID: 990600ED1DB95E02
2 changed files with 22 additions and 6 deletions

View file

@ -1,21 +1,24 @@
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-t0lte pkgname=device-samsung-t0lte
pkgdesc="Samsung Galaxy Note II LTE" pkgdesc="Samsung Galaxy Note II LTE"
pkgver=0.4 pkgver=0.5
pkgrel=1 pkgrel=0
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="armv7" arch="armv7"
options="!check !archcheck" options="!check !archcheck"
depends=" depends="
alsa-ucm-conf alsa-ucm-conf
linux-postmarketos-exynos4
mkbootimg mkbootimg
postmarketos-base postmarketos-base
soc-samsung-exynos4412-haptics soc-samsung-exynos4412-haptics
" "
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware" subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-kernel-s6evr02:kernel_s6evr02
$pkgname-kernel-ea8061:kernel_ea8061
"
source=" source="
deviceinfo deviceinfo
ucm/Midas.conf ucm/Midas.conf
@ -46,8 +49,20 @@ nonfree_firmware() {
mkdir "$subpkgdir" mkdir "$subpkgdir"
} }
kernel_s6evr02() {
pkgdesc="Samsung S6EVR02 panel. To know which panel your device uses, see the wiki page of the 3G version, https://wiki.postmarketos.org/wiki/Samsung_Galaxy_Note_II_(samsung-t03g)"
depends="linux-postmarketos-exynos4"
devicepkg_subpackage_kernel "$startdir" "$pkgname" "$subpkgname"
}
kernel_ea8061() {
pkgdesc="Magnachip EA8061 panel. To know which panel your device uses, see the wiki page of the 3G version, https://wiki.postmarketos.org/wiki/Samsung_Galaxy_Note_II_(samsung-t03g)"
depends="linux-postmarketos-exynos4"
devicepkg_subpackage_kernel "$startdir" "$pkgname" "$subpkgname"
}
sha512sums=" sha512sums="
a2a1742e4868fb153b538c2340f3b5e25e31dae761bf07c8713a1b845b3c49a730d82c78636a998789fcbcc947ad819a9919ac9d3dc88b18c7ffb80419d18551 deviceinfo ae63b78724e6afbfb0a3455d317f68b7a4db796f6657ea66befd155299b145e66e716ed71e34f17968f73137a2e3e286c165442029e603a74055208f74c0e182 deviceinfo
caa81e8ab6753c0ca24c22fb6742288765dfbf2469b8b8c35c5789edfcee546ef1c3b14ad6e540c417f434258399300f17d312b58157635eafab134587ef94cc Midas.conf caa81e8ab6753c0ca24c22fb6742288765dfbf2469b8b8c35c5789edfcee546ef1c3b14ad6e540c417f434258399300f17d312b58157635eafab134587ef94cc Midas.conf
a56ce19331a8997b1cc493b8ab6b16ecfc423254a380e13a9461ec94ec5bc124cb3283256ef8cc014db60937a5e7404c6f7728bc2cc2494a70c612ccb3fd4105 HiFi.conf a56ce19331a8997b1cc493b8ab6b16ecfc423254a380e13a9461ec94ec5bc124cb3283256ef8cc014db60937a5e7404c6f7728bc2cc2494a70c612ccb3fd4105 HiFi.conf
56a2bdffc273cb0a581192e65378ff50e71c7bc8a696af7d5e7c165a53c005aae104c4514c68afb668454c5a94ce78bd509f8a40e3401d67e16636b1ed81d051 modules-load.conf 56a2bdffc273cb0a581192e65378ff50e71c7bc8a696af7d5e7c165a53c005aae104c4514c68afb668454c5a94ce78bd509f8a40e3401d67e16636b1ed81d051 modules-load.conf

View file

@ -7,7 +7,8 @@ deviceinfo_manufacturer="Samsung"
deviceinfo_codename="samsung-t0lte" deviceinfo_codename="samsung-t0lte"
deviceinfo_year="2012" deviceinfo_year="2012"
deviceinfo_append_dtb="true" deviceinfo_append_dtb="true"
deviceinfo_dtb="exynos4412-n710x" deviceinfo_dtb_s6evr02="exynos4412-n710x-s6evr02"
deviceinfo_dtb_ea8061="exynos4412-n710x-ea8061"
deviceinfo_arch="armv7" deviceinfo_arch="armv7"
# Device related # Device related