zephyr-peripheral-esp.bb: GATT/ESP BLE sample code

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
This commit is contained in:
Juro Bystricky
2017-03-08 15:44:02 -08:00
parent 5dff4e936e
commit 4280a8d4e3

View File

@@ -0,0 +1,19 @@
require zephyr-kernel.inc
require zephyr-kernel-common.inc
inherit deploy
ZEPHYR_SAMPLE_NAME="samples/bluetooth/peripheral_esp"
ZEPHYR_SRC_DIR = "${S}/${ZEPHYR_SAMPLE_NAME}"
ZEPHYR_BASE = "${S}"
do_compile () {
cd ${ZEPHYR_SRC_DIR}
oe_runmake ${ZEPHYR_MAKE_ARGS}
}
do_deploy () {
install -D ${ZEPHYR_SAMPLE_NAME}/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
install -D ${ZEPHYR_SAMPLE_NAME}/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
}
addtask deploy after do_compile