pmaports/device/testing/device-samsung-klte/APKBUILD
Alexey Minnekhanov 185492156e
samsung-klte: switch to fastboot and require lk2nd (MR 3044)
To make panel driver upstreamable to mainline linux, we need to use
proper panel selection in secondary bootloader (still TODO), and
therefore lk2nd will be strictly required to boot mainline port.

Switch flashing method to fastboot, enable sparse rootfs generation,
and depend on lk2nd package.

Depends on: postmarketOS/pmbootstrap!2174, to provide full
integration of lk2nd in pmbootstrap.

So, full flashing procedure for samsung-klte will look like:

 $ pmbootstrap init
 $ pmbootstrap install
 $ pmbootstrap flasher --method=heimdall-bootimg flash_lk2nd
 $ pmbootstrap flasher flash_kernel --no-install
 $ pmbootstrap flasher flash_rootfs
 $ fastboot reboot
2022-03-31 01:38:29 +03:00

54 lines
1.2 KiB
Text

# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-klte
pkgdesc="Samsung Galaxy S5 (G900F)"
pkgver=5
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
linux-postmarketos-qcom-msm8974
lk2nd-msm8974
mesa-dri-gallium
mkbootimg
postmarketos-base
swclock-offset
"
makedepends="devicepkg-dev"
subpackages="
$pkgname-nonfree-firmware:nonfree_firmware
"
source="
bt-module-deps.conf
deviceinfo
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
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
fab39759211a269bca415a2359a63794c4f8fa8458f5aae02eac33426ab4f5491c4eb6b554a2c9af993dc7dc2cbd6bf09e29296047b509a211ee162ab5f2b12d deviceinfo
"