summaryrefslogtreecommitdiffstats
path: root/meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.pass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.pass')
-rw-r--r--meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.pass54
1 files changed, 54 insertions, 0 deletions
diff --git a/meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.pass b/meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.pass
new file mode 100644
index 0000000000..b8da16dfe5
--- /dev/null
+++ b/meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.pass
@@ -0,0 +1,54 @@
1From 5144d2ba1aa763312c047dd5f8901368cff79da6 Mon Sep 17 00:00:00 2001
2From: Daniela Plascencia <daniela.plascencia@linux.intel.com>
3Date: Thu, 23 Feb 2017 10:34:27 -0600
4Subject: [PATCH] meta: adding hello-yocto recipe
5
6This is a sample recipe
7
8Signed-off-by: Daniela Plascencia <daniela.plascencia@linux.intel.com>
9---
10 .../hello-world/hello-world/hello_world.c | 5 +++++
11 .../hello-world/hello-world_1.0.bb | 19 +++++++++++++++++++
12 2 files changed, 24 insertions(+)
13 create mode 100644 meta/recipes-devtools/hello-world/hello-world/hello_world.c
14 create mode 100644 meta/recipes-devtools/hello-world/hello-world_1.0.bb
15
16diff --git a/meta/recipes-devtools/hello-world/hello-world/hello_world.c b/meta/recipes-devtools/hello-world/hello-world/hello_world.c
17new file mode 100644
18index 0000000000..0d59f57d4c
19--- /dev/null
20+++ b/meta/recipes-devtools/hello-world/hello-world/hello_world.c
21@@ -0,0 +1,5 @@
22+#include <stdio.h>
23+
24+int main(){
25+ printf("Hello World\n");
26+}
27diff --git a/meta/recipes-devtools/hello-world/hello-world_1.0.bb b/meta/recipes-devtools/hello-world/hello-world_1.0.bb
28new file mode 100644
29index 0000000000..44d888c82a
30--- /dev/null
31+++ b/meta/recipes-devtools/hello-world/hello-world_1.0.bb
32@@ -0,0 +1,19 @@
33+SUMMARY = "This is a sample summary"
34+DESCRIPTION = "This is a sample description"
35+HOMEPAGE = "https://sample.com/this-is-a-sample"
36+LICENSE = "MIT"
37+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
38+
39+SRC_URI += "file://hello_world.c"
40+
41+SRC_URI[md5sum] = "4ee21e9dcc9b5b6012c23038734e1632"
42+SRC_URI[sha256sum] = "edef2bbde0fbf0d88232782a0eded323f483a0519d6fde9a3b1809056fd35f3e"
43+
44+do_compile(){
45+ ${CC} -o hello_world ../hello_world.c
46+}
47+
48+do_install(){
49+ install -d ${D}${bindir}
50+ install -m +x hello_world ${D}${bindir}/hello_world
51+}
52--
532.41.0
54