pmaports/device/device-motorola-titan/APKBUILD
misaka4e21 dd3d5cda92
motorola-titan: fix boot.img flashing and booting (!399)
1. Set deviceinfo_flash_offset_base to 0x00000000.
2. Enable deviceinfo_bootimg_qcdt, and make dt.img for it.
Directly use zImage instead of zImage-dtb for smaller boot.img size.
3. Reduce kernel size by disable xz, lzma and bz2 compressing.
4. Update kernel to the last version in LineageOS repository.

Please note that it is ONLY TESTED on XT1079 "thea", aka Moto G 2014 LTE.
However, "thea" and "titan" are nearly identical, sharing same kernel
and defconfig on LineageOS, etc.

[ci:skip-build]: already built successfully in CI
2019-05-31 03:25:21 +02:00

43 lines
1.7 KiB
Text

pkgname=device-motorola-titan
pkgver=1
pkgrel=30
pkgdesc="Motorola Moto G 2014"
url="https://postmarketos.org"
arch="armhf"
license="MIT"
depends="postmarketos-base linux-motorola-titan mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends=""
install="$pkgname.post-install"
subpackages="$pkgname-weston $pkgname-nonfree-firmware:nonfree_firmware"
source="deviceinfo 90-android-touch-dev.rules profile.sh weston.ini"
options="!check !archcheck"
package() {
install -Dm644 "$srcdir/deviceinfo" \
"$pkgdir/etc/deviceinfo"
install -Dm644 "$srcdir"/90-android-touch-dev.rules \
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
install -Dm644 "$srcdir"/profile.sh \
"$pkgdir"/etc/profile.d/00-$pkgname.sh
# Disable v4l (video4linux), because without the camera firmware
# blobs this makes dev hang with the kernel this device uses (#1033)
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
}
weston() {
install_if="$pkgname weston"
install -Dm644 "$srcdir"/weston.ini \
"$subpkgdir"/etc/xdg/weston/weston.ini
}
nonfree_firmware() {
pkgdesc="Wifi firmware"
depends="firmware-motorola-titan"
mkdir "$subpkgdir"
}
sha512sums="8406968cd554393ea1e350967c80810d059de2b1d33ea1302e265780c1f0110d64cf15a68c2f374981a88906d0317315e0a71995c85fd5eaf93bb47ed427529c 90-android-touch-dev.rules
d3af55f4c8dd617685ba9bbeeac7dd24d09f0abe6acb4bbf79c8281e947e40cad88829381189a0518825f1583bc3c6ac59665ea7dfdcccd2b5343adb8041c7bc deviceinfo
d04013c17caf77a87ebea167dbe48f7efa9c9d3123c5743d359f3ea8ccc6b268fa021535a4bf8291eb4a352f0c92f6eb527da0db340421f53bc1cc439a453306 profile.sh
86a0c08720225e4532f797ad69307dfff66867e4a35de1aacceefc48f19721caf93f9a17a268e58f1f5a7e947f157d6984676837c2b5b835b0caf6ee9821bb5a weston.ini"