pmaports/device/testing/device-samsung-klte/APKBUILD
Icenowy Zheng 266c923666
device-samsung-klte: enable GPU (MR 4731)
As hlte has GPU enabled now, klte GPU should also be okay to be enabled.

Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
2024-03-28 19:28:33 +01:00

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
f61410dcd28dcc4aa720c73c4df2864aae67845ff53dd2165a3cb49aed5f7555372675278879d6ef8acc0529cf2df83a1ae605dd1913f175865d1552288c772b deviceinfo
0e123f1ce1255395addf08218c7ca7947c7dbd0a81f578ff1c96c53c51bb2c616cd50b390fa92f6fc67ed9c73957f8dd8390213df1520e2d97b9ff256ddbb954 modules-initfs
"