google-bob: new device (MR 3747)
cros-ec-sensorhub is blocked because of wrong accelerometer mount matrix
This commit is contained in:
parent
891109adce
commit
a4a0451269
4 changed files with 91 additions and 0 deletions
56
device/testing/device-google-bob/APKBUILD
Normal file
56
device/testing/device-google-bob/APKBUILD
Normal file
|
@ -0,0 +1,56 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
# Maintainer: Jenneron <jenneron@protonmail.com>
|
||||
pkgname=device-google-bob
|
||||
pkgdesc="ASUS Chromebook Flip C101"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
alsa-ucm-conf-google-gru
|
||||
depthcharge-tools
|
||||
linux-postmarketos-rockchip
|
||||
postmarketos-base
|
||||
postmarketos-update-depthcharge-kernel
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
subpackages="
|
||||
$pkgname-nonfree-firmware:nonfree_firmware
|
||||
$pkgname-phosh
|
||||
"
|
||||
source="
|
||||
deviceinfo
|
||||
phoc.ini
|
||||
modprobe.d/accel.conf
|
||||
"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
|
||||
install -Dm644 "$srcdir"/accel.conf \
|
||||
"$pkgdir"/etc/modprobe.d/accel.conf
|
||||
}
|
||||
|
||||
nonfree_firmware() {
|
||||
pkgdesc="WiFi/BT and DP firmware"
|
||||
depends="linux-firmware-mrvl linux-firmware-rockchip"
|
||||
mkdir "$subpkgdir"
|
||||
}
|
||||
|
||||
phosh() {
|
||||
install_if="$pkgname=$pkgver-r$pkgrel postmarketos-ui-phosh"
|
||||
install -Dm644 "$srcdir"/phoc.ini \
|
||||
"$subpkgdir"/etc/phosh/phoc.ini
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
5f9ea58eb7abb554c4c0fd6f76c3a90d905c68034f69f6e9ef351f1806425e6616eef8d648d7aa148cc8c4b5655d8e240a160c0fd22e8ad029db077a266a801d deviceinfo
|
||||
bd63cfc97d37e81dd9559dad60f330c10dc280afd20081495c6302960fcacf32954e3edab53294fcd5278e86c53c47a95b345a8d9e18807d88fe4313d519d259 phoc.ini
|
||||
1ba29c50747458b68ed98706c008cfaeea9eff56d2977a23e060f3a9fcf306c9d62d162e2906472d24a6c25596af95e26722c6b55ca97a031b2d5c8db2661390 accel.conf
|
||||
"
|
29
device/testing/device-google-bob/deviceinfo
Normal file
29
device/testing/device-google-bob/deviceinfo
Normal file
|
@ -0,0 +1,29 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="ASUS Chromebook Flip C101"
|
||||
deviceinfo_manufacturer="ASUS"
|
||||
deviceinfo_codename="google-bob"
|
||||
deviceinfo_year="2017"
|
||||
deviceinfo_dtb="rockchip/rk3399-gru-bob"
|
||||
deviceinfo_modules_initfs="gpu-sched elants-i2c elan-i2c-core cros-ec-keyb sbs-battery"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="convertible"
|
||||
deviceinfo_keyboard="true"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1280"
|
||||
deviceinfo_screen_height="800"
|
||||
deviceinfo_gpu_accelerated="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="none"
|
||||
deviceinfo_kernel_cmdline="console=null"
|
||||
deviceinfo_cgpt_kpart="/boot/vmlinuz.kpart"
|
||||
deviceinfo_cgpt_kpart_start="8192"
|
||||
deviceinfo_cgpt_kpart_size="65536"
|
||||
deviceinfo_depthcharge_board="bob"
|
||||
deviceinfo_generate_depthcharge_image="true"
|
1
device/testing/device-google-bob/modprobe.d/accel.conf
Normal file
1
device/testing/device-google-bob/modprobe.d/accel.conf
Normal file
|
@ -0,0 +1 @@
|
|||
blacklist cros-ec-sensorhub
|
5
device/testing/device-google-bob/phoc.ini
Normal file
5
device/testing/device-google-bob/phoc.ini
Normal file
|
@ -0,0 +1,5 @@
|
|||
[cursor:seat0]
|
||||
map-to-output = eDP-1
|
||||
|
||||
[output:eDP-1]
|
||||
scale = 1
|
Loading…
Reference in a new issue