4d50d0f0e7
The China LTE versions of Samsung Galaxy S5 (G9006[VW]/G9008[VW]/G9009W) have some little hardware difference with the G900F variant. Add kernel variants, with klte variant for G900F (which is currently supported) and kltechn variant for G9006/G9008/G9009W (newly added). Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
68 lines
1.8 KiB
Text
68 lines
1.8 KiB
Text
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-samsung-klte
|
|
pkgdesc="Samsung Galaxy S5 (G900F/G9006/G9008/G9009W)"
|
|
pkgver=7
|
|
pkgrel=0
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="
|
|
lk2nd-msm8974
|
|
mkbootimg
|
|
postmarketos-base
|
|
swclock-offset
|
|
"
|
|
makedepends="devicepkg-dev"
|
|
subpackages="
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
$pkgname-kernel-klte:kernel_klte
|
|
$pkgname-kernel-kltechn:kernel_kltechn
|
|
"
|
|
source="
|
|
bt-module-deps.conf
|
|
deviceinfo
|
|
modules-initfs
|
|
"
|
|
|
|
build() {
|
|
devicepkg_build $startdir $pkgname
|
|
}
|
|
|
|
package() {
|
|
devicepkg_package $startdir $pkgname
|
|
}
|
|
|
|
kernel_klte() {
|
|
pkgdesc="For G900F"
|
|
depends="linux-postmarketos-qcom-msm8974"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
kernel_kltechn() {
|
|
pkgdesc="For Chinese variants G9006/G9008/G9009W (kltechn)"
|
|
depends="linux-postmarketos-qcom-msm8974"
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
}
|
|
|
|
nonfree_firmware() {
|
|
pkgdesc="GPU, Wi-Fi, Bluetooth firmware"
|
|
depends="
|
|
firmware-qcom-adreno-a330
|
|
firmware-samsung-klte-bt
|
|
firmware-samsung-klte-wifi
|
|
msm-firmware-loader
|
|
msm-modem
|
|
"
|
|
|
|
mkdir "$subpkgdir"
|
|
# 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
|
|
}
|
|
|
|
sha512sums="
|
|
6cef5f8ae1785ac16e6fe84bfc861ac50cdfb94db35d764f44a25c960e123cb82f6e56f45362a5340c62a3d5ac225f2689afd4f6964cb88305a0892ba44214f0 bt-module-deps.conf
|
|
df6561497b8a541c025ffd9794ed441f01ade3d217b6f5eceb602d9ba199af2ab4def2155f5e89d42f9c92e27eada6095da7cb2753a2ba10e66bab9109763733 deviceinfo
|
|
0e123f1ce1255395addf08218c7ca7947c7dbd0a81f578ff1c96c53c51bb2c616cd50b390fa92f6fc67ed9c73957f8dd8390213df1520e2d97b9ff256ddbb954 modules-initfs
|
|
"
|