mirror of
https://github.com/linux-msm/rpmsgexport.git
synced 2026-08-13 13:12:22 -07:00
ad7cc961b28a4b52b5178da9356c2f482a8d3e84
The existing Makefile hardcodes both CFLAGS and LDFLAGS: CFLAGS := -Wall -g -O2 LDFLAGS := This prevents toolchain-provided flags from being applied when packaging with distribution build systems such as Yocto and dpkg-buildpackage. Specifically: - The linker flag --hash-style=gnu is not applied, causing the binary to be missing GNU_HASH. - The compiler flag -fdebug-prefix-map is not applied, causing debug symbols to embed absolute build paths. Replace the Makefile with meson, which automatically inherits CFLAGS and LDFLAGS from the environment, resolving both issues. To build: meson setup build && meson compile -C build Signed-off-by: Vishnu Santhosh <vishnu.santhosh@oss.qualcomm.com>
rpmsgexport
===========
rpmsgexport implements RPMSG_CREATE_EPT_IOCTL for usage in udev rules to
automatically create endpoint devices as remoteproc devices are booted.
An example of udev-rule that automatically exposes the APPS_RIVA_CTRL channel
to user space as the pronto core comes up:
ACTION=="add", SUBSYSTEM=="rpmsg", \
KERNEL=="rpmsg_ctrl[0-9]*", \
ATTRS{rpmsg_name}=="pronto", \
RUN+="rpmsgexport /dev/$name APPS_RIVA_CTRL"
Which together with the following two udev rules creates a nice directory
structure of rpmsg endpoint devices under /dev/rpmsg:
SUBSYSTEM=="rpmsg", KERNEL=="rpmsg_ctrl[0-9]*", \
ATTRS{rpmsg_name}=="?*", \
SYMLINK+="rpmsg/$attr{rpmsg_name}/ctrl"
SUBSYSTEM=="rpmsg", KERNEL=="rpmsg[0-9]*", \
ATTR{name}=="?*", \
ATTRS{rpmsg_name}=="?*", \
SYMLINK+="rpmsg/$attr{rpmsg_name}/$attr{name}"
Languages
C
93.5%
Meson
6.5%