aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-03-08 15:44:02 -0800
committerJuro Bystricky <juro.bystricky@intel.com>2017-03-17 09:33:56 -0700
commit4280a8d4e37ad898c5cca395219507e2d2dad1cb (patch)
tree84c75fa9a04553b0b496e324057de808f749264c
parent5dff4e936e319971a7ab0a1004fa9967f7158481 (diff)
downloadmeta-zephyr-4280a8d4e37ad898c5cca395219507e2d2dad1cb.tar.gz
meta-zephyr-4280a8d4e37ad898c5cca395219507e2d2dad1cb.tar.bz2
meta-zephyr-4280a8d4e37ad898c5cca395219507e2d2dad1cb.zip
zephyr-peripheral-esp.bb: GATT/ESP BLE sample code
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb19
1 files changed, 19 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb b/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
new file mode 100644
index 0000000..2ffe5ae
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-peripheral-esp.bb
@@ -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