aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuro Bystricky <juro.bystricky@intel.com>2017-03-06 14:16:32 -0800
committerJuro Bystricky <juro.bystricky@intel.com>2017-03-06 14:16:32 -0800
commit99fdd89220d75be636122442566b8117d9f7b436 (patch)
tree50c2f8b921650fed9c5a988fccae2d05f11f28bb
parentb0a4c5405775aafb22e7d1fb4bc4137b408418bc (diff)
downloadmeta-zephyr-99fdd89220d75be636122442566b8117d9f7b436.tar.gz
meta-zephyr-99fdd89220d75be636122442566b8117d9f7b436.tar.bz2
meta-zephyr-99fdd89220d75be636122442566b8117d9f7b436.zip
zephyr-ipm.bb: Zephyr sample for IPM
The recipe to build IPM sample demonstrating messaging between ARC core and IAMCU core on Arduino 101. The recipe can build two different images, based on BOARD. Useful to demonstrate multiconfig. Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-ipm.bb24
1 files changed, 24 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/zephyr-ipm.bb b/recipes-kernel/zephyr-kernel/zephyr-ipm.bb
new file mode 100644
index 0000000..2f158c8
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-ipm.bb
@@ -0,0 +1,24 @@
+require zephyr-kernel.inc
+require zephyr-kernel-common.inc
+inherit deploy
+
+SRC_DIR_IPM_arduino-101-sss = "samples/ipm/ipm_demo_arc"
+SRC_DIR_IPM_arduino-101 = "samples/ipm/ipm_demo_lmt"
+
+COMPATIBLE_MACHINE = "(arduino-101-sss|arduino-101)"
+
+ZEPHYR_SRC_DIR = "${S}/${SRC_DIR_IPM}/src"
+
+ZEPHYR_BASE = "${S}"
+
+do_compile () {
+ cd ${SRC_DIR_IPM}
+ oe_runmake ${ZEPHYR_MAKE_ARGS}
+}
+
+do_deploy () {
+ install -D ${SRC_DIR_IPM}/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
+ install -D ${SRC_DIR_IPM}/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
+}
+
+addtask deploy after do_compile