aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNaveen Saini <naveen.kumar.saini@intel.com>2019-12-02 19:08:40 +0800
committerNaveen Saini <naveen.kumar.saini@intel.com>2019-12-09 13:08:38 +0800
commit396aafbd9973c026dceb89044a138e03fdeab8d9 (patch)
tree16937a15d9bedec6af7bc240bc919027eee4818a
parent6d426f08d58fc586e9907b9231f20517b93d6e2f (diff)
downloadmeta-zephyr-396aafbd9973c026dceb89044a138e03fdeab8d9.tar.gz
meta-zephyr-396aafbd9973c026dceb89044a138e03fdeab8d9.tar.bz2
meta-zephyr-396aafbd9973c026dceb89044a138e03fdeab8d9.zip
zephyr-helloworld: add
Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
-rw-r--r--recipes-kernel/zephyr-kernel/zephyr-helloworld.bb18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
new file mode 100644
index 0000000..8900bfd
--- /dev/null
+++ b/recipes-kernel/zephyr-kernel/zephyr-helloworld.bb
@@ -0,0 +1,18 @@
+require zephyr-kernel.inc
+require zephyr-kernel-common.inc
+inherit deploy
+
+ZEPHYR_SRC_DIR = "${S}/samples/hello_world"
+ZEPHYR_BASE = "${S}"
+
+do_compile () {
+ cd ${ZEPHYR_SRC_DIR}
+ oe_runmake ${ZEPHYR_MAKE_ARGS}
+}
+
+do_deploy () {
+ install -D samples/hello_world/outdir/${BOARD}/zephyr.elf ${DEPLOYDIR}/${PN}.elf
+ install -D samples/hello_world/outdir/${BOARD}/zephyr.bin ${DEPLOYDIR}/${PN}.bin
+}
+
+addtask deploy after do_compile