From 6f2dfd2c60c5cdcd8e98990c25839f2d86ba746f Mon Sep 17 00:00:00 2001 From: Dimitris Zervas Date: Tue, 30 May 2017 18:40:44 +0300 Subject: [PATCH] Added basic hammerhead config (NOT tested) --- aports/device-lg-hammerhead/APKBUILD | 24 ++++++++++++++++++++++++ aports/device-lg-hammerhead/deviceinfo | 26 ++++++++++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 aports/device-lg-hammerhead/APKBUILD create mode 100644 aports/device-lg-hammerhead/deviceinfo diff --git a/aports/device-lg-hammerhead/APKBUILD b/aports/device-lg-hammerhead/APKBUILD new file mode 100644 index 00000000..67a024ff --- /dev/null +++ b/aports/device-lg-hammerhead/APKBUILD @@ -0,0 +1,24 @@ +pkgname=device-lg-hammerhead +pkgver=1 +pkgrel=1 +pkgdesc="Google Nexus 5" +url="https://github.com/postmarketOS" +arch="noarch" +license="FIXME" +depends="linux-lg-hammerhead" +makedepends="" +install="" +subpackages="" +source="deviceinfo" +options="!check" + +build() { + return 0 +} + +package() { + install -D -m644 "$srcdir"/deviceinfo \ + "$pkgdir"/etc/deviceinfo +} + +sha512sums="180b1cab6b0ed8c1448a1582dbb6081c81aa598bd923449293d8e41eb0dd245c92cea9b5bd30ce59009ce60801881952e9ac3a3ec6e971a894e24e22d42dee52 deviceinfo" diff --git a/aports/device-lg-hammerhead/deviceinfo b/aports/device-lg-hammerhead/deviceinfo new file mode 100644 index 00000000..bc3c24e6 --- /dev/null +++ b/aports/device-lg-hammerhead/deviceinfo @@ -0,0 +1,26 @@ +# This document format is a draft. +# You can source it in shell scripts. +# Use only double quotes. + +deviceinfo_format_version="0" +deviceinfo_name="Google Nexus 5" +deviceinfo_manufacturer="LG" +deviceinfo_date="" +deviceinfo_keyboard="false" +deviceinfo_nonfree="????" +deviceinfo_dtb="" +deviceinfo_modules="" +deviceinfo_modules_initfs="" +deviceinfo_external_disk="false" +deviceinfo_external_disk_install="false" +deviceinfo_flash_methods="fastboot" +deviceinfo_arch="armhf" + + +# You can for example extract these from an existing boot.img +deviceinfo_flash_offset_base="0" +deviceinfo_flash_offset_kernel="0x00008000" +deviceinfo_flash_offset_ramdisk="0x02900000" +deviceinfo_flash_offset_second="" +deviceinfo_flash_offset_tags="0x02700000" +deviceinfo_flash_pagesize="2048"