soc-unisoc-ums9230: new aport
Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6941>
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
ACTION!="add", GOTO="rpmsg_end"
|
||||
SUBSYSTEM!="rpmsg", GOTO="rpmsg_end"
|
||||
|
||||
ATTRS{rpmsg_name}=="?*", ENV{RPMSG_PREFIX}="$attr{rpmsg_name}", GOTO="rpmsg_path"
|
||||
|
||||
GOTO="rpmsg_end"
|
||||
|
||||
LABEL="rpmsg_path"
|
||||
|
||||
ATTRS{sbuf_channel_name}=="?*", ENV{RPMSG_PATH}="$env{RPMSG_PREFIX}/$attr{sbuf_channel_name}", GOTO="rpmsg_symlink"
|
||||
|
||||
ENV{RPMSG_PATH}="$env{RPMSG_PREFIX}"
|
||||
|
||||
LABEL="rpmsg_symlink"
|
||||
|
||||
KERNEL=="rpmsg_ctrl[0-9]*", SYMLINK+="rpmsg/$env{RPMSG_PATH}/ctrl", GOTO="rpmsg_export"
|
||||
KERNEL=="rpmsg[0-9]*", ATTR{name}=="?*", SYMLINK+="rpmsg/$env{RPMSG_PATH}/$attr{name}"
|
||||
|
||||
GOTO="rpmsg_end"
|
||||
|
||||
LABEL="rpmsg_export"
|
||||
|
||||
ENV{RPMSG_PATH}=="pmsys/pm_ctl", RUN+="/usr/sbin/rpmsgexport /dev/$name pm_ctl0 -1 -1"
|
||||
ENV{RPMSG_PATH}=="pmsys/pm_gnss", RUN+="/usr/sbin/rpmsgexport /dev/$name gnss_pipe0 -1 -1"
|
||||
|
||||
LABEL="rpmsg_end"
|
||||
@@ -0,0 +1 @@
|
||||
ACTION=="add", SUBSYSTEM=="rpmsg", ATTR{name}=="pm_ctl0", RUN+="/bin/sh -c 'echo -n watchdog on > /dev/$name'"
|
||||
@@ -0,0 +1,27 @@
|
||||
pkgname=soc-unisoc-ums9230
|
||||
pkgdesc="Common package for Unisoc UMS9230 devices"
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="BSD-3-Clause"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck !tracedeps"
|
||||
depends="rpmsgexport unisoc-nvitem-daemon unisoc-timesync-daemon"
|
||||
source="
|
||||
70-rpmsg.rules
|
||||
99-sprd-watchdog.rules
|
||||
"
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
|
||||
install -Dm644 "$srcdir"/70-rpmsg.rules \
|
||||
-t "$pkgdir"/usr/lib/udev/rules.d
|
||||
install -Dm644 "$srcdir"/99-sprd-watchdog.rules \
|
||||
-t "$pkgdir"/usr/lib/udev/rules.d
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
38644b83b4194356706c99f9607c5f5d3c4af60f71d0825e5c855935d3d0b0b90e38ab8941d88ac8409a49cebc535c55f09a8ff9eb74e80ca2ad3b0c012392b7 70-rpmsg.rules
|
||||
b8b67766f99f0d1fce7955e232fd938f12b136b06d25ed959af3e75e9a55a308c0080072fb91eef3e374a82ee9441b3f4c1eeae6b3d157630e5076f13848190e 99-sprd-watchdog.rules
|
||||
"
|
||||
Reference in New Issue
Block a user