2021-09-19 19:46:42 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
|
|
|
pkgname=device-huawei-sturgeon
|
|
|
|
pkgdesc="Huawei Watch"
|
2023-05-03 18:05:09 +00:00
|
|
|
pkgver=1
|
|
|
|
pkgrel=0
|
2021-09-19 19:46:42 +00:00
|
|
|
url="https://postmarketos.org"
|
|
|
|
license="MIT"
|
|
|
|
arch="armv7"
|
|
|
|
options="!check !archcheck"
|
|
|
|
depends="
|
|
|
|
mkbootimg
|
|
|
|
postmarketos-base
|
|
|
|
"
|
|
|
|
makedepends="devicepkg-dev"
|
2021-11-29 07:58:47 +00:00
|
|
|
source="
|
|
|
|
deviceinfo
|
|
|
|
networkmanager.conf
|
|
|
|
"
|
2023-05-03 18:05:09 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware
|
|
|
|
"
|
2021-09-19 19:46:42 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
devicepkg_package $startdir $pkgname
|
2023-05-03 18:05:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-huawei-sturgeon msm-fb-refresher"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
|
2021-11-29 07:58:47 +00:00
|
|
|
install -Dm644 "$srcdir"/networkmanager.conf \
|
2023-05-03 18:05:09 +00:00
|
|
|
"$subpkgdir"/etc/NetworkManager/conf.d/10-sturgeon.conf
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Close to mainline kernel"
|
|
|
|
depends="linux-postmarketos-qcom-msm8226"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
2021-11-29 07:58:47 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
2023-05-03 18:05:09 +00:00
|
|
|
pkgdesc="Firmware for WiFi, ADSP, etc."
|
|
|
|
depends="firmware-huawei-sturgeon-adsp firmware-huawei-sturgeon-wifi"
|
2021-11-29 07:58:47 +00:00
|
|
|
mkdir "$subpkgdir"
|
2021-09-19 19:46:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-05-03 18:05:09 +00:00
|
|
|
295d405017fc1bb0658da5e0e440b16cbf4660ac5fe9ceb4bbd4e5052d31f2949f3733fd3bb44e7a37b0eec03562676519d0711265ddb2d5db51ffe1ee332db2 deviceinfo
|
2021-11-29 07:58:47 +00:00
|
|
|
a19923f30ac1d328a85ab1162e44442da28dd1ae45529fb73e21d8004594487f61c8f5372e5bbaadfefd27fe27c8a22ce430b81891ac1965e5704bbfec108b82 networkmanager.conf
|
2021-09-19 19:46:42 +00:00
|
|
|
"
|