Commit Graph

539 Commits

Author SHA1 Message Date
Tedd Ho-Jeong An
c0cae92548 build: Fix manpage enable flag
This patch fixes the manpages installation with --enable-manpages option
so the manpages are not installed by default if the option is not set
during the configuration.
2021-05-04 16:49:01 -07:00
Tedd Ho-Jeong An
b055779642 Build: Add missing ELL headers and sources
The recent change in ELL included the header file tls.h which didn't
included in the BlueZ. This patch adds a series of missing ELL headers
and sources to align with the change in ELL.
2021-04-30 17:40:57 -07:00
Marcel Holtmann
d9fdbedf0e build: Create directory for ell/useful.h 2021-04-29 10:14:28 +02:00
Inga Stotland
d9bc40218d tools/mesh-cfgtest: Non-iteractive test for mesh
This adds a non-interactive test to excercise different datapaths in
bluetooth-meshd. The test cases utilize D-Bus based mesh APIs, e.g.,
to create a new network, import a node, import NetKey, import a remote
node.
2021-04-10 10:29:27 -07:00
Marcel Holtmann
727a88a901 build: Update library version 2021-04-02 10:41:13 +02:00
Marcel Holtmann
fde1e8fbf4 build: Always link in the ell/useful.h header file 2021-04-02 07:26:29 +02:00
Luiz Augusto von Dentz
571e41a19a build: Fix build with latest ELL tree
Latest ELL tree has introduced useful.h and main-private.h which are
required to build:

ell/cert-crypto.c:35:10: fatal error: useful.h: No such file or
directory
   35 | #include "useful.h"
         |          ^~~~~~~~~~
...
2021-03-16 18:20:37 -07:00
Marcel Holtmann
66c61b5005 build: Update library version 2021-02-22 21:00:05 +01:00
Inga Stotland
bc65e8840d mesh: Add validation of Device UUID value
Validate that the value of Device UUID supplied in
CreateNetwork/Join/Import methods is compliant with RFC 4122.
2021-02-16 11:51:00 -08:00
Luiz Augusto von Dentz
d8e7311bcd build: Fix build error with missing ell/pkcs5.h
./ell/ell.h:24:10: fatal error: ell/pkcs5.h: No such file or directory
   24 | #include <ell/pkcs5.h>
      |          ^~~~~~~~~~~~~
2021-01-26 15:45:53 -08:00
Brian Gix
e1daac43aa ELL: Up-rev the ELL file list to version Rel 0.37
This has no functional change.  It simply changes the ELL file list used
for the statically linked version of ELL into BlueZ executables.
2021-01-26 13:20:24 -08:00
Sonny Sasaka
88f11c0be2 battery: Add the internal Battery API
This patch adds an API for internal BlueZ code to expose battery
information to org.bluez.Battery1 interface. The motivation behind this
is that there is going to be other places than GATT BAS handler that
exposes battery information, for example internal plugins and the
BatteryProvider1 D-Bus API for external clients.

Reviewed-by: Daniel Winkler <danielwinkler@google.com>
2020-11-30 16:16:27 -08:00
Luiz Augusto von Dentz
c4ef8f8d04 core: Rename hcid.h to btd.h
Since we use btd term for daemon APIs it makes sense to use it also
for the header name instead of hcid.
2020-10-29 10:27:38 -07:00
Tedd Ho-Jeong An
3d22393db2 build: Add SPDX License Identifier
This patch adds SPDX License Identifier and removes the license text.

-------------------------------------
       License            COUNT
-------------------------------------
 GPL-2.0-or-later     :      6

License: GPL-2.0-or-later
   Makefile.am
   Makefile.mesh
   Makefile.obexd
   Makefile.plugins
   Makefile.tools
   configure.ac
2020-09-21 16:20:26 -07:00
Miao-chen Chou
1b32562b70 adv_monitor: Introduce org.bluez.AdvertisementMonitorManager1 interface
This introduces the org.bluez.AdvertisementMonitorManager1 without
implementing handlers of methods and properties.

