mirror of
https://git.yoctoproject.org/meta-zephyr
synced 2026-09-12 18:49:30 +02:00
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>
This commit is contained in:
20
recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
Normal file
20
recipes-kernel/zephyr-kernel/zephyr-hci-uart.bb
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user