Commit Graph

246 Commits

Author SHA1 Message Date
Anderson Lizardo
6a0e5bc087 build: Fix --disable-optimization configure option
On commit cc9e4e7cae, this flag was
mistakenly replaced with the behavior of the old --enable-fortify
option.

This patch restores the "-O0" flag when --disable-optimization is used.

Unfortunately, this is not enough to disable build optimization. By
default, autoconf adds -O2 to CFLAGS if the compiler is GCC. AM_CFLAGS
(where -O0 is added with --disable-optimization) is passed as argument
to GCC before autoconf CFLAGS, so it is not possible to override the
default -O2. One solution is to use:

CFLAGS= ./configure --disable-optimization

i.e. remove -O2 from CFLAGS, and let autoconf add -O0.
2013-01-10 16:06:42 -08:00
Marcel Holtmann
cc9e4e7cae build: Update configure option handling 2012-12-10 21:32:51 +01:00
Marcel Holtmann
ff983074f8 build: Always build the Wiimote plugin 2012-12-10 21:32:51 +01:00
Marcel Holtmann
7d41e36e9f build: Remove left-over from telephony driver framework 2012-12-09 10:37:26 +01:00
Marcel Holtmann
292a37990c build: Remove dependency for check library 2012-12-09 10:33:32 +01:00
Marcel Holtmann
c45b8edf38 build: Enable bccmd utility when tools are enabled 2012-12-09 10:17:57 +01:00
Marcel Holtmann
bc974ed905 build: Use a separate Makefile.profiles 2012-12-09 01:26:22 +01:00
Marcel Holtmann
f6168cfe82 build: Remove old PCMCIA serial support 2012-12-09 00:59:22 +01:00
Marcel Holtmann
0613f64410 tools: Remove dfutool utility
This tool got replaced with dfu-util from http://dfu-util.gnumonks.org/
2012-12-09 00:50:54 +01:00
Marcel Holtmann
3b886d255b build: Remove compat helper for ppoll 2012-12-09 00:42:26 +01:00
Marcel Holtmann
fc771c9972 build: Check for existence of udev_hwdb_new function 2012-12-09 00:17:30 +01:00
Marcel Holtmann
c4858bbf24 build: Always enable GATT support 2012-11-09 20:30:54 +01:00
Marcel Holtmann
8d439d85b3 build: Remove option to build SBC support 2012-11-09 09:57:08 +01:00
Marcel Holtmann
15df7842e1 build: Remove option to build GStreamer plugin 2012-11-09 09:49:22 +01:00
João Paulo Rechi Vita
394b893a4d build: Fix selecting HoG suspend backend
The dummy backend was always being compiled and the --with-hog-suspend
option was not being accepted by configure. Now the backend can be
selected with --with-hog-suspend and the suspend implementation file is
generated during compile time.
2012-10-30 14:12:08 +02:00
Szymon Janc
fd1e9c5852 Add initial neard plugin implementation
Initial implementation. Only register and unregister support.
2012-10-03 22:44:51 +03:00
Mikel Astiz
4c8a8d655f build: Update glib dependency to 2.32
This version of the library adds several convenient features such as
g_queue_free_full.
2012-10-01 17:28:22 +03:00
Claudio Takahasi
16a8c88963 hog: Add suspend back-end selection
This patch series introduces back-end selection for HoG suspend drivers.
The default back-end is called "dummy", added for testing purpose only.
2012-09-28 12:55:25 +03:00
Gustavo Padovan
dd3f4ca901 plugins: remove unmaintained plugins 2012-07-10 11:19:10 -03:00
Gustavo Padovan
90118a6c71 serial: remove the whole serial code 2012-07-10 11:12:53 -03:00
Claudio Takahasi
fdc5ace164 hog: Register HID over GATT device driver 2012-07-09 09:57:42 -03:00
Gustavo Padovan
c31c93c351 remove compat daemons 2012-07-04 15:04:36 +03:00
Luiz Augusto von Dentz
4ff9b99292 audio: Remove ALSA support
ALSA support depend on unix support that is now removed.
2012-07-02 13:13:43 +03:00
Stefan Seyfried
02ea3647ac build: fix MISC_LDFLAGS typo to fix "--enable-pie" 2012-06-21 18:10:16 +03:00
Lucas De Marchi
afb0ab3a45 build: Do not set CFLAGS/LDFLAGS directly
Set a separate variable for adding warning flags, optimization, etc.
Build systems are not supposed to change CFLAGS and LDFLAGS, these are
user variables.

Doing so we guarantee CFLAGS and LDFLAGS from environment is appended
to the flags used during build. One useful use-case is to temporarily
disable -Werror when using --enable-maintainer-mode, without completely
loosing the warning flags and other parameters in CFLAGS (like -fPIC).

Without this patch, fiddling with CFLAGS/LDFLAGS after configure may
result in errors like below:

