From 64ba17490bc8ace14e4f2ef9bf6556baae5d7e9a Mon Sep 17 00:00:00 2001 From: David Heidelberg Date: Tue, 3 Mar 2020 11:41:25 +0100 Subject: [PATCH] device/device-asus-tilapia: create standalone device for tilapia (!1025) Previously (after switch to mainline) it was used device-asus-grouper. Signed-off-by: David Heidelberg --- device/device-asus-tilapia/APKBUILD | 39 +++++++++++++++++++ ...asus-grouper-nonfree_firmware.post-install | 3 ++ ...sus-grouper-nonfree_firmware.pre-deinstall | 3 ++ device/device-asus-tilapia/deviceinfo | 34 ++++++++++++++++ device/device-asus-tilapia/rootston.ini | 8 ++++ 5 files changed, 87 insertions(+) create mode 100644 device/device-asus-tilapia/APKBUILD create mode 100644 device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.post-install create mode 100644 device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.pre-deinstall create mode 100644 device/device-asus-tilapia/deviceinfo create mode 100644 device/device-asus-tilapia/rootston.ini diff --git a/device/device-asus-tilapia/APKBUILD b/device/device-asus-tilapia/APKBUILD new file mode 100644 index 000000000..464a2e9d8 --- /dev/null +++ b/device/device-asus-tilapia/APKBUILD @@ -0,0 +1,39 @@ +# Maintainer: David Heidelberg +pkgname="device-asus-tilapia" +pkgdesc="Google Nexus 7 2012 (tilapia)" +pkgver=0 +pkgrel=0 +url="https://postmarketos.org" +license="MIT" +arch="armv7" +options="!check !archcheck" +depends="postmarketos-base linux-asus-grouper mkbootimg mesa-git-dri-gallium" +makedepends="devicepkg-dev" +subpackages="$pkgname-phosh + $pkgname-nonfree-firmware:nonfree_firmware" +source="deviceinfo + rootston.ini" + +build() { + devicepkg_build $startdir $pkgname +} + +package() { + devicepkg_package $startdir $pkgname +} + +phosh() { + install_if="$pkgname postmarketos-ui-phosh" + install -Dm644 "$srcdir"/rootston.ini \ + "$subpkgdir"/etc/phosh/rootston.ini +} + +nonfree_firmware() { + pkgdesc="Google Nexus 7 (2012) WiFi & BT firmware" + depends="firmware-asus-grouper firmware-aosp-broadcom-wlan-mainline" + install="$pkgname-nonfree_firmware.post-install $pkgname-nonfree_firmware.pre-deinstall" + mkdir "$subpkgdir" +} + +sha512sums="058ff1aa9b3647157facf67109fb31c415680c8ed21fe1d38b2b96c2a98a2764de9cc3384163ad2e222e5f1b07f4658c7fdbcdc6ae408d4b316d5d5732aa7a2a deviceinfo +6ec993e278d2a73c72fb96f001716ded63543d99183847d22d172cd81ac410791c79370ecf391d0c24822c975d91b84dc1db296e1b28dbf66d5c227bff8d4011 rootston.ini" diff --git a/device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.post-install b/device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.post-install new file mode 100644 index 000000000..c4bfe8eaf --- /dev/null +++ b/device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.post-install @@ -0,0 +1,3 @@ +#!/bin/sh + +rc-update add bluetooth default diff --git a/device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.pre-deinstall b/device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.pre-deinstall new file mode 100644 index 000000000..e5a9c6f56 --- /dev/null +++ b/device/device-asus-tilapia/device-asus-grouper-nonfree_firmware.pre-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh + +rc-update del bluetooth default diff --git a/device/device-asus-tilapia/deviceinfo b/device/device-asus-tilapia/deviceinfo new file mode 100644 index 000000000..e2fae8345 --- /dev/null +++ b/device/device-asus-tilapia/deviceinfo @@ -0,0 +1,34 @@ +# Reference: +# Please use double quotes only. You can source this file in shell scripts. + +deviceinfo_format_version="0" +deviceinfo_name="Google Nexus 7 2012 GSM" +deviceinfo_manufacturer="Asus" +deviceinfo_codename="asus-tilapia" +deviceinfo_date="" +deviceinfo_dtb="tegra30-asus-nexus7-tilapia" +deviceinfo_append_dtb="true" +deviceinfo_modules_initfs="" +deviceinfo_arch="armv7" + +# Device related +deviceinfo_keyboard="false" +deviceinfo_external_storage="false" +deviceinfo_screen_width="800" +deviceinfo_screen_height="1280" +deviceinfo_dev_touchscreen="/dev/input/event1" +deviceinfo_dev_touchscreen_calibration="" +deviceinfo_dev_keyboard="" + +# Bootloader related +deviceinfo_flash_method="fastboot" +deviceinfo_kernel_cmdline="" +deviceinfo_generate_bootimg="true" +deviceinfo_bootimg_qcdt="false" +deviceinfo_flash_offset_base="" +deviceinfo_flash_offset_kernel="0x00008000" +deviceinfo_flash_offset_ramdisk="0x01000000" +deviceinfo_flash_offset_second="0x00f00000" +deviceinfo_flash_offset_tags="0x00000100" +deviceinfo_flash_pagesize="2048" +deviceinfo_flash_fastboot_max_size="650" diff --git a/device/device-asus-tilapia/rootston.ini b/device/device-asus-tilapia/rootston.ini new file mode 100644 index 000000000..4371cade4 --- /dev/null +++ b/device/device-asus-tilapia/rootston.ini @@ -0,0 +1,8 @@ +#[core] +#xwayland=false + +[cursor:seat0] +map-to-output:LVDS-1 + +[output:LVDS-1] +scale = 1