After building the package, `make clean` doesn't delete the generated
service file. This patch ensures this file is included in the
`$(all-clean)` variable so it is removed when cleaning.
Add qrtr-ns.service template and install this into /lib/systemd/system
after modifying it according to $(DESTDIR) and $(prefix)
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This function in qrtr-ns was largely copied from the main
function of qrtr-cfg. We should just factor it out so there is
one implementation instead.
Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
The QMI functions can be used to deal with QMI-encoded data in
qrtr_packet objects. The structure-description is the same element-info
arrays as is used in the upstream Linux kernel.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
The uapi qrtr.h is extended with additional types and constants. Drop
the local qrtr.h to use the one from linux-headers and extend it
conditionally while we're waiting for the updated file.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
This component is compiled in Debian and OE where we have multilib support
enabled by default, so let's use proper variables for Makefile so that distro
can better configure the destination folders.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
New macro to be used to deploy header files when 'installing'. Use it as:
$(call add-inc-target,lib,foo.h)
to install file lib/foo.h
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
Build libraries with proper soname, real and linker names, using symlinks
appropriately.
As such, the generic macro 'add-target' can no longer be used for both
binary and libaries.
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
The final version of QRTR that was merged into v4.7 of the Linux kernel
requires a configuration step where we set the local node address.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Extract the libqrtr source and header file to a separate directory,
making it more convinient to include the header file from other
projects.
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>