sony-leo: clean up device package (MR 3250)

Add flash method fastboot so we can actually flash it with pmbootstrap,
remove outdated 90-android-touch-dev.rules and improve the formatting
throughout the APKBUILD.

[ci:skip-build] already built successfully in CI
This commit is contained in:
Luca Weiss 2022-06-23 18:44:48 +02:00 committed by Clayton Craft
parent c5c623221a
commit 9f36519cf1
No known key found for this signature in database
GPG key ID: 4A4CED6D7EDF950A
3 changed files with 14 additions and 16 deletions

View file

@ -1,5 +0,0 @@
# use 'weston-calibrator' to calibrate the touchscreen!
SUBSYSTEM=="input", ATTRS{name}=="clearpad", \
ENV{ID_INPUT}="1", ENV{ID_INPUT_TOUCHSCREEN}="1" \
ENV{WL_CALIBRATION}="0.982113 -0.006129 1.983124 -0.002560 1.000800 -6.012451"

View file

@ -2,20 +2,24 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-sony-leo
pkgdesc="Sony Xperia Z3"
pkgver=0.1
pkgrel=5
pkgver=0.2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="armv7"
options="!check !archcheck"
depends="postmarketos-base mkbootimg mesa-dri-gallium msm-fb-refresher"
depends="
mesa-dri-gallium
mkbootimg
msm-fb-refresher
postmarketos-base
"
makedepends="devicepkg-dev"
subpackages="$pkgname-kernel-downstream:kernel_downstream
subpackages="
$pkgname-kernel-downstream:kernel_downstream
$pkgname-nonfree-firmware:nonfree_firmware
"
source="deviceinfo
90-android-touch-dev.rules
"
source="deviceinfo"
build() {
devicepkg_build $startdir $pkgname
@ -23,8 +27,6 @@ build() {
package() {
devicepkg_package $startdir $pkgname
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
}
kernel_downstream() {
@ -38,7 +40,7 @@ nonfree_firmware() {
depends="firmware-sony-leo"
mkdir "$subpkgdir"
}
sha512sums="
b2c228e32c9b1c9fbfaa6c95c2fc5566fe042fd8143ea25fce702f940c0549c7e9b5fd6ab392809ec55ec94773ac5d396b635d9af9ab84dff0584053096c9da8 deviceinfo
0fbbc5ef5b303431a0f1a9b9ef939f03aef6f1774765089102ce95e57dc5edb692c685a6c11adcada40db608998b714029d12a05c9364bd0445ce8fda7bf5fde 90-android-touch-dev.rules
e03ad1d4cb45929b1f3401c5d4b09e2c2c8b5a770f5adeecd7f0403af25e401d3e18dd72585a0069c82ba80c029fe692538c1ffafcfbbf63027d280c6bb87cca deviceinfo
"

View file

@ -16,6 +16,7 @@ deviceinfo_screen_width="1080"
deviceinfo_screen_height="1920"
# Bootloader related
deviceinfo_flash_method="fastboot"
deviceinfo_kernel_cmdline="androidboot.hardware=qcom msm_rtb.filter=0x37 ehci-hcd.park=3 dwc3.maximum_speed=high dwc3_msm.prop_chg_detect=Y vmalloc=300M buildvariant=userdebug"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"