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
|
2024-01-11 20:08:31 +00:00
|
|
|
pkgver=3
|
2024-01-21 22:56:08 +00:00
|
|
|
pkgrel=1
|
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"
|
2023-05-13 09:26:08 +00:00
|
|
|
depends="
|
|
|
|
lk2nd-msm8974-appended
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
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
|
|
|
|
"
|
2024-01-11 20:08:31 +00:00
|
|
|
source="deviceinfo modules-initfs.mainline 90-android-touch-dev.rules"
|
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"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="linux-oneplus-bacon msm-fb-refresher"
|
2020-04-12 07:28:30 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
2020-07-11 09:16:39 +00:00
|
|
|
pkgdesc="Close to mainline kernel"
|
2022-10-10 19:33:44 +00:00
|
|
|
depends="linux-postmarketos-qcom-msm8974"
|
2020-04-12 07:28:30 +00:00
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2021-03-14 21:07:13 +00:00
|
|
|
pkgdesc="GPU, Wi-Fi firmware"
|
2021-10-23 08:08:54 +00:00
|
|
|
depends="firmware-qcom-adreno-a330 firmware-oneplus-bacon"
|
2020-04-12 07:28:30 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2022-10-04 20:34:45 +00:00
|
|
|
sha512sums="
|
2023-08-02 17:06:01 +00:00
|
|
|
4daaf93f610cbc1b2a864dcb9b6488b04218f6ca9b14f579afc219e813eb22a8e4c48a2852b217cbae9c165a851a88546c8e2851cb1aa301ed636947e56cf24c deviceinfo
|
|
|
|
fd639faebbee2c0c2c227710678376e0d039b7d96a62103f7ba7e6304d7060023f09064918e93a125465d20d125c0334225680521a7aeae5a43d77d7360c180c modules-initfs.mainline
|
2017-10-20 00:07:00 +00:00
|
|
|
65e9ee7352b1dc39d99ea411eb0ed9c56f9975230907db5add3a1b4146cdf6f227c934052dab38a1937ed67d67585f28fb7410f10a1bec9dd5e4eb69d7253515 90-android-touch-dev.rules
|
2022-10-04 20:34:45 +00:00
|
|
|
"
|