2019-09-21 12:16:51 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2020-04-25 09:51:42 +00:00
|
|
|
pkgname=device-htc-memul
|
2019-09-21 12:16:51 +00:00
|
|
|
pkgdesc="HTC One Mini 2"
|
2024-04-27 10:12:24 +00:00
|
|
|
pkgver=5
|
2024-01-20 18:00:27 +00:00
|
|
|
pkgrel=0
|
2019-09-21 12:16:51 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
2023-09-04 15:46:07 +00:00
|
|
|
depends="
|
2023-09-27 18:32:39 +00:00
|
|
|
lk2nd-msm8226-htc-memul
|
2023-09-04 15:46:07 +00:00
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
2019-09-21 12:16:51 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2023-09-04 15:46:07 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
initfs-hook.sh
|
|
|
|
modules-initfs.mainline
|
|
|
|
"
|
2019-09-21 12:16:51 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2023-09-04 15:46:07 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-htc-memul"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
|
|
|
|
amove etc/udev/rules.d/90-$pkgname.rules
|
|
|
|
amove usr/share/mkinitfs/hooks/00-$pkgname.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel"
|
|
|
|
depends="linux-postmarketos-qcom-msm8226"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
2019-09-21 12:16:51 +00:00
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Firmware for WiFi, etc."
|
2024-01-20 18:00:27 +00:00
|
|
|
depends="firmware-htc-memul-adsp firmware-htc-memul-modem firmware-htc-memul-wcnss firmware-qcom-adreno-a330"
|
2019-09-21 12:16:51 +00:00
|
|
|
mkdir "$subpkgdir"
|
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2024-04-27 10:12:24 +00:00
|
|
|
870d033562ba1438194529ef9e5eeec77605675df40e491edf35984a7374d1fa99258027e234831ccd4993c80543d41d8c077af2f942ae047eff8a51190f01f2 deviceinfo
|
2021-09-18 17:06:03 +00:00
|
|
|
765abaad5fda0dfda5e62e1e48414d3eea822198f39d0792171a04d73f86f6273a6e562afab430cbfcdd084412568a0ad03d012e9c40c5564f5cd1b9c0f181eb initfs-hook.sh
|
2023-09-04 15:46:07 +00:00
|
|
|
9ebe6ca9e371b5091e4e47ecbe3ec0c72d055e4bc2281880119eb0dee4c56b71f20f7d3cf1f1cb62e6814604e745fb17bbbfcfed2fec42398871e50b17685533 modules-initfs.mainline
|
2021-09-18 17:06:03 +00:00
|
|
|
"
|