Commit Graph

20 Commits

Author SHA1 Message Date
Arnaud Ferraris
936c1978d5 Makefile: remove generated service file when cleaning
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.
2023-08-17 12:16:03 +02:00
Jami Kettunen
a4398c8bf2 Makefile: allow $(CFLAGS), $(LDFLAGS) override
The caller might have specified CFLAGS or LDFLAGS. Let's respect those.
Additionally drop LDFLAGS var definition as it is empty.
2023-01-05 11:00:29 -06:00
Julien Massot
2ed52a30f6 qrtr-ns.service: do not install as executable
Fix
systemd[1]: Configuration file /lib/systemd/system/qrtr-ns.service is marked executable. Please remove executable permission bits. Proceeding anyway.
2020-09-28 10:17:11 -05:00
Bjorn Andersson
cd6bedd5d0 qrtr-ns.service: Add systemd service
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>
2019-07-24 23:25:16 -07:00
Eric Caruso
f64c25c8af Unify logging into one function
This prepares us to add log-to-syslog functionality by passing
all logging through one place.

Signed-off-by: Eric Caruso <ejcaruso@chromium.org>
2018-05-08 17:16:33 -07:00
Eric Caruso
516011d79f cfg, ns: factor out qrtr_set_address function
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>
2018-05-01 11:49:23 -07:00
Bjorn Andersson
9c126920c9 Makefile: Add lib to include path of qrtr-cfg
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-03-05 22:03:18 -08:00
Bjorn Andersson
183d33d238 libqrtr: Rename libqrtr.c for the purpose of symmetry
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2018-02-01 01:51:39 +00:00
Bjorn Andersson
70b6f4900d qmi: Introduce QMI encoder/decoder helpers
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>
2018-01-31 21:07:45 +00:00
Bjorn Andersson
0ec649d4e6 qrtr: Backport future qrtr.h uapi
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>
2018-01-31 05:53:49 +00:00
Bjorn Andersson
8241755aad make: Link non-static
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2017-06-05 21:32:55 -07:00
Nicolas Dechesne
d4697675ce Makefile: add standard GNU makefiles directory variables
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>
2016-11-25 17:00:31 +01:00
Nicolas Dechesne
44bd79feb7 Makefile: implement GNU Coding Standard for Makefiles
GNU coding standards notably specifies:
 * install files with the $(DESTDIR) to the target system image
 * install files with the $(prefix), not $(PREFIX)
 * the default value of $(prefix) should be /usr/local

as per
https://www.gnu.org/prep/standards/html_node/Directory-Variables.html.

Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2016-06-06 01:18:50 +02:00
Nicolas Dechesne
ea3c58a2e2 makefile: install libqrtr.h file
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2016-06-06 01:18:18 +02:00
Nicolas Dechesne
b5cee337fa makefile: add support to install header file
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>
2016-06-06 01:18:18 +02:00
Nicolas Dechesne
dcf148e15e makefile: split bin and lib targets macros
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>
2016-06-06 01:18:12 +02:00
Nicolas Dechesne
6fb22ecfb1 makefile: create destination folder when installing files
Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org>
2016-06-03 18:55:59 +02:00
Bjorn Andersson
d7c59006cb qrtr-cfg: Introduce node-id configuration tool
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>
2016-06-01 06:44:36 -07:00
Bjorn Andersson
18fc98b858 libqrtr: Extract the lib from the src directory
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>
2016-02-07 22:01:57 -08:00
Courtney Cavin
4ec6c07f37 Initial commit
Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
2015-12-04 13:23:53 -08:00