3d498dd10c
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> |
||
---|---|---|
.. | ||
src | ||
Makefile | ||
README.rst | ||
prj.conf | ||
prj_dbg.conf | ||
sample.yaml |
README.rst
.. _bluetooth-ipsp-sample: Bluetooth: IPSP Sample ###################### Overview ******** Application demonstrating the IPSP (Internet Protocol Support Profile) Node role. IPSP is the Bluetooth profile that underneath utilizes 6LoWPAN, i.e. gives you IPv6 connectivity over BLE. Building and Running ******************** This sample can be found under :file:`samples/bluetooth/ipsp` in the Zephyr tree. Testing with a Linux host ========================= To test IPSP please take a look at samples/net/README, in addition to running echo-client you must enable 6LowPAN module in Linux with the following commands: .. code-block:: console $ modprobe bluetooth_6lowpan $ echo 1 > /sys/kernel/debug/bluetooth/6lowpan_enable Then to connect: .. code-block:: console $ echo "connect <bdaddr> <type>" > /sys/kernel/debug/bluetooth/6lowpan_control Once connected a dedicated interface will be created, usually bt0, which can then be used as following: .. code-block:: console $ echo-client -i bt0 <ip>