Signed-off-by: Naveen Saini <[email protected]>
---
 .../zephyr-kernel/zephyr-helloworld.bb         | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 recipes-kernel/zephyr-kernel/zephyr-helloworld.bb

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
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#47490): https://lists.yoctoproject.org/g/yocto/message/47490
Mute This Topic: https://lists.yoctoproject.org/mt/64687736/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to