google-hana: new device (MR 3505)

This device package represents several devices, so use plural form in
pkgdesc of APKBUILD:

pkgdesc="Google Hana Chromebooks"

However, when deviceinfo is already installed, it is intended to represent
only current device, so use singular form here:

deviceinfo_name="Google Hana Chromebook"
This commit is contained in:
Anton Bambura 2022-10-08 08:27:26 +03:00 committed by Dylan Van Assche
parent fc256d626b
commit 602ecf8bdf
No known key found for this signature in database
GPG key ID: 8642571587897EA1
2 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,53 @@
# Reference: <https://postmarketos.org/devicepkg>
# Maintainer: Jenneron <jenneron@protonmail.com>
pkgname=device-google-hana
pkgdesc="Google Hana Chromebooks"
pkgver=1
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="
depthcharge-tools
mesa-dri-gallium
postmarketos-base
postmarketos-update-depthcharge-kernel
"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="
$pkgname-kernel-hana:kernel_hana
$pkgname-kernel-hana-rev7:kernel_hana_rev7
$pkgname-nonfree-firmware:nonfree_firmware
"
build() {
devicepkg_build $startdir $pkgname
}
package() {
devicepkg_package $startdir $pkgname
}
kernel_hana() {
pkgdesc="Google Hana Rev 1-6"
depends="linux-postmarketos-mediatek-mt8173"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
kernel_hana_rev7() {
pkgdesc="Google Hana Rev 7"
depends="linux-postmarketos-mediatek-mt8173"
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
}
nonfree_firmware() {
pkgdesc="WiFi/BT and GPU firmware"
depends="linux-firmware-mrvl linux-firmware-mediatek firmware-powervr-gx6250"
mkdir "$subpkgdir"
}
sha512sums="
a6bcef8552c7b64d966701b774c91c977a432813af217aa72fd2e2b2378dd93e2290becbf6cd38275e92082157b9757eddd7af606caa69036a5aea113ba4789d deviceinfo
"

View file

@ -0,0 +1,28 @@
# 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 Hana Chromebook"
deviceinfo_manufacturer="Google"
deviceinfo_codename="google-hana"
deviceinfo_year="2017"
deviceinfo_dtb_hana="mediatek/mt8173-elm-hana"
deviceinfo_dtb_hana_rev7="mediatek/mt8173-elm-hana-rev7"
deviceinfo_modules_initfs="hid-i2c-of hid-multitouch elants-i2c elan-i2c elan-i2c-core melfas-mip4 cros-ec-keyb"
deviceinfo_arch="aarch64"
# Device related
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"
deviceinfo_generate_depthcharge_image="true"