Let new and most old devices depend on mesa dri swrast (#1086)

* Devices: depend on mesa-dri-swrast (where it makes sense)
* Device wizard: add mesa-dri-swrast by default
* Closes #1013.
This commit is contained in:
Oliver Smith 2018-01-06 14:08:10 +00:00 committed by GitHub
parent ea3fdfbab7
commit 9fb0147d37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
44 changed files with 90 additions and 97 deletions

View File

@ -1,11 +1,11 @@
pkgname=device-amazon-thor pkgname=device-amazon-thor
pkgver=1 pkgver=1
pkgrel=3 pkgrel=4
pkgdesc="Amazon KFHDX 7inch 2013" pkgdesc="Amazon KFHDX 7inch 2013"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-amazon-thor mkbootimg msm-fb-refresher" depends="linux-amazon-thor mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="" makedepends=""
install="$pkgname.post-install" install="$pkgname.post-install"
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-asus-grouper pkgname=device-asus-grouper
pkgver=1 pkgver=1
pkgrel=9 pkgrel=10
pkgdesc="Asus Nexus 7 2012 Wifi" pkgdesc="Asus Nexus 7 2012 Wifi"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-asus-grouper mkbootimg" depends="linux-asus-grouper mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-fairphone-fp2 pkgname=device-fairphone-fp2
pkgver=1 pkgver=1
pkgrel=5 pkgrel=6
pkgdesc="Fairphone 2" pkgdesc="Fairphone 2"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-fairphone-fp2 linux-firmware mkbootimg" depends="linux-fairphone-fp2 linux-firmware mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,12 +1,12 @@
pkgname="device-google-glass" pkgname="device-google-glass"
pkgdesc="Google Glass" pkgdesc="Google Glass"
pkgver=0.1 pkgver=0.1
pkgrel=1 pkgrel=2
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-google-glass mkbootimg" depends="linux-google-glass mkbootimg mesa-dri-swrast"
source="deviceinfo" source="deviceinfo"
package() { package() {

View File

@ -1,11 +1,11 @@
pkgname=device-htc-ace pkgname=device-htc-ace
pkgver=1 pkgver=1
pkgrel=6 pkgrel=7
pkgdesc="HTC Desire HD" pkgdesc="HTC Desire HD"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-htc-ace mkbootimg linux-firmware" depends="linux-htc-ace mkbootimg linux-firmware mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-htc-bravo pkgname=device-htc-bravo
pkgver=1 pkgver=1
pkgrel=9 pkgrel=10
pkgdesc="HTC Desire" pkgdesc="HTC Desire"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-htc-bravo mkbootimg" depends="linux-htc-bravo mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-huawei-angler pkgname=device-huawei-angler
pkgver=1 pkgver=1
pkgrel=7 pkgrel=8
pkgdesc="Huawei Nexus 6P" pkgdesc="Huawei Nexus 6P"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-huawei-angler mkbootimg firmware-aosp-broadcom-wlan msm-fb-refresher" depends="linux-huawei-angler mkbootimg firmware-aosp-broadcom-wlan msm-fb-refresher mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-huawei-y530 pkgname=device-huawei-y530
pkgver=1 pkgver=1
pkgrel=6 pkgrel=7
pkgdesc="Huawei Ascend Y530" pkgdesc="Huawei Ascend Y530"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-huawei-y530 mkbootimg firmware-huawei-y530" depends="linux-huawei-y530 mkbootimg firmware-huawei-y530 mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -2,12 +2,12 @@
pkgname="device-leeco-s2" pkgname="device-leeco-s2"
pkgdesc="LeEco Le 2" pkgdesc="LeEco Le 2"
pkgver=0.1 pkgver=0.1
pkgrel=0 pkgrel=1
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-leeco-s2 mkbootimg msm-fb-refresher" depends="linux-leeco-s2 mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
source="deviceinfo" source="deviceinfo"

View File

@ -1,12 +1,12 @@
pkgname="device-lenovo-karate" pkgname="device-lenovo-karate"
pkgdesc="Lenovo K6 Power" pkgdesc="Lenovo K6 Power"
pkgver=0.1 pkgver=0.1
pkgrel=1 pkgrel=2
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-lenovo-karate firmware-lenovo-karate mkbootimg mdss-fb-init-hack" depends="linux-lenovo-karate firmware-lenovo-karate mkbootimg mdss-fb-init-hack mesa-dri-swrast"
source="deviceinfo 90-android-touch-dev.rules" source="deviceinfo 90-android-touch-dev.rules"
install="$pkgname.post-install" install="$pkgname.post-install"

View File

@ -1,11 +1,11 @@
pkgname=device-lg-d285 pkgname=device-lg-d285
pkgver=1 pkgver=1
pkgrel=2 pkgrel=3
pkgdesc="LG L65" pkgdesc="LG L65"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-lg-d285 mkbootimg msm-fb-refresher" depends="linux-lg-d285 mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-lg-d855 pkgname=device-lg-d855
pkgver=1 pkgver=1
pkgrel=11 pkgrel=12
pkgdesc="LG G3 International" pkgdesc="LG G3 International"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-lg-d855 mkbootimg" depends="linux-lg-d855 mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-lg-dory pkgname=device-lg-dory
pkgver=1 pkgver=1
pkgrel=3 pkgrel=4
pkgdesc="LG G Watch" pkgdesc="LG G Watch"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-lg-dory mkbootimg msm-fb-refresher" depends="linux-lg-dory mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -2,12 +2,12 @@
pkgname="device-lg-h815" pkgname="device-lg-h815"
pkgdesc="LG G4 (h815)" pkgdesc="LG G4 (h815)"
pkgver=0.1 pkgver=0.1
pkgrel=0 pkgrel=1
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-lg-h815 mkbootimg msm-fb-refresher" depends="linux-lg-h815 mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
source="deviceinfo" source="deviceinfo"

View File

@ -1,11 +1,11 @@
pkgname=device-lg-hammerhead pkgname=device-lg-hammerhead
pkgver=1 pkgver=1
pkgrel=16 pkgrel=17
pkgdesc="Google Nexus 5" pkgdesc="Google Nexus 5"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-lg-hammerhead linux-firmware mkbootimg msm-fb-refresher" depends="linux-lg-hammerhead linux-firmware mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="$pkgname-weston $pkgname-x11" subpackages="$pkgname-weston $pkgname-x11"

View File

@ -1,11 +1,11 @@
pkgname=device-lg-lenok pkgname=device-lg-lenok
pkgver=1 pkgver=1
pkgrel=6 pkgrel=7
pkgdesc="LG G Watch R" pkgdesc="LG G Watch R"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-lg-lenok mkbootimg" depends="linux-lg-lenok mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-lg-mako pkgname=device-lg-mako
pkgver=2 pkgver=2
pkgrel=15 pkgrel=16
pkgdesc="Google Nexus 4" pkgdesc="Google Nexus 4"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-lg-mako mkbootimg" depends="linux-lg-mako mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="$pkgname-weston" subpackages="$pkgname-weston"

View File

@ -1,11 +1,11 @@
pkgname=device-motorola-osprey pkgname=device-motorola-osprey
pkgver=1 pkgver=1
pkgrel=3 pkgrel=4
pkgdesc="Motorola Moto G 3rd gen. (2015)" pkgdesc="Motorola Moto G 3rd gen. (2015)"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-motorola-osprey mkbootimg" depends="linux-motorola-osprey mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-motorola-titan pkgname=device-motorola-titan
pkgver=1 pkgver=1
pkgrel=19 pkgrel=20
pkgdesc="Motorola Moto G 2014" pkgdesc="Motorola Moto G 2014"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-motorola-titan firmware-motorola-titan mkbootimg msm-fb-refresher" depends="linux-motorola-titan firmware-motorola-titan mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="" makedepends=""
install="$pkgname.post-install" install="$pkgname.post-install"
subpackages="$pkgname-weston" subpackages="$pkgname-weston"

View File

@ -1,11 +1,11 @@
pkgname=device-nokia-rx51 pkgname=device-nokia-rx51
pkgver=1 pkgver=1
pkgrel=27 pkgrel=28
pkgdesc="Nokia N900" pkgdesc="Nokia N900"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-postmarketos-stable uboot-tools linux-firmware kbd kbd-bkeymaps ofono" depends="linux-postmarketos-stable uboot-tools linux-firmware kbd kbd-bkeymaps ofono mesa-dri-swrast"
makedepends="uboot-tools kbd kbd-bkeymaps" makedepends="uboot-tools kbd kbd-bkeymaps"
install="$pkgname.post-install" install="$pkgname.post-install"
subpackages="$pkgname-weston:weston" subpackages="$pkgname-weston:weston"

View File

@ -1,11 +1,11 @@
pkgname=device-oneplus-bacon pkgname=device-oneplus-bacon
pkgver=1 pkgver=1
pkgrel=7 pkgrel=8
pkgdesc="OnePlus One" pkgdesc="OnePlus One"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-oneplus-bacon linux-firmware mkbootimg" depends="linux-oneplus-bacon linux-firmware mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="$pkgname-weston" subpackages="$pkgname-weston"

View File

@ -1,11 +1,11 @@
pkgname=device-oneplus-onyx pkgname=device-oneplus-onyx
pkgver=1 pkgver=1
pkgrel=1 pkgrel=2
pkgdesc="OnePlus X" pkgdesc="OnePlus X"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-oneplus-onyx linux-firmware mkbootimg msm-fb-refresher" depends="linux-oneplus-onyx linux-firmware mkbootimg msm-fb-refresher mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
source="deviceinfo 90-android-touch-dev.rules fb.modes" source="deviceinfo 90-android-touch-dev.rules fb.modes"

View File

@ -1,11 +1,11 @@
pkgname=device-qemu-aarch64 pkgname=device-qemu-aarch64
pkgver=1 pkgver=1
pkgrel=7 pkgrel=8
pkgdesc="Simulated device in qemu with vexpress soc" pkgdesc="Simulated device in qemu with vexpress soc"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-postmarketos-stable" depends="linux-postmarketos-stable mesa-dri-swrast"
makedepends="" makedepends=""
subpackages="" subpackages=""
source="deviceinfo interfaces" source="deviceinfo interfaces"

View File

@ -5,6 +5,7 @@ pkgdesc="Simulated device in qemu with an x86 platform"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
# NOTE: 'pmbootstrap init' allows you to choose the mesa-dri-* package
depends="linux-postmarketos-lts" depends="linux-postmarketos-lts"
makedepends="" makedepends=""
subpackages="$pkgname-x11 $pkgname-weston" subpackages="$pkgname-x11 $pkgname-weston"

View File

@ -1,11 +1,11 @@
pkgname=device-qemu-vexpress pkgname=device-qemu-vexpress
pkgver=1 pkgver=1
pkgrel=14 pkgrel=15
pkgdesc="Simulated device in qemu with vexpress soc" pkgdesc="Simulated device in qemu with vexpress soc"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-postmarketos-stable" depends="linux-postmarketos-stable mesa-dri-swrast"
makedepends="" makedepends=""
subpackages="" subpackages=""
source="deviceinfo interfaces" source="deviceinfo interfaces"

View File

@ -2,12 +2,12 @@
pkgname="device-samsung-espresso10" pkgname="device-samsung-espresso10"
pkgdesc="Samsung Galaxy Tab 2 (10.1 inch)" pkgdesc="Samsung Galaxy Tab 2 (10.1 inch)"
pkgver=0.1 pkgver=0.1
pkgrel=1 pkgrel=2
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-samsung-espresso10 firmware-samsung-espresso10 mkbootimg" depends="linux-samsung-espresso10 firmware-samsung-espresso10 mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
source="deviceinfo" source="deviceinfo"

View File

@ -1,12 +1,12 @@
pkgname="device-samsung-i747m" pkgname="device-samsung-i747m"
pkgdesc="Samsing Galaxy SIII (USA/Canada)" pkgdesc="Samsing Galaxy SIII (USA/Canada)"
pkgver=0.1 pkgver=0.1
pkgrel=1 pkgrel=2
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-samsung-i747m firmware-samsung-i747m mkbootimg" depends="linux-samsung-i747m firmware-samsung-i747m mkbootimg mesa-dri-swrast"
source="deviceinfo 90-android-touch-dev.rules fb.modes" source="deviceinfo 90-android-touch-dev.rules fb.modes"
package() { package() {

View File

@ -1,11 +1,11 @@
pkgname=device-samsung-i9003 pkgname=device-samsung-i9003
pkgver=1 pkgver=1
pkgrel=15 pkgrel=16
pkgdesc="Samsung Galaxy SI SLC" pkgdesc="Samsung Galaxy SI SLC"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-samsung-i9003 libsamsung-ipc mkbootimg" depends="linux-samsung-i9003 libsamsung-ipc mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,12 +1,12 @@
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-i9070 pkgname=device-samsung-i9070
pkgver=1 pkgver=1
pkgrel=17 pkgrel=18
pkgdesc="Samsung Galaxy S Advance" pkgdesc="Samsung Galaxy S Advance"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-samsung-i9070 firmware-samsung-i9070" depends="linux-samsung-i9070 firmware-samsung-i9070 mesa-dri-swrast"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
install="" install=""
subpackages="$pkgname-mesa" subpackages="$pkgname-mesa"
@ -30,12 +30,6 @@ package() {
"$pkgdir"/etc/modules-load.d/00-${pkgname}.conf "$pkgdir"/etc/modules-load.d/00-${pkgname}.conf
} }
mesa() {
install_if="$pkgname mesa"
depends="mesa-dri-swrast"
mkdir "$subpkgdir"
}
sha512sums="fe7b2af2abd441775705e5d228eab7904194bb3ef6af08a69593849e3380e6c9fc4905b3eac52e851aff0f2364a4425a79da8e6e48416b7a630754a525df3b9e deviceinfo sha512sums="fe7b2af2abd441775705e5d228eab7904194bb3ef6af08a69593849e3380e6c9fc4905b3eac52e851aff0f2364a4425a79da8e6e48416b7a630754a525df3b9e deviceinfo
098187f6ab56d2542f98f1b5fbcf493431f665a4300db05e859357366e39b02a3d508bfd94c1d1bd7c669261e7ef0d4e1aef1fdbb15541fe34f3f48a6caa247f initfs-hook.sh 098187f6ab56d2542f98f1b5fbcf493431f665a4300db05e859357366e39b02a3d508bfd94c1d1bd7c669261e7ef0d4e1aef1fdbb15541fe34f3f48a6caa247f initfs-hook.sh
61e8becbf6fa7c1c6c42e481083f5981ae7af33a48cbc53e817d8ac2c6a8e4f67a54b32ae3b8f5f25f7b412165a849dc93a629110dc47b0d16927bf2a12eb7e1 modules-load.conf" 61e8becbf6fa7c1c6c42e481083f5981ae7af33a48cbc53e817d8ac2c6a8e4f67a54b32ae3b8f5f25f7b412165a849dc93a629110dc47b0d16927bf2a12eb7e1 modules-load.conf"

View File

@ -1,11 +1,11 @@
pkgname=device-samsung-i9100 pkgname=device-samsung-i9100
pkgver=1 pkgver=1
pkgrel=16 pkgrel=17
pkgdesc="Samsung Galaxy SII" pkgdesc="Samsung Galaxy SII"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-samsung-i9100 firmware-samsung-i9100 libsamsung-ipc" depends="linux-samsung-i9100 firmware-samsung-i9100 libsamsung-ipc mesa-dri-swrast"
makedepends="" makedepends=""
install="$pkgname.post-install" install="$pkgname.post-install"
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-samsung-i9305 pkgname=device-samsung-i9305
pkgver=1 pkgver=1
pkgrel=15 pkgrel=16
pkgdesc="Samsung Galaxy SIII LTE" pkgdesc="Samsung Galaxy SIII LTE"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-samsung-i9305 firmware-samsung-i9305 mkbootimg" depends="linux-samsung-i9305 firmware-samsung-i9305 mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="$pkgname.post-install" install="$pkgname.post-install"
subpackages="" subpackages=""

View File

@ -1,12 +1,12 @@
pkgname="device-samsung-i9505" pkgname="device-samsung-i9505"
pkgdesc="Samsung Galaxy S4 International" pkgdesc="Samsung Galaxy S4 International"
pkgver=0.4 pkgver=0.4
pkgrel=1 pkgrel=2
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-samsung-i9505 firmware-samsung-i9505 mkbootimg" depends="linux-samsung-i9505 firmware-samsung-i9505 mkbootimg mesa-dri-swrast"
source="deviceinfo 90-android-sec_touchscreen.rules" source="deviceinfo 90-android-sec_touchscreen.rules"
package() { package() {

View File

@ -1,12 +1,12 @@
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-maguro pkgname=device-samsung-maguro
pkgver=2 pkgver=2
pkgrel=15 pkgrel=16
pkgdesc="Google Galaxy Nexus (GSM)" pkgdesc="Google Galaxy Nexus (GSM)"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-samsung-maguro mkbootimg firmware-samsung-maguro" depends="linux-samsung-maguro mkbootimg firmware-samsung-maguro mesa-dri-swrast"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
install="" install=""
subpackages="$pkgname-mesa" subpackages="$pkgname-mesa"
@ -21,10 +21,4 @@ package() {
devicepkg_package $startdir $pkgname devicepkg_package $startdir $pkgname
} }
mesa() {
install_if="$pkgname mesa"
depends="mesa-dri-swrast"
mkdir "$subpkgdir"
}
sha512sums="e44e78b362c7414eab0031b559732a18f3adf09cc02b3b9a6c05e1553cfebf91abf9f5364bdbb154d3883bdb71e1b3382b398fa38e1a15385ed2749568329c84 deviceinfo" sha512sums="e44e78b362c7414eab0031b559732a18f3adf09cc02b3b9a6c05e1553cfebf91abf9f5364bdbb154d3883bdb71e1b3382b398fa38e1a15385ed2749568329c84 deviceinfo"

View File

@ -1,11 +1,11 @@
pkgname=device-samsung-n7100 pkgname=device-samsung-n7100
pkgver=1 pkgver=1
pkgrel=12 pkgrel=13
pkgdesc="Samsung Galaxy Note II (GSM)" pkgdesc="Samsung Galaxy Note II (GSM)"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-samsung-n7100 mkbootimg" depends="linux-samsung-n7100 mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -2,12 +2,12 @@
pkgname="device-samsung-s6500d" pkgname="device-samsung-s6500d"
pkgdesc="Samsung Galaxy Mini 2" pkgdesc="Samsung Galaxy Mini 2"
pkgver=0.1 pkgver=0.1
pkgrel=0 pkgrel=1
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-samsung-s6500d mkbootimg" depends="linux-samsung-s6500d mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
source="deviceinfo" source="deviceinfo"

View File

@ -1,11 +1,11 @@
pkgname=device-sony-amami pkgname=device-sony-amami
pkgver=1 pkgver=1
pkgrel=15 pkgrel=16
pkgdesc="Sony Xperia Z1 Compact" pkgdesc="Sony Xperia Z1 Compact"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-sony-amami mkbootimg mdss-fb-init-hack firmware-sony-amami" depends="linux-sony-amami mkbootimg mdss-fb-init-hack firmware-sony-amami mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-sony-aries pkgname=device-sony-aries
pkgver=1 pkgver=1
pkgrel=13 pkgrel=14
pkgdesc="Sony Xperia Z3 Compact" pkgdesc="Sony Xperia Z3 Compact"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-sony-aries mkbootimg" depends="linux-sony-aries mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,12 +1,12 @@
pkgname="device-sony-honami" pkgname="device-sony-honami"
pkgdesc="Sony Xperia Z1" pkgdesc="Sony Xperia Z1"
pkgver=1.0 pkgver=1.0
pkgrel=1 pkgrel=2
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-sony-honami firmware-sony-amami msm-fb-refresher mkbootimg" depends="linux-sony-honami firmware-sony-amami msm-fb-refresher mkbootimg mesa-dri-swrast"
source="deviceinfo 90-android-touch-dev.rules" source="deviceinfo 90-android-touch-dev.rules"
package() { package() {

View File

@ -1,11 +1,11 @@
pkgname=device-sony-yuga pkgname=device-sony-yuga
pkgver=1 pkgver=1
pkgrel=7 pkgrel=8
pkgdesc="Sony Xperia Z" pkgdesc="Sony Xperia Z"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-sony-yuga mkbootimg" depends="linux-sony-yuga mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="" install=""
subpackages="" subpackages=""

View File

@ -1,11 +1,11 @@
pkgname=device-t2m-flame pkgname=device-t2m-flame
pkgver=1 pkgver=1
pkgrel=7 pkgrel=8
pkgdesc="Mozilla Flame" pkgdesc="Mozilla Flame"
url="https://github.com/postmarketOS" url="https://github.com/postmarketOS"
arch="noarch" arch="noarch"
license="MIT" license="MIT"
depends="linux-t2m-flame firmware-t2m-flame mkbootimg" depends="linux-t2m-flame firmware-t2m-flame mkbootimg mesa-dri-swrast"
makedepends="" makedepends=""
install="$pkgname.post-install" install="$pkgname.post-install"
subpackages="$pkgname-weston" subpackages="$pkgname-weston"

View File

@ -1,12 +1,12 @@
pkgname="device-wiko-lenny3" pkgname="device-wiko-lenny3"
pkgdesc="Lenny 3" pkgdesc="Lenny 3"
pkgver=0.1 pkgver=0.1
pkgrel=1 pkgrel=2
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-wiko-lenny3 mkbootimg" depends="linux-wiko-lenny3 mkbootimg mesa-dri-swrast"
source="deviceinfo" source="deviceinfo"
package() { package() {

View File

@ -2,12 +2,12 @@
pkgname="device-xiaomi-ido" pkgname="device-xiaomi-ido"
pkgdesc="Xiaomi Xiaomi RedMi 3" pkgdesc="Xiaomi Xiaomi RedMi 3"
pkgver=0.1 pkgver=0.1
pkgrel=0 pkgrel=1
url="https://postmarketos.org" url="https://postmarketos.org"
license="MIT" license="MIT"
arch="noarch" arch="noarch"
options="!check" options="!check"
depends="linux-xiaomi-ido mkbootimg" depends="linux-xiaomi-ido mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev" makedepends="devicepkg-dev"
source="deviceinfo source="deviceinfo
fb.modes fb.modes

View File

@ -180,11 +180,15 @@ def generate_deviceinfo(args, pkgname, name, manufacturer, arch, has_keyboard,
def generate_apkbuild(args, pkgname, name, arch, flash_method): def generate_apkbuild(args, pkgname, name, arch, flash_method):
# Dependencies
depends = "linux-" + "-".join(pkgname.split("-")[1:]) depends = "linux-" + "-".join(pkgname.split("-")[1:])
if flash_method in ["fastboot", "heimdall-bootimg"]: if flash_method in ["fastboot", "heimdall-bootimg"]:
depends += " mkbootimg" depends += " mkbootimg"
if flash_method == "0xffff": if flash_method == "0xffff":
depends += " uboot-tools" depends += " uboot-tools"
depends += " mesa-dri-swrast"
# Whole APKBUILD
content = """\ content = """\
# Reference: <https://postmarketos.org/devicepkg> # Reference: <https://postmarketos.org/devicepkg>
pkgname=\"""" + pkgname + """\" pkgname=\"""" + pkgname + """\"

View File

@ -113,7 +113,7 @@ def test_aportgen_device_wizard(args, monkeypatch):
deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers) deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers)
assert apkbuild["pkgname"] == "device-testsuite-testdevice" assert apkbuild["pkgname"] == "device-testsuite-testdevice"
assert apkbuild["pkgdesc"] == "Testsuite Testdevice" assert apkbuild["pkgdesc"] == "Testsuite Testdevice"
assert apkbuild["depends"] == ["linux-testsuite-testdevice"] assert apkbuild["depends"] == ["linux-testsuite-testdevice", "mesa-dri-swrast"]
assert apkbuild_linux["pkgname"] == "linux-testsuite-testdevice" assert apkbuild_linux["pkgname"] == "linux-testsuite-testdevice"
assert apkbuild_linux["pkgdesc"] == "Testsuite Testdevice kernel fork" assert apkbuild_linux["pkgdesc"] == "Testsuite Testdevice kernel fork"
@ -146,12 +146,12 @@ def test_aportgen_device_wizard(args, monkeypatch):
answers["Flash method"] = "fastboot" answers["Flash method"] = "fastboot"
answers["Path"] = "" answers["Path"] = ""
deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers) deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers)
assert apkbuild["depends"] == ["linux-testsuite-testdevice", "mkbootimg"] assert apkbuild["depends"] == ["linux-testsuite-testdevice", "mkbootimg", "mesa-dri-swrast"]
assert deviceinfo["flash_method"] == answers["Flash method"] assert deviceinfo["flash_method"] == answers["Flash method"]
assert deviceinfo["generate_bootimg"] == "true" assert deviceinfo["generate_bootimg"] == "true"
# 0xffff (legacy uboot initfs) # 0xffff (legacy uboot initfs)
answers["Flash method"] = "0xffff" answers["Flash method"] = "0xffff"
deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers) deviceinfo, apkbuild, apkbuild_linux = generate(args, monkeypatch, answers)
assert apkbuild["depends"] == ["linux-testsuite-testdevice", "uboot-tools"] assert apkbuild["depends"] == ["linux-testsuite-testdevice", "uboot-tools", "mesa-dri-swrast"]
assert deviceinfo["generate_legacy_uboot_initfs"] == "true" assert deviceinfo["generate_legacy_uboot_initfs"] == "true"