pmaports/device/testing/device-samsung-chagallwifi/APKBUILD
Henrik Grimler 89d074c762
samsung-klimtlte: enable FIMC IS with downstream kernel (MR 4721)
As for several other exynos devices we need to disable the
video4linux's udev rule OR disable FIMC IS and patch kernel to fix
build error without FIMC IS.

Add dependency on postmarketos-base-downstream-disable-udev-v4l to
override the v4l rule with symlink to /dev/null.  We can then drop
FIMC IS patch and keep kernel config more similar to original one.
2024-01-30 12:26:21 -08:00

73 lines
2.1 KiB
Text

# Maintainer: David Davies-Jones <david@exultantmonkey.co.uk>
# Co-Maintainer: Henrik Grimler <henrik@grimler.se>
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-chagallwifi
pkgdesc="Samsung Galaxy Tab S 10.5"
pkgver=1.4
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="
postmarketos-base
postmarketos-update-kernel
mkbootimg
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
$pkgname-kernel-downstream:kernel_downstream
$pkgname-kernel-mainline:kernel_mainline
$pkgname-nonfree-firmware:nonfree_firmware
$pkgname-nonfree-firmware-downstream:nonfree_firmware_downstream
$pkgname-nonfree-firmware-mainline:nonfree_firmware_mainline
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_downstream() {
pkgdesc="Display and wifi works (see device table for details)"
depends="
linux-samsung-chagallwifi
msm-fb-refresher
postmarketos-base-downstream
postmarketos-base-downstream-disable-udev-v4l
"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_mainline() {
pkgdesc="Mainline WIP (usb networking works but not much else)"
depends="linux-postmarketos-exynos5"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
nonfree_firmware() {
pkgdesc="Non-free firmware for the Samsung Galaxy Tab S 10.5"
mkdir "$subpkgdir"
}
nonfree_firmware_downstream() {
pkgdesc="Non-free firmware for chagallwifi when using downstream kernel"
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware=$pkgver-r$pkgrel $pkgname-kernel-downstream"
depends="firmware-samsung-chagall-downstream>=3.0-r0"
mkdir "$subpkgdir"
}
nonfree_firmware_mainline() {
pkgdesc="Non-free firmware for chagallwifi when using mainline kernel"
install_if="$pkgname=$pkgver-r$pkgrel $pkgname-nonfree-firmware=$pkgver-r$pkgrel $pkgname-kernel-mainline"
depends="firmware-samsung-chagall-mainline>=3.0-r0"
mkdir "$subpkgdir"
}
sha512sums="
9adb83b68b21e66f5b85e5135893c25c57cdcaeae271dbdd79f438551e35a9cb5a50db04bf32a31b0d8bcd36c7fe860e76eb95373e424ad5670a6a28aecff622 deviceinfo
"