2020-01-10 16:27:24 +00:00
|
|
|
# Reference: <https://postmarketos.org/devicepkg>
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgname=device-lg-mako
|
2023-01-02 18:59:50 +00:00
|
|
|
pkgver=3
|
|
|
|
pkgrel=0
|
2017-05-26 20:26:25 +00:00
|
|
|
pkgdesc="Google Nexus 4"
|
2018-06-30 07:00:48 +00:00
|
|
|
url="https://postmarketos.org"
|
2020-06-07 17:17:44 +00:00
|
|
|
arch="armv7"
|
2017-05-31 17:10:29 +00:00
|
|
|
license="MIT"
|
2023-01-02 18:59:50 +00:00
|
|
|
depends="
|
|
|
|
postmarketos-base
|
|
|
|
mkbootimg"
|
2020-01-10 16:27:24 +00:00
|
|
|
makedepends="devicepkg-dev"
|
2023-01-02 18:59:50 +00:00
|
|
|
subpackages="
|
|
|
|
$pkgname-kernel-downstream:kernel_downstream
|
|
|
|
$pkgname-kernel-mainline:kernel_mainline
|
|
|
|
$pkgname-nonfree-firmware:nonfree_firmware"
|
|
|
|
source="deviceinfo 90-android-touch-dev.rules pointercal fb.modes wcnss-wlan"
|
2018-11-07 06:45:58 +00:00
|
|
|
options="!check !archcheck"
|
2017-05-26 20:26:25 +00:00
|
|
|
|
2020-01-10 16:27:24 +00:00
|
|
|
build() {
|
|
|
|
devicepkg_build $startdir $pkgname
|
|
|
|
}
|
|
|
|
|
2017-05-26 20:26:25 +00:00
|
|
|
package() {
|
2020-01-10 16:27:24 +00:00
|
|
|
devicepkg_package $startdir $pkgname
|
2017-10-20 00:07:00 +00:00
|
|
|
install -Dm644 "$srcdir"/90-android-touch-dev.rules \
|
2017-05-26 20:26:25 +00:00
|
|
|
"$pkgdir"/etc/udev/rules.d/90-android-touch-dev.rules
|
2017-10-20 00:07:00 +00:00
|
|
|
install -Dm644 "$srcdir"/pointercal \
|
2017-09-23 01:05:54 +00:00
|
|
|
"$pkgdir"/etc/pointercal
|
2017-10-20 00:07:00 +00:00
|
|
|
install -Dm644 "$srcdir"/fb.modes \
|
2017-09-23 01:05:54 +00:00
|
|
|
"$pkgdir"/etc/fb.modes
|
2019-11-19 18:47:08 +00:00
|
|
|
install -Dm644 "$srcdir"/wcnss-wlan \
|
|
|
|
"$pkgdir"/etc/conf.d/wcnss-wlan
|
|
|
|
|
2018-01-04 16:41:27 +00:00
|
|
|
|
|
|
|
# Disable v4l (video4linux), because without the camera firmware
|
|
|
|
# blobs this makes dev hang with the kernel this device uses (#1033)
|
|
|
|
ln -s /dev/null "$pkgdir"/etc/udev/rules.d/60-persistent-v4l.rules
|
2017-05-26 20:26:25 +00:00
|
|
|
}
|
|
|
|
|
2023-01-02 18:59:50 +00:00
|
|
|
kernel_downstream() {
|
|
|
|
pkgdesc="Downstream kernel"
|
|
|
|
depends="linux-lg-mako wcnss-wlan"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
kernel_mainline() {
|
|
|
|
pkgdesc="Mainline kernel"
|
|
|
|
depends="linux-postmarketos-qcom-apq8064"
|
|
|
|
devicepkg_subpackage_kernel $startdir $pkgname $subpkgname
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
nonfree_firmware() {
|
|
|
|
pkgdesc="Wifi firmware"
|
|
|
|
depends="firmware-lg-mako"
|
|
|
|
mkdir "$subpkgdir"
|
2017-10-20 00:07:00 +00:00
|
|
|
}
|
|
|
|
|
2021-09-18 17:06:03 +00:00
|
|
|
sha512sums="
|
2023-01-02 18:59:50 +00:00
|
|
|
a1ed8c7a7858d049e19e01cffce4af477ee046952cd7f8663ba17b766ed3bbb539ce5d8fee18d3eda6d87de870ba48c5e0e29ae3e444fb96c0b36a8c7c2ef8a8 deviceinfo
|
2017-05-26 20:26:25 +00:00
|
|
|
ee25f3d0377f027d108593eb7953b8db49d7f05a5c36a0c8ca7e7849d15e3c217bc1ac97d77a66e28d2db4b81c0f50b905639911276da40321d2b6cca7f797df 90-android-touch-dev.rules
|
2017-09-23 01:05:54 +00:00
|
|
|
52b1465c75c51e2dc2e351a0609220af04b939b9edf7fca844cc00bb9eeb4e71f53e34817ba094e477fc43bf15101fcfd07963c791a36be5c52f199bba6a6d9d pointercal
|
2017-10-20 00:07:00 +00:00
|
|
|
217bdf692ade75d57968299e29e9379ffcfc97addf735663b3e1e7dfce049f9d13b26347b4405ac724ae5fac2946012dcc58014b23b8df357e225b6718dbc0a6 fb.modes
|
2021-09-18 17:06:03 +00:00
|
|
|
a8cfde9dd3bc96d990038443e8d10a551f13536f017992ae23545d2f1e09b0f729e5cfd1f94f52a2a335335172f082925b91c980695a27f76f636343de795898 wcnss-wlan
|
|
|
|
"
|