01ea0922af
.. when using mainline kernel. The boot partition on the device is only 8 MB, while built boot.img is 11 MB. Fix by decreasing initramfs size by depending on postmarketos-initramfs-minimal. Problems were likely introduced by postmarketOS/pmaports!5000.
71 lines
2.1 KiB
Text
71 lines
2.1 KiB
Text
# Maintainer: Henrik Grimler <henrik@grimler.se>
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
pkgname=device-samsung-chagallwifi
|
|
pkgdesc="Samsung Galaxy Tab S 10.5"
|
|
pkgver=2
|
|
pkgrel=1
|
|
url="https://postmarketos.org"
|
|
license="MIT"
|
|
arch="armv7"
|
|
options="!check !archcheck"
|
|
depends="
|
|
postmarketos-base
|
|
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 works, wifi is broken (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 and wifi works but not much else)"
|
|
depends="linux-postmarketos-exynos5 postmarketos-initramfs-minimal"
|
|
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="
|
|
46b88bc588ddce097f43a7600f0a2131860230591166529a2c37dcf5bea7731f528a92d4f4416a4b89ecd261961d546fe709975f638f4c9815919d5e512a0082 deviceinfo
|
|
"
|