17 Commits

Author SHA1 Message Date
Bjorn Andersson
56074bd5fe Merge pull request #1 from ndechesne/build
Various Makefile improvements
v0.1
2016-06-06 08:42:16 -07: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
8a1372cbfc qrtr: Use getsockname() instead of hardcoding local node id
Suggested-by: Courtney Cavin <ccavin@gmail.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-06-01 18:15:16 -07:00
Bjorn Andersson
54081caa2f qrtr: Update AF_QIPCRTR to match kernel interface
The AF_QIPCRTR was merged into mainline as protocol #42.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-06-01 14:06:08 -07: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
a2cc96100c lookup: Add human readable service names
Add the list of human readable service names found in the libqmi
project.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-02-08 17:04:37 -08: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
Bjorn Andersson
763db9812c libqrtr: Add version to publish and bye prototypes
The instance is made up of 16 bits of version and 16 bits of instance,
the first is used upon matching services and must often be specified by
service implementations, so make it convenient to specify these.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-02-07 22:00:12 -08:00
Bjorn Andersson
4fedfec456 qrtr-ns: Announce registered local services to new remotes
Upon receiving a HELLO from the remote we need to advertise our
registered services for it to know about them.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-02-07 21:54:11 -08:00
Bjorn Andersson
39be874580 qrtr: Initialize sockaddr_qrtr for node 1
As node 0 is made a valid id in the kernel we're not allowed to specify
node 0 when binding our sockets. For now just hard code 1, as that's
where we are.

Either the kernel should define a reserved node id or we should have a
convenient way of specifying the local node, but for now this is good
enough.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-02-07 21:49:36 -08:00
Bjorn Andersson
3e11a3598b qrtr: Usage C99 stdint types instead of kernel types
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2016-02-07 21:45:03 -08:00
Courtney Cavin
504c9c4a56 Use proper local node id for local messages
Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
2015-12-16 15:21:08 -08:00
Courtney Cavin
4ec6c07f37 Initial commit
Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
2015-12-04 13:23:53 -08:00