From 2d028986e7239397074f6e1550744f7ffc9f9f41 Mon Sep 17 00:00:00 2001 From: Juro Bystricky Date: Mon, 6 Mar 2017 14:20:44 -0800 Subject: [PATCH] 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 --- .../zephyr-kernel/zephyr-hci-uart.bb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb 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