zephyr/samples/bluetooth
Inaky Perez-Gonzalez 3d498dd10c build: workaround build bug in tests
When an app uses a construct such as:

obj-y = main.o ../../../../samples/bluetooth/gatt/hrs.o

in its makefile, it causes said object module to be built in the
source tree, not in the object tree.

When building massively parallel, this usually resuls on the files
getting corrupted, leading to bugs such as:

https://jira.zephyrproject.org/browse/ZEP-2316
https://jira.zephyrproject.org/browse/ZEP-2317

src/../../../../samples/bluetooth/gatt/.gap.o.cmd:3: warning: NUL character seen; rest of line ignored
src/../../../../samples/bluetooth/gatt/.gap.o.cmd:4: warning: NUL character seen; rest of line ignored
src/../../../../samples/bluetooth/gatt/.gap.o.cmd:5: *** missing separator.  Stop.

as multiple build are trying to touch the same file in the source tree
and of course, race and causes a build bug.

We have known about this issue for a long time, but it requires
modifications in the build system that there is no time to tackle.

A suggested workaround is to include the source files into a local .c
file, so this is what this patch does, to remove the random noise.

Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
2017-07-27 14:09:40 -04:00
..
beacon tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
central tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
central_hr tests: do not exclude quark_d2000_crb 2017-06-27 17:44:23 -04:00
eddystone tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
gatt Bluetooth: GATT Introduce BT_GATT_CCC_MAX helper define 2017-07-04 17:30:40 +03:00
handsfree tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
hci_uart Bluetooth: hci_uart: Set the UART TX size correctly 2017-07-05 16:59:31 +02:00
hci_usb samples: mark samples that require usb_device support 2017-07-07 09:01:01 -05:00
ipsp build: workaround build bug in tests 2017-07-27 14:09:40 -04:00
mesh Bluetooth: samples/mesh: Update generic nRF51 16k configuration 2017-07-27 13:51:34 -04:00
mesh_demo samples: mesh: build sample where they fit 2017-07-27 07:47:53 -04:00
peripheral build: workaround build bug in tests 2017-07-27 14:09:40 -04:00
peripheral_csc build: workaround build bug in tests 2017-07-27 14:09:40 -04:00
peripheral_dis build: workaround build bug in tests 2017-07-27 14:09:40 -04:00
peripheral_esp build: workaround build bug in tests 2017-07-27 14:09:40 -04:00
peripheral_hids build: workaround build bug in tests 2017-07-27 14:09:40 -04:00
peripheral_hr build: workaround build bug in tests 2017-07-27 14:09:40 -04:00
peripheral_sc_only tests: remove testcase.ini files 2017-06-21 20:56:53 -04:00
scan_adv Bluetooth: samples: scan_adv: Select BROADCASTER and OBSERVER 2017-06-30 13:42:33 +03:00
bluetooth.rst doc: spelling fixes in samples/ and boards/ 2017-06-12 18:28:08 -04:00