The following test was performed.
- Upon adapter registration, the info line of creating an ADV monitor
manager gets printed, and system bus emits the interface events of
org.bluez.AdvertisementMonitorManager1.
2020-09-14 12:34:34 -07:00
Marcel Holtmann
a73d0804db build: Update library version 2020-09-06 15:50:53 +02:00
Marcel Holtmann
209a689b26 build: Update library version 2020-03-15 07:26:51 +01:00
Marcel Holtmann
a9644f65f3 build: Update library version 2020-02-14 23:27:03 +01:00
Brian Gix
467a4930ad build: Include dependencies for ell/settings.[ch]
Including settings.[ch] in a build requires the following chained
dependencies:
PEM
CERT
KEY
PKSC5
BASE64
2019-12-04 14:40:21 -08:00
Brian Gix
4f4ac13ef6 unit: Fixed Mesh Crypto unit test build for LTO
Was erroneously compiling and linking explicit unit test versions of the
ELL source dependancies while also linking with the library made from
same sources. This created Link Time Optimization (LTO) problems when
calling exit(), as there were two copies of the constructors and
destructors from ell/log.c.
2019-11-07 09:17:00 -08:00
Luiz Augusto von Dentz
8812296c86 unit: Make mesh tests conditional
Mesh code can be disabled with use of --disable-mesh.
2019-10-16 11:57:23 +03:00
Ross Burton
117c41242c Makefile.am: add missing mkdir in rules generation
In parallel out-of-tree builds it's possible that tools/*.rules are
generated before the target directory has been implicitly created. Solve this by
creating the directory before writing into it.
2019-10-09 17:35:23 +03:00
Brian Gix
06cf0fd1c7 unit: Add Mesh Crypto tests from Mesh Profile Spec
This unit test will be grown over time to include tests formed from the
sample data in the Bluetooth Mesh Profile specification (Currently at
version v1.0.1).

Currently it includes test cases for the following sets of sample data:
Sections 8.1.1-6
Sections 8.2.1-6
Sections 8.3.1-11
Section 8.4.3
Section 8.6.2
2019-10-05 08:53:57 -07:00
Inga Stotland
f82256202f shared/mainloop: Add ell-based mainloop implementation
This adds implementation of wrapper mainloop functions to interact with
ell main APIs, enabling support for the applications that link with ell
library and use mainloop functionality.
2019-09-27 17:34:12 +03:00
Marcel Holtmann
8ab0f18876 build: Update library version 2019-09-19 19:36:43 +02:00
Ludwig Nussel
d2a72dd671 install: Fix installations to pkglibexecdir
In 78bce4800 libexecdir was switched to pkglibexecdir. To use the
matching installation script, use pkglibexec_Programs instead of
libexec_Programs.
2019-06-04 13:25:54 -07:00
Brian Gix
dfed483946 mesh: Convert crypto to use ELL wrappers
Use ELL implementations of aead-ccm(aes), ecb(aes) and cmac(aes). These
standard encryption and hashing routines are provided by ELL.
2019-05-31 16:46:34 -07:00
Luiz Augusto von Dentz
c05f6e3057 core: Remove old code related to sd_notify
This is no longer needed since mainloop instances can handle it now.
2018-12-05 08:55:22 -03:00
Luiz Augusto von Dentz
db5e3a8a47 share/mainloop: Add handling of NOTIFY_SOCKET
This adds handling of systemd NOTIFY_SOCKET so application using
mainloop instance do properly notify systemd what is their state.
2018-12-05 08:55:20 -03:00
Marcel Holtmann
0093cd61b1 build: Add support for internal and external ELL configuration 2018-12-04 17:21:08 +01:00
Marcel Holtmann
6b7ab44285 build: Move $(UDEV_CFLAGS) to global $(AM_CFLAGS) 2018-12-03 19:47:20 +01:00
Jan Engelhardt
56a5098002 build: add missing BACKTRACE_CFLAGS
Some targets use BACKTRACE_LIBS, hence need BACKTRACE_CFLAGS.
2018-11-26 11:24:36 +02:00
Jan Engelhardt
b5c6746cbc build: add missing ALSA_CFLAGS
Some targets use ALSA_LIBS, hence need ALSA_CFLAGS.
2018-11-26 11:24:36 +02:00
Jan Engelhardt
eb81f12e4a build: add missing ELL_CFLAGS
Some targets link ELL_LIBS, which means they also need ELL_CFLAGS
in their (or the global) CPPFLAGS.
2018-11-26 11:24:35 +02:00
Jan Engelhardt
06dbb223fb build: -D/-I arguments go into CPPFLAGS
-D and -I are preprocessor directives, they are therefore to appear
in CPPFLAGS, not CFLAGS. (It is unfortunate that pkg-config does not
make the distinction / or it was misnamed, because only -D/-I make
sense to be emitted by pkg-config in the first place — anything else
(-f/-m) has the potential to mess up someone's compilation. So
pkg-config's Cflags is actually used to convery Cppflags.)
2018-11-26 11:24:35 +02:00
Jan Engelhardt
bfede2a086 build: change @foo@ to $(foo) in automake makefiles
When using automake, all AC_SUBSTed variables are made available as
make variables, so that they can also be set at make time. Therefore,
they need not use the @harcoded@ style.
2018-11-26 11:24:34 +02:00
Jan Engelhardt
3a74874c6d build: rename includedir to pkgincludedir
This change is similar to commit 5.50-130-g78bce4800 and does the
same, but for includedir.
2018-11-26 11:24:33 +02:00
Jan Engelhardt
78bce48009 build: rename libexecdir to pkglibexecdir
When files are to be placed not in libexecdir but a subdirectory of
it, automake has a variable name reserved for exactly that purpose
(and a default value, which Makefile.am will override), called
pkglibexecdir. Let's use it.
2018-11-21 13:22:33 +02:00
Luiz Augusto von Dentz
430f2b7790 shared/log: Add common code to interface with logging channel
This enables any code using shared to log information using the logging
channel which can then be decoded by the likes of btmon.
2018-11-20 15:31:22 +02:00
Inga Stotland
77d7625e8c Makefile for meshd 2018-08-20 13:05:14 -07:00
Marcel Holtmann
294ebd5486 build: Fix issues with building dist packages 2018-05-29 15:32:09 +02:00
Luiz Augusto von Dentz
5852a75d79 build: Fix requiring ell
Make sure libshared-ell is only build if ell is available.
2018-05-17 13:04:52 +03:00
Inga Stotland
499ad5dca0 shared/io-ell: Add support for ELL based IO handling 2018-05-16 10:23:57 +03:00
Luiz Augusto von Dentz
24f3162e35 build: Make bt_shell conditional to readline
bt_shell APIs shall only be build if readline is present on the system
since it currently depend on it.
2018-04-26 15:48:19 +03:00
Luiz Augusto von Dentz
e8ae7a4f2d build: Fix make distcheck 2018-03-22 11:16:26 +02:00
Luiz Augusto von Dentz
bff0c2ae9f build: Fix not disabling obexd when given --disable-obex
--disable-obex shall disable building obexd daemon.
2018-03-22 10:35:17 +02:00
Luiz Augusto von Dentz
a287cb4229 shared/mainloop: Add GLIB wrapper
This adds wrappers function to interface with GLIB mainloop so
applications can use mainloop functions no matter what is the underline
implementation.

Note: Most functions are not actually implemented on purpose since both
io and timeout functions already exists for GLIB covering the same
functionality.
2018-02-22 11:52:16 +02:00
Luiz Augusto von Dentz
7a03b61ee8 tools: Remove monitor/uuid.{c,h}
Use the shared/util.h helpers instead.
2017-12-21 10:08:22 -02:00
Luiz Augusto von Dentz
c3a336d898 gatt: Use monitor code to decode service name
This makes the daemon reuse the code for decoding service names that
the monitor uses.
2017-12-04 10:27:50 -02:00
Luiz Augusto von Dentz
bee3796113 build: Move shell.{c,h} to libshared
bt_shell instance should be available to any code linked with
libshared.
2017-11-20 11:34:15 +02:00