lg-dory: modernize and add AsteroidOS machine config (MR 2204)
AsteroidOS uses this config file to determine how the UI should look (e.g. a round or a square screen), and if some things like Wi-Fi are supported. Upstream auto generates this config file, but it seems so simple and small that I think it's better for us to just ship the file next to the APKBUILD
This commit is contained in:
parent
9488531c3e
commit
fb3365a982
2 changed files with 32 additions and 7 deletions
|
@ -1,14 +1,25 @@
|
||||||
# Reference: <https://postmarketos.org/devicepkg>
|
# Reference: <https://postmarketos.org/devicepkg>
|
||||||
pkgname=device-lg-dory
|
pkgname=device-lg-dory
|
||||||
pkgver=1
|
pkgver=1
|
||||||
pkgrel=15
|
pkgrel=16
|
||||||
pkgdesc="LG G Watch"
|
pkgdesc="LG G Watch"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
arch="armhf"
|
arch="armhf"
|
||||||
license="MIT"
|
license="MIT"
|
||||||
depends="postmarketos-base linux-lg-dory mkbootimg msm-fb-refresher mesa-dri-swrast"
|
depends="
|
||||||
|
linux-lg-dory
|
||||||
|
mesa-dri-swrast
|
||||||
|
mkbootimg
|
||||||
|
msm-fb-refresher
|
||||||
|
postmarketos-base
|
||||||
|
"
|
||||||
makedepends="devicepkg-dev"
|
makedepends="devicepkg-dev"
|
||||||
source="deviceinfo 90-touchscreen-dev.rules"
|
subpackages="$pkgname-asteroid"
|
||||||
|
source="
|
||||||
|
90-touchscreen-dev.rules
|
||||||
|
deviceinfo
|
||||||
|
machine.conf
|
||||||
|
"
|
||||||
options="!check !archcheck"
|
options="!check !archcheck"
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -17,9 +28,18 @@ build() {
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
devicepkg_package $startdir $pkgname
|
devicepkg_package $startdir $pkgname
|
||||||
install -D -m644 "$srcdir"/90-touchscreen-dev.rules \
|
install -Dm644 -t "$pkgdir"/etc/udev/rules.d \
|
||||||
"$pkgdir"/etc/udev/rules.d/90-touchscreen-dev.rules
|
"$srcdir"/90-touchscreen-dev.rules
|
||||||
}
|
}
|
||||||
|
|
||||||
sha512sums="1650d4b2c07ac300cf0271d5cf29f6c1052f2b3e34cd00e56bcb8f5fc6092e45be42caa01c39f1866e1b23b29c209d7d48bbe49d13e1e2603104b0d3b8ac3cd2 deviceinfo
|
asteroid() {
|
||||||
f52a0bfab7e0067c0837662b5297e6c6d3433a1fc1cbdfaf3000227452d88980b99ac196541fda3bd57fd789580cb4ef96299b24e1bdb277f21f42418fcf17fa 90-touchscreen-dev.rules"
|
install_if="$pkgname=$pkgver-r$pkgrel asteroid-launcher"
|
||||||
|
install -Dm644 -t "$subpkgdir"/etc/asteroid \
|
||||||
|
"$srcdir"/machine.conf
|
||||||
|
}
|
||||||
|
|
||||||
|
sha512sums="
|
||||||
|
f52a0bfab7e0067c0837662b5297e6c6d3433a1fc1cbdfaf3000227452d88980b99ac196541fda3bd57fd789580cb4ef96299b24e1bdb277f21f42418fcf17fa 90-touchscreen-dev.rules
|
||||||
|
1650d4b2c07ac300cf0271d5cf29f6c1052f2b3e34cd00e56bcb8f5fc6092e45be42caa01c39f1866e1b23b29c209d7d48bbe49d13e1e2603104b0d3b8ac3cd2 deviceinfo
|
||||||
|
7ee094469dbced67c42ef3f3cb659af5004dc5140c9d9475ac602480936e2ad43a6e56f5957c5745252f045942daa4667c43246f5be8018ae189dc4586d21e1c machine.conf
|
||||||
|
"
|
||||||
|
|
5
device/testing/device-lg-dory/machine.conf
Normal file
5
device/testing/device-lg-dory/machine.conf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[Display]
|
||||||
|
ROUND = false
|
||||||
|
|
||||||
|
[Capabilities]
|
||||||
|
HAS_WLAN = false
|
Loading…
Add table
Reference in a new issue