mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

Copy the core components of the patchtest-oe repo into meta/lib/patchtest in oe-core. (From OE-Core rev: 257f64f4e4414b78981104aec132b067beb5a92a) Signed-off-by: Trevor Gamblin <tgamblin@baylibre.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
From 0cd2fed12ce4b7b071edde12aec4481ad7a6f107 Mon Sep 17 00:00:00 2001
|
|
From: Daniela Plascencia <daniela.plascencia@linux.intel.com>
|
|
Date: Thu, 23 Feb 2017 10:34:27 -0600
|
|
Subject: [PATCH] meta: adding hello-yocto recipe
|
|
|
|
This is a sample recipe
|
|
|
|
Signed-off-by: Daniela Plascencia <daniela.plascencia@linux.intel.com>
|
|
---
|
|
.../hello-world/hello-world/hello_world.c | 5 +++++
|
|
meta/recipes-devtools/hello-world/hello-world_1.0.bb | 15 +++++++++++++++
|
|
2 files changed, 20 insertions(+)
|
|
create mode 100644 meta/recipes-devtools/hello-world/hello-world/hello_world.c
|
|
create mode 100644 meta/recipes-devtools/hello-world/hello-world_1.0.bb
|
|
|
|
diff --git a/meta/recipes-devtools/hello-world/hello-world/hello_world.c b/meta/recipes-devtools/hello-world/hello-world/hello_world.c
|
|
new file mode 100644
|
|
index 0000000000..0d59f57d4c
|
|
--- /dev/null
|
|
+++ b/meta/recipes-devtools/hello-world/hello-world/hello_world.c
|
|
@@ -0,0 +1,5 @@
|
|
+#include <stdio.h>
|
|
+
|
|
+int main(){
|
|
+ printf("Hello World\n");
|
|
+}
|
|
diff --git a/meta/recipes-devtools/hello-world/hello-world_1.0.bb b/meta/recipes-devtools/hello-world/hello-world_1.0.bb
|
|
new file mode 100644
|
|
index 0000000000..c54283eece
|
|
--- /dev/null
|
|
+++ b/meta/recipes-devtools/hello-world/hello-world_1.0.bb
|
|
@@ -0,0 +1,15 @@
|
|
+SUMMARY = "This is a sample summary"
|
|
+DESCRIPTION = "This is a sample description"
|
|
+HOMEPAGE = "https://sample.com/this-is-a-sample"
|
|
+LICENSE = "CLOSED"
|
|
+
|
|
+SRC_URI += "file://hello_world.c"
|
|
+
|
|
+do_compile(){
|
|
+ ${CC} -o hello_world ../hello_world.c
|
|
+}
|
|
+
|
|
+do_install(){
|
|
+ install -d ${D}${bindir}
|
|
+ install -m +x hello_world ${D}${bindir}/hello_world
|
|
+}
|
|
--
|
|
2.11.0
|