diff mbox series

[meta-zephyr,1/3] zephyr-kernel: Add synchronization sample recipe

Message ID 20220803133531.3823518-1-peter.hoyes@arm.com
State New
Headers show
Series [meta-zephyr,1/3] zephyr-kernel: Add synchronization sample recipe | expand

Commit Message

Peter Hoyes Aug. 3, 2022, 1:35 p.m. UTC
From: Peter Hoyes <Peter.Hoyes@arm.com>

The Zephyr documentation [1] lists 3 "classic samples" that "can be run
on any of the supported platforms": Hello World, Synchronization and
Dining Philosophers. meta-zephyr already includes the first two but not
synchronization so add a recipe for it.

[1] https://docs.zephyrproject.org/3.1.0/samples/classic.html

Signed-off-by: Peter Hoyes <Peter.Hoyes@arm.com>
 .../zephyr-kernel/zephyr-synchronization.bb               | 8 ++++++++
 1 file changed, 8 insertions(+)
 create mode 100644 meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
diff mbox series


diff --git a/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
new file mode 100644
index 0000000..4cb207d
--- /dev/null
+++ b/meta-zephyr-core/recipes-kernel/zephyr-kernel/zephyr-synchronization.bb
@@ -0,0 +1,8 @@ 
+SUMMARY = "Synchronization Zephyr Sample"
+DESCRIPTION = "A simple Zephyr application that demonstrates basic sanity of \
+the kernel. It demonstrates that kernel scheduling, communication and timing \
+operate correctly by printing a greeting to the console from two threads."
+include zephyr-sample.inc
+ZEPHYR_SRC_DIR = "${S}/samples/synchronization"