google-oak: new device (MR 4252)
This commit is contained in:
parent
5837cdd6bf
commit
66aacbe00c
2 changed files with 78 additions and 0 deletions
42
device/testing/device-google-oak/APKBUILD
Normal file
42
device/testing/device-google-oak/APKBUILD
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
|
# Maintainer: Jenneron <jenneron@protonmail.com>
|
||||||
|
pkgname=device-google-oak
|
||||||
|
pkgdesc="Google Oak Chromebooks"
|
||||||
|
pkgver=4
|
||||||
|
pkgrel=0
|
||||||
|
url="https://postmarketos.org"
|
||||||
|
license="MIT"
|
||||||
|
arch="aarch64"
|
||||||
|
options="!check !archcheck"
|
||||||
|
depends="
|
||||||
|
alsa-utils
|
||||||
|
depthcharge-tools
|
||||||
|
linux-postmarketos-mediatek-mt8173
|
||||||
|
postmarketos-base
|
||||||
|
postmarketos-update-depthcharge-kernel
|
||||||
|
"
|
||||||
|
makedepends="devicepkg-dev"
|
||||||
|
source="deviceinfo"
|
||||||
|
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"
|
||||||
|
|
||||||
|
# provides and replaces to switch old installations to this package
|
||||||
|
provides="google-elm=$pkgver-r$pkgrel google-hana=$pkgver-r$pkgrel"
|
||||||
|
replaces="google-elm google-hana"
|
||||||
|
|
||||||
|
build() {
|
||||||
|
devicepkg_build $startdir $pkgname
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
devicepkg_package $startdir $pkgname
|
||||||
|
}
|
||||||
|
|
||||||
|
nonfree_firmware() {
|
||||||
|
pkgdesc="WiFi/BT and GPU firmware"
|
||||||
|
depends="linux-firmware-mrvl linux-firmware-mediatek firmware-powervr-gx6250"
|
||||||
|
mkdir "$subpkgdir"
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
7c405573ea9978ef2c8bdeac512b252051edda13b4596447a5b72d1e66b1294e2d08a0edd9dc940e59728aea66467153d99e551992c971dab77c93178883994f deviceinfo
|
||||||
|
"
|
36
device/testing/device-google-oak/deviceinfo
Normal file
36
device/testing/device-google-oak/deviceinfo
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# 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 Oak Chromebook"
|
||||||
|
deviceinfo_manufacturer="Google"
|
||||||
|
deviceinfo_codename="google-oak"
|
||||||
|
deviceinfo_year="2017"
|
||||||
|
deviceinfo_dtb="mediatek/mt8173-elm*"
|
||||||
|
deviceinfo_modules_initfs="i2c-hid-of hid-multitouch elants-i2c elan-i2c melfas-mip4 cros-ec-keyb"
|
||||||
|
deviceinfo_arch="aarch64"
|
||||||
|
|
||||||
|
# Device related
|
||||||
|
# chassis does not make sense here, will probably be removed (pmb#2255)
|
||||||
|
deviceinfo_chassis="convertible"
|
||||||
|
deviceinfo_keyboard="true"
|
||||||
|
deviceinfo_external_storage="true"
|
||||||
|
deviceinfo_screen_width="1366"
|
||||||
|
deviceinfo_screen_height="768"
|
||||||
|
|
||||||
|
# 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"
|
||||||
|
# We are supposed to use "oak" board here, but lazor dts does
|
||||||
|
# not include oak compatible which results in loading a wrong
|
||||||
|
# dtb. "mt8173" board may result in including dtbs that are for
|
||||||
|
# mt8173 but not related to Chrome OS devices which would increase
|
||||||
|
# image size. This doesn't happen for us because we provide only
|
||||||
|
# dtbs from deviceinfo_dtb variable and nothing more, so use "mt8173"
|
||||||
|
# board here.
|
||||||
|
deviceinfo_depthcharge_board="mt8173"
|
||||||
|
deviceinfo_generate_depthcharge_image="true"
|
Loading…
Reference in a new issue