device packages: depend on postmarketos-base (#1258)

* device-*: add postmarketos-base to depends
* aportgen: add postmarketos-base to depends
* Add test case
* postmarketos-base: Don't depend on devicepkg
* msm-fb-refresher: Enable service in post-install
This commit is contained in:
Oliver Smith 2018-02-25 18:40:54 +00:00 committed by GitHub
parent 26f0e2d045
commit 948b5af09b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
70 changed files with 158 additions and 145 deletions

View File

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

View File

@ -1,11 +1,11 @@
pkgname=device-asus-flo
pkgver=0
pkgrel=8
pkgrel=9
pkgdesc="Google Nexus 7 2013 flo"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-asus-flo mkbootimg firmware-asus-flo mesa mesa-egl mesa-dri-freedreno"
depends="postmarketos-base linux-asus-flo mkbootimg firmware-asus-flo mesa mesa-egl mesa-dri-freedreno"
makedepends=""
install=""
subpackages="$pkgname-weston"

View File

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

View File

@ -1,12 +1,12 @@
pkgname="device-asus-t00f"
pkgdesc="Asus Zenfone 5"
pkgver=0.1
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-asus-t00f mkbootimg"
depends="postmarketos-base linux-asus-t00f mkbootimg"
makedepends="devicepkg-dev"
subpackages="$pkgname-x11"
source="

View File

@ -2,12 +2,12 @@
pkgname="device-asus-tf101"
pkgdesc="Asus Eee Pad Transformer"
pkgver=0.2
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-asus-tf101 mkbootimg blobtools"
depends="postmarketos-base linux-asus-tf101 mkbootimg blobtools"
makedepends="devicepkg-dev"
source="deviceinfo"

View File

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

View File

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

View File

@ -2,12 +2,12 @@
pkgname="device-gp-peak"
pkgdesc="Geeksphone Peak"
pkgver=0.1
pkgrel=2
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-gp-peak mkbootimg mesa-dri-swrast msm-fb-refresher"
depends="postmarketos-base linux-gp-peak mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="
deviceinfo

View File

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

View File

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

View File

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

View File

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

View File

@ -2,12 +2,12 @@
pkgname="device-infocus-flatfish"
pkgdesc="InFocus New Tab F1"
pkgver=0.1
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-infocus-flatfish mkbootimg mesa-dri-swrast"
depends="postmarketos-base linux-infocus-flatfish mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="
deviceinfo

View File

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

View File

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

View File

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

View File

@ -2,12 +2,12 @@
pkgname="device-lg-bullhead"
pkgdesc="Google Nexus 5X"
pkgver=0.1
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-lg-bullhead mkbootimg mesa-dri-swrast libsparse msm-fb-refresher"
depends="postmarketos-base linux-lg-bullhead mkbootimg mesa-dri-swrast libsparse msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,12 +2,12 @@
pkgname="device-motorola-potter"
pkgdesc="Motorola Moto G5 Plus"
pkgver=0.1
pkgrel=2
pkgrel=3
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-motorola-potter mkbootimg mesa-dri-swrast msm-fb-refresher"
depends="postmarketos-base linux-motorola-potter mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"

View File

@ -2,12 +2,12 @@
pkgname="device-motorola-shamu"
pkgdesc="Motorola Google Nexus 6"
pkgver=0.3
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-motorola-shamu mkbootimg mesa-dri-swrast msm-fb-refresher"
depends="postmarketos-base linux-motorola-shamu mkbootimg mesa-dri-swrast msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo initfs-hook.sh"

View File

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

View File

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

View File

@ -1,11 +1,11 @@
pkgname=device-nokia-n9
pkgver=1
pkgrel=0
pkgrel=1
pkgdesc="Nokia N9"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-nokia-n9 linux-firmware ofono watchdog-kick"
depends="postmarketos-base linux-nokia-n9 linux-firmware ofono watchdog-kick"
makedepends=""
install=""
subpackages="$pkgname-weston:weston"

View File

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

View File

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

View File

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

View File

@ -1,12 +1,12 @@
pkgname=device-qemu-aarch64
pkgver=1
pkgrel=9
pkgrel=10
pkgdesc="Simulated device in qemu with vexpress soc"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
# NOTE: 'pmbootstrap init' allows you to choose the mesa-dri-* package
depends="linux-postmarketos-stable"
depends="postmarketos-base linux-postmarketos-stable"
makedepends=""
subpackages="$pkgname-weston"
source="deviceinfo interfaces weston.ini"

View File

@ -1,12 +1,12 @@
pkgname=device-qemu-amd64
pkgver=1
pkgrel=13
pkgrel=14
pkgdesc="Simulated device in qemu with an x86 platform"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
# NOTE: 'pmbootstrap init' allows you to choose the mesa-dri-* package
depends="linux-postmarketos-lts"
depends="postmarketos-base linux-postmarketos-lts"
makedepends=""
subpackages="$pkgname-x11 $pkgname-weston"
source="deviceinfo interfaces weston.ini"

View File

@ -1,12 +1,12 @@
pkgname=device-qemu-vexpress
pkgver=1
pkgrel=16
pkgrel=17
pkgdesc="Simulated device in qemu with vexpress soc"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
# NOTE: 'pmbootstrap init' allows you to choose the mesa-dri-* package
depends="linux-postmarketos-lts"
depends="postmarketos-base linux-postmarketos-lts"
makedepends=""
subpackages=""
source="deviceinfo interfaces"

View File

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

View File

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

View File

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

View File

@ -1,12 +1,12 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-i9070
pkgver=1
pkgrel=20
pkgrel=21
pkgdesc="Samsung Galaxy S Advance"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-samsung-i9070 firmware-samsung-i9070 mesa-dri-swrast"
depends="postmarketos-base linux-samsung-i9070 firmware-samsung-i9070 mesa-dri-swrast"
makedepends="devicepkg-dev"
install=""
subpackages=""

View File

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

View File

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

View File

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

View File

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

View File

@ -1,12 +1,12 @@
pkgname="device-samsung-klte"
pkgdesc="Samsung Galaxy S5"
pkgver=0.1
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-samsung-klte mkbootimg msm-fb-refresher"
depends="postmarketos-base linux-samsung-klte mkbootimg msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"

View File

@ -1,12 +1,12 @@
# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-maguro
pkgver=2
pkgrel=17
pkgrel=18
pkgdesc="Google Galaxy Nexus (GSM)"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-samsung-maguro mkbootimg firmware-samsung-maguro mesa-dri-swrast"
depends="postmarketos-base linux-samsung-maguro mkbootimg firmware-samsung-maguro mesa-dri-swrast"
makedepends="devicepkg-dev"
install=""
subpackages=""

View File

@ -2,12 +2,12 @@
pkgname="device-samsung-manta"
pkgdesc="Google Nexus 10"
pkgver=0.1
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-samsung-manta mkbootimg mesa-dri-swrast watchdog-kick"
depends="postmarketos-base linux-samsung-manta mkbootimg mesa-dri-swrast watchdog-kick"
makedepends="devicepkg-dev"
source="deviceinfo"

View File

@ -2,12 +2,12 @@
pkgname="device-samsung-n5110"
pkgdesc="Samsung Galaxy Note 8.0 (Wi-Fi)"
pkgver=0.1
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-samsung-n5110 mkbootimg mesa-dri-swrast"
depends="postmarketos-base linux-samsung-n5110 mkbootimg mesa-dri-swrast"
makedepends="devicepkg-dev"
source="deviceinfo pointercal asound.state Kona_WM1811/hifi.conf Kona_WM1811/Kona_WM1811.conf Kona_WM1811/lp.conf 90-$pkgname.rules"

View File

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

View File

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

View File

@ -2,12 +2,12 @@
pkgname=device-semc-anzu
pkgdesc="Xperia Arc"
pkgver=1
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-semc-anzu linux-firmware msm-fb-refresher mkbootimg libsparse mesa-dri-swrast"
depends="postmarketos-base linux-semc-anzu linux-firmware msm-fb-refresher mkbootimg libsparse mesa-dri-swrast"
makedepends="devicepkg-dev"
source="
deviceinfo

View File

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

View File

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

View File

@ -1,11 +1,11 @@
pkgname=device-sony-castor-windy
pkgver=1
pkgrel=10
pkgrel=11
pkgdesc="Sony Xperia Z2 Tablet WIFI"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="mkbootimg linux-sony-castor-windy linux-firmware mesa-dri-freedreno firmware-adreno"
depends="postmarketos-base mkbootimg linux-sony-castor-windy linux-firmware mesa-dri-freedreno firmware-adreno"
makedepends=""
install=""
subpackages=""

View File

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

View File

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

View File

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

View File

@ -1,11 +1,11 @@
pkgname=device-t2m-flame
pkgver=1
pkgrel=9
pkgrel=10
pkgdesc="Mozilla Flame"
url="https://github.com/postmarketOS"
arch="noarch"
license="MIT"
depends="linux-t2m-flame firmware-t2m-flame mkbootimg mesa-dri-swrast"
depends="postmarketos-base linux-t2m-flame firmware-t2m-flame mkbootimg mesa-dri-swrast"
makedepends=""
install="$pkgname.post-install"
source="deviceinfo 90-android-touch-dev.rules $install"

View File

@ -4,12 +4,12 @@
pkgname="device-teclast-x80pro"
pkgdesc="Teclast X80Pro"
pkgver=1.0
pkgrel=1
pkgrel=2
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-teclast-x80pro linux-firmware"
depends="postmarketos-base linux-teclast-x80pro linux-firmware"
makedepends="devicepkg-dev"
source="deviceinfo"

View File

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

View File

@ -2,12 +2,12 @@
pkgname="device-xiaomi-armani"
pkgdesc="Redmi 1S"
pkgver=0.1
pkgrel=0
pkgrel=1
url="https://postmarketos.org"
license="MIT"
arch="noarch"
options="!check"
depends="linux-xiaomi-armani mkbootimg mesa-dri-swrast msm-fb-refresher firmware-xiaomi-armani"
depends="postmarketos-base linux-xiaomi-armani mkbootimg mesa-dri-swrast msm-fb-refresher firmware-xiaomi-armani"
makedepends="devicepkg-dev"
install="$pkgname.post-install $pkgname.pre-deinstall"
source="deviceinfo

View File

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

View File

@ -1,11 +1,12 @@
pkgname=msm-fb-refresher
pkgver=0.1
pkgrel=0
pkgrel=1
pkgdesc="Display refresher for Qualcomm devices"
arch="all"
url="https://github.com/AsteroidOS/msm-fb-refresher"
license="GPL2"
makedepends="linux-headers"
install="$pkgname.post-install"
source="
${pkgname}-${pkgver}.tar.gz::https://github.com/AsteroidOS/msm-fb-refresher/archive/v${pkgver}.tar.gz
msm-fb-refresher.init

View File

@ -0,0 +1,3 @@
#!/bin/sh
rc-update -q add msm-fb-refresher boot

View File

@ -1,6 +1,6 @@
pkgname=postmarketos-base
pkgver=3
pkgrel=13
pkgrel=14
pkgdesc="Meta package for minimal postmarketOS base"
url="https://github.com/postmarketOS"
arch="noarch"
@ -30,8 +30,7 @@ source="
50-firmware.rules
swapfile/swapfile
swapfile/swapfile.init
swapfile/swapfile.conf
$install"
swapfile/swapfile.conf"
options="!check"
package() {
@ -65,5 +64,4 @@ sha512sums="38dc75c0ed32b76dccd3d8e7e8173e8b7d91847cf2b07123f376b95af46b4f89798b
0b098828080055d3646ea54891cb0e1b578cbc30f5e16f7284f2814c08192f18079a38fb686d192715ae6a3d2cd6625d9e3cf99f234a6f0d94088bb0cb2ce43d 50-firmware.rules
3ceeee37f558e7c95ad973692b6a437f997e6b46c3d1c2257ddfb1529a5633477373aa123c7f08164e818daae50acb203d151379f27ca11bd458809e6a0d4de7 swapfile
f5cc0f1265955d2646e5f099dd4b5d4c287945bfc18c16044db57670d456f55c678fc11cc59e6dab3fa340832ce869d516302a3a35c13518539ed0cedca51819 swapfile.init
e0d2d48b82a03239a4c0a00acaf83e00d397c23a8d7c71053d4e2a383357c22dcedef9e81b0e12a1d7514e1fdbe0bb3eb82613d18b29034a7ce5447f13c84a53 swapfile.conf
76f0410cf51a991d1c2caacc1a7ea6b7b1075fad7405167a82fd1e980b2c00b840991374b0799fb29fbd53d81a61cbbdaac2f915c9d5696cd84c6f4de28c5cb2 postmarketos-base.post-install"
e0d2d48b82a03239a4c0a00acaf83e00d397c23a8d7c71053d4e2a383357c22dcedef9e81b0e12a1d7514e1fdbe0bb3eb82613d18b29034a7ce5447f13c84a53 swapfile.conf"

View File

@ -1,7 +1,5 @@
#!/bin/sh
. /etc/deviceinfo
# Enable udev OpenRC services and runlevels
# https://github.com/alpinelinux/aports/blob/master/main/eudev/setup-udev
setup-udev -n
@ -19,9 +17,6 @@ done
for service in mount-ro killprocs savecache; do
rc-update -q add $service shutdown
done
if [ "${deviceinfo_msm_refresher}" = "true" ]; then
rc-update -q add msm-fb-refresher boot
fi
# Prime swclock with a reasonable date/time on first boot
mkdir -p /run/openrc

View File

@ -182,7 +182,7 @@ def generate_deviceinfo(args, pkgname, name, manufacturer, arch, has_keyboard,
def generate_apkbuild(args, pkgname, name, arch, flash_method):
# Dependencies
depends = "linux-" + "-".join(pkgname.split("-")[1:])
depends = "postmarketos-base linux-" + "-".join(pkgname.split("-")[1:])
if flash_method in ["fastboot", "heimdall-bootimg"]:
depends += " mkbootimg"
if flash_method == "0xffff":

View File

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

View File

@ -16,17 +16,15 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with pmbootstrap. If not, see <http://www.gnu.org/licenses/>.
"""
import os
import sys
import glob
import os
import pytest
import sys
# Import from parent directory
pmb_src = os.path.realpath(os.path.join(os.path.dirname(__file__) + "/.."))
sys.path.append(pmb_src)
import pmb.parse.apkindex
import pmb.parse
import pmb.helpers.logging
@pytest.fixture
@ -48,3 +46,15 @@ def test_deviceinfo(args):
device = folder.split("-", 1)[1]
print(device)
pmb.parse.deviceinfo(args, device)
def test_aports_device(args):
"""
Require "postmarketos-base" to be in the device APKBUILD's depends.
"""
for path in glob.glob(args.aports + "/device/device-*/APKBUILD"):
apkbuild = pmb.parse.apkbuild(args, path)
if "postmarketos-base" not in apkbuild["depends"]:
raise RuntimeError("Missing 'postmarketos-base' in depends of " +
path)