google-bonito: new device (MR 4318)
I cannot maintain this device because I do not have it, but it is similar to the Pixel 3a, which I can maintain. Move the kernel into a subpackage in case support for a different panel (the Tianma NT37700F panel) is added. [ci:skip-build]: already built successfully in CI
This commit is contained in:
parent
e971cdcb15
commit
49a5704dd4
5 changed files with 121 additions and 0 deletions
|
@ -0,0 +1 @@
|
|||
SUBSYSTEM=="input", KERNEL=="event*", ENV{ID_INPUT}=="1", SUBSYSTEMS=="input", ATTRS{name}=="drv2624:haptics", TAG+="uaccess", ENV{FEEDBACKD_TYPE}="vibra"
|
70
device/testing/device-google-bonito/APKBUILD
Normal file
70
device/testing/device-google-bonito/APKBUILD
Normal file
|
@ -0,0 +1,70 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-google-bonito
|
||||
pkgdesc="Google Pixel 3a XL"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
alsa-ucm-conf-qcom-sdm670
|
||||
make-dynpart-mappings
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
postmarketos-update-kernel
|
||||
soc-qcom-sdm845
|
||||
soc-qcom-sdm845-qbootctl
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
90-feedbackd-drv2624.rules
|
||||
deviceinfo
|
||||
modules-initfs
|
||||
q6voiced.conf
|
||||
"
|
||||
subpackages="
|
||||
$pkgname-kernel-sdc:kernel_sdc
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
|
||||
install -Dm644 "$srcdir"/90-feedbackd-drv2624.rules \
|
||||
-t "$pkgdir"/usr/lib/udev/rules.d
|
||||
}
|
||||
|
||||
kernel_sdc() {
|
||||
pkgdesc="Kernel for devices with the Samsung panel"
|
||||
depends="linux-postmarketos-qcom-sdm670"
|
||||
|
||||
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="Proprietary firmware blobs for the Google Pixel 3a XL"
|
||||
depends="
|
||||
firmware-google-sargo
|
||||
linux-firmware-ath10k
|
||||
linux-firmware-qca
|
||||
linux-firmware-qcom
|
||||
soc-qcom-sdm845-modem
|
||||
soc-qcom-sdm845-nonfree-firmware
|
||||
"
|
||||
|
||||
# The q6voiced configuration can only be used if the ADSP is brought up
|
||||
# via non-free firmware.
|
||||
install -Dm644 "$srcdir"/q6voiced.conf "$subpkgdir"/etc/conf.d/q6voiced
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
016d398155f2344417f5e5649a361719ba6e53e593c501b5df39114cdd284302b9bf8686a39817aee0c08fec95b3ab613c181d6cc9596299aaf7fd05dbe0c3dd 90-feedbackd-drv2624.rules
|
||||
a6860945d4c75b698a9fadfd0f42355a601c064f62bcf197061ba97be46d23727cac1df355a238042ce9c9017e0ddf458f23a858aad60bebe672ba495cc6c4ad deviceinfo
|
||||
1eb5f138619f499fab31ea64f63ee9f8984f195528708ec6a01ddc533c74cfb71d1442b97905ae15db24b8faac259fa3e89db357ca9c747ce3ee598c2d681639 modules-initfs
|
||||
7f599f086dba97ac39ce98798969bc8e9c26dd3b062bb8f95852182df52814b70d49b701e27b43abeb3639b16ba053e416c14cf75e0bf4a9f2fe7c01fb0ac41c q6voiced.conf
|
||||
"
|
45
device/testing/device-google-bonito/deviceinfo
Normal file
45
device/testing/device-google-bonito/deviceinfo
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Google Pixel 3a XL"
|
||||
deviceinfo_manufacturer="Google"
|
||||
deviceinfo_codename="google-bonito"
|
||||
deviceinfo_dtb_sdc="qcom/sdm670-google-bonito-sdc"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="false"
|
||||
deviceinfo_screen_width="1080"
|
||||
deviceinfo_screen_height="2160"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_mtk_mkimage="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
deviceinfo_flash_pagesize="4096"
|
||||
deviceinfo_flash_offset_base="0x00000000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x01000000"
|
||||
deviceinfo_flash_offset_second="0x00000000"
|
||||
deviceinfo_flash_offset_tags="0x00000100"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# Reported to be necessary to boot sometimes on Android 9 bootloaders
|
||||
deviceinfo_flash_fastboot_partition_vbmeta="vbmeta"
|
||||
|
||||
# Google Inc. Nexus/Pixel Device (tether)
|
||||
deviceinfo_usb_idVendor="0x18d1"
|
||||
deviceinfo_usb_idProduct="0x4ee3"
|
||||
|
||||
# Additional features
|
||||
deviceinfo_flash_kernel_on_update="true"
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
deviceinfo_super_partitions="/dev/mmcblk0p68 /dev/mmcblk0p69"
|
3
device/testing/device-google-bonito/modules-initfs
Normal file
3
device/testing/device-google-bonito/modules-initfs
Normal file
|
@ -0,0 +1,3 @@
|
|||
i2c_qcom_geni
|
||||
rmi_core
|
||||
rmi_i2c
|
2
device/testing/device-google-bonito/q6voiced.conf
Normal file
2
device/testing/device-google-bonito/q6voiced.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
q6voice_card=0
|
||||
q6voice_device=3
|
Loading…
Reference in a new issue