2020-01-10 16:38:42 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-09-06 10:27:14 +00:00
|
|
|
pkgname=device-oneplus-bacon
|
|
|
|
pkgver=1
|
2020-05-17 13:33:49 +00:00
|
|
|
pkgrel=22
|
2017-09-06 10:27:14 +00:00
|
|
|
pkgdesc="OnePlus One"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2020-01-17 04:35:12 +00:00
|
|
|
arch="armv7"
|
2017-09-06 10:27:14 +00:00
|
|
|
license="MIT"
|
2020-04-12 07:28:30 +00:00
|
|
|
depends="postmarketos-base mkbootimg"
|
2020-01-10 16:38:42 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2020-04-12 07:28:30 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
$pkgname-weston
|
|
|
|
"
|
2017-10-20 00:07:00 +00:00
|
|
|
source="deviceinfo 90-android-touch-dev.rules weston.ini"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2017-09-06 10:27:14 +00:00
|
|
|
|
2020-01-10 16:38:42 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-09-06 10:27:14 +00:00
|
|
|
package() {
|
2020-01-10 16:38:42 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-10-20 00:07:00 +00:00
|
|
|
install -Dm644 "$srcdir"/90-android-touch-dev.rules \
|
2017-09-15 15:31:17 +00:00
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
2017-09-06 10:27:14 +00:00
|
|
|
}
|
|
|
|
|
2020-04-12 07:28:30 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-oneplus-bacon mesa-dri-swrast msm-fb-refresher"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to mainline kernel"
|
2020-04-12 07:28:30 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8974 mesa-dri-freedreno"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="GPU firmware"
|
|
|
|
depends="firmware-adreno"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2017-10-20 00:07:00 +00:00
|
|
|
weston() {
|
|
|
|
install_if="$pkgname weston"
|
|
|
|
install -Dm644 "$srcdir"/weston.ini \
|
|
|
|
"$subpkgdir"/etc/xdg/weston/weston.ini
|
|
|
|
}
|
|
|
|
|
2020-05-17 13:33:49 +00:00
|
|
|
sha512sums="a98277e3d544fdb0bf3a4bf18407676145b34fb28c78e9b1376813a1adca8d2e576bfca24e14d61f854f32817721777ea30dfa21ce1016f459fd0b6e6d223820 deviceinfo
|
2017-10-20 00:07:00 +00:00
|
|
|
65e9ee7352b1dc39d99ea411eb0ed9c56f9975230907db5add3a1b4146cdf6f227c934052dab38a1937ed67d67585f28fb7410f10a1bec9dd5e4eb69d7253515 90-android-touch-dev.rules
|
2018-05-05 14:27:13 +00:00
|
|
|
86a0c08720225e4532f797ad69307dfff66867e4a35de1aacceefc48f19721caf93f9a17a268e58f1f5a7e947f157d6984676837c2b5b835b0caf6ee9821bb5a weston.ini"
|