aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-03-06 14:20:44 -0800
committerJuro Bystricky <juro.bystricky@intel.com>2017-03-06 14:20:44 -0800
commit2d028986e7239397074f6e1550744f7ffc9f9f41 (patch)
tree347d95f5bc1c9e46c06340cb776b555befdf6873
parent99fdd89220d75be636122442566b8117d9f7b436 (diff)
downloadmeta-zephyr-2d028986e7239397074f6e1550744f7ffc9f9f41.tar.gz
meta-zephyr-2d028986e7239397074f6e1550744f7ffc9f9f41.tar.bz2
meta-zephyr-2d028986e7239397074f6e1550744f7ffc9f9f41.zip
zephyr-hci-uart.bb: Zephyr BLE stack
Builds an image for Arduino 101 board needed to be flashed for its nRF51 Bluetooth LE controller. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb b/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
new file mode 100644
index 0000000..b70542a
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
@@ -0,0 +1,20 @@
+require zephyr-kernel.inc
+require zephyr-kernel-common.inc
+inherit deploy
+
+COMPATIBLE_MACHINE = "(arduino-101-ble)"
+
+ZEPHYR_SRC_DIR = "${S}/samples/bluetooth/hci_uart"
+ZEPHYR_BASE = "${S}"
+
+do_compile () {
+ cd ${ZEPHYR_SRC_DIR}
+ oe_runmake ${ZEPHYR_MAKE_ARGS}
+}
+
+do_deploy () {
+ install -D samples/bluetooth/hci_uart/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
+ install -D samples/bluetooth/hci_uart/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
+}
+
+addtask deploy after do_compile