2018-04-09 22:11:32 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-htc-m8
|
2018-04-09 22:11:32 +00:00
|
|
|
pkgdesc="HTC One M8"
|
2024-03-13 05:43:10 +00:00
|
|
|
pkgver=1
|
|
|
|
pkgrel=0
|
2018-04-09 22:11:32 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
2021-06-19 14:00:58 +00:00
|
|
|
arch="armv7"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2024-03-13 05:43:10 +00:00
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2018-04-09 22:11:32 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2024-03-13 05:43:10 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
2018-04-09 22:11:32 +00:00
|
|
|
initfs-hook.sh
|
2024-03-13 05:43:10 +00:00
|
|
|
90-android-touch-dev.rules
|
|
|
|
"
|
2018-04-09 22:11:32 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
install -D -m644 "$srcdir"/90-android-touch-dev.rules \
|
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
|
|
|
}
|
|
|
|
|
2024-03-13 05:43:10 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-htc-m8 msm-fb-refresher"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel"
|
|
|
|
depends="linux-postmarketos-qcom-msm8974"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2020-07-02 17:18:05 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-htc-m8"
|
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-06-19 14:00:58 +00:00
|
|
|
sha512sums="
|
2024-03-13 05:43:10 +00:00
|
|
|
ee05a21c7dee368c6cd74f35f0dcf125dbff3938a689ac0f4626643c43e9297ce2a8af15af09153e832af00b50b0e578707232ef990ea7dcabe9141de0a27cad deviceinfo
|
2018-04-09 22:11:32 +00:00
|
|
|
765abaad5fda0dfda5e62e1e48414d3eea822198f39d0792171a04d73f86f6273a6e562afab430cbfcdd084412568a0ad03d012e9c40c5564f5cd1b9c0f181eb initfs-hook.sh
|
2021-06-19 14:00:58 +00:00
|
|
|
f0f69ab3b5b3fed11ec5049f37c71c4e9dcf87dc1f238199a3917dd61957d46783a8798d63d400cc5d3983987e750e3fec6d7117561ad5005f28131ae4821d66 90-android-touch-dev.rules
|
|
|
|
"
|