/usr/bin/ld: tools/rfcomm.o: relocation R_X86_64_32 against `.bss' can
not be used when making a shared object; recompile with -fPIC
tools/rfcomm.o: could not read symbols: Bad value
collect2: error: ld returned 1 exit status
make[1]: *** [tools/rfcomm] Error 1
make: *** [all] Error 2

Reference: http://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
2012-05-16 11:18:31 +03:00
Marcel Holtmann
1a79248e6b build: Require GLib 2.28 or later 2012-04-16 18:23:02 +02:00
Marcel Holtmann
c89b589a58 build: Require D-Bus 1.4 or later 2012-04-16 18:23:01 +02:00
Chen Ganir
e407e9ac6d GATT: Remove individual config switches
Remove individual GATT plugin configuration switches and add a
new master gatt switch called --enable-gatt to enable/disable all
GATT related plugins at once.
2012-03-26 12:09:51 +03:00
Marcel Holtmann
3bb5375bf5 tracer: Remove wrong attempt in building a HCI mointor in userspace 2012-02-20 16:03:42 +01:00
Santiago Carot-Nemesio
82ad2b53d2 glib-compat: Add g_list_free_full to deal with issues in old GLib versions 2012-02-03 10:45:17 -08:00
Anderson Lizardo
4f1294a5e7 Remove unused/broken "echo" RFCOMM plugin
It was disabled for quite some time (since 2009), and does not even
compile anymore if enabled:

plugins/echo.c: In function 'session_event':
plugins/echo.c:53: error: implicit declaration of function
'g_io_channel_read'
plugins/echo.c:57: error: implicit declaration of function
'g_io_channel_write'
2012-01-09 14:50:39 +02:00
Anderson Lizardo
d94628a136 Remove PulseAudio plugin leftover
The .c file and the configure check were not being used anywhere.
2012-01-09 14:50:27 +02:00
Scott James Remnant
f0ef8ce2ea build: increase check requirement to 0.9.6
ck_assert, used by unit/test-eir.c wasn't added to check until 0.9.6
2012-01-07 20:00:15 +02:00
Marcel Holtmann
bf5d45f2fb build: Move libcheck under TEST conditional 2011-12-27 20:09:56 -08:00
Bruna Moreira
d7925ed6c4 Add Phone Alert Server skeleton plugin 2011-09-22 20:05:06 +09:00
Anderson Lizardo
8f769e9565 Add GATT Time Server skeleton plugin 2011-09-22 20:05:04 +09:00
Santiago Carot-Nemesio
67c15df485 Initial support for Health Thermometer Profile (HTP) 2011-07-29 12:50:30 +03:00
Claudio Takahasi
37c3958aba Add Proximity Profile plugin skeleton 2011-07-26 11:13:01 +03:00
David Herrmann
1106efd440 Add support for wiimote pairing
The Nintendo Wii Remote requires binary bluetooth addresses as PINs.
This is not possible via dbus agent API. So this adds a plugin that
registers a pin-callback and forces the right pin for every
authentication request of wiimotes.
2011-07-14 17:25:05 +03:00
Marcel Holtmann
3f553a30ad Allow building with GLib 2.16 for now 2011-07-04 11:09:55 +02:00
Lucas De Marchi
c053eac034 build: Remove udevrules option
Use the new datafiles options instead.
2011-07-01 20:48:04 -07:00
Lucas De Marchi
9cec49b283 build: Rename configfiles option to datafiles
Instead of passing --[disable|enable]-configfiles, now we use
--[disable|enable]-datafiles as not all of the files are installed for
configuration but are rather data files.
2011-07-01 20:47:23 -07:00
Luiz Augusto von Dentz
3058efa787 Make use of g_slist_free_full when elements are dynamically-allocated
This avoid having to iterate twice in the list to free its elements.
2011-06-30 12:32:17 +03:00
Lukasz Rymanowski
cb60fce5fc Fix hid2hci compilation error
Do not compile hid2hci if udev is not present.
2011-06-28 10:53:32 +03:00
Kay Sievers
9fc7474d89 Move hid2hci to /lib/udev 2011-05-02 09:23:34 -07:00
Kay Sievers
94b0a8f405 Update hid2hci tool from udev codebase 2011-04-28 12:54:31 -07:00
Bruna Moreira
d0b675088a Remove deprecated attrib plugin
The attrib plugin is deprecated and it is not used anymore. Remove it
and all related configuration. Note that GATT utility (gatttool)
configuration item was moved to Makefile.tools and it is compiled when
--enable-tools is used in configure.
2011-04-01 16:43:11 +03:00
Anderson Lizardo
a3e9d397f0 Move GATT example server to a standalone plugin
The GATT example server was in the same plugin as the GATT client.
Moving it to a separate plugin will allow to easily disable it.
2011-03-30 19:19:29 +03:00
Szymon Janc
d812870321 Add D-Bus OOB plugin
A sample OOB plugin that directly exposes OOB functionality over D-Bus.
2011-03-27 22:58:13 +03:00
Waldemar Rymarkiewicz
f9dc0c0762 Add Sim Access Profile dummy driver
Add SAP dummy driver implementation and extend configure
with --with-sap=<driver>.
2011-03-23 14:57:45 +02:00