diff options
Diffstat (limited to 'meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.fail')
-rw-r--r-- | meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.fail | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.fail b/meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.fail new file mode 100644 index 0000000000..e14d644bb2 --- /dev/null +++ b/meta/lib/patchtest/selftest/files/TestMetadata.test_lic_files_chksum_presence.fail | |||
@@ -0,0 +1,53 @@ | |||
1 | From 66430e7c6fbd5187b66560909a510e136fed91c0 Mon Sep 17 00:00:00 2001 | ||
2 | From: Daniela Plascencia <daniela.plascencia@linux.intel.com> | ||
3 | Date: Thu, 23 Feb 2017 10:34:27 -0600 | ||
4 | Subject: [PATCH] meta: adding hello-yocto recipe | ||
5 | |||
6 | This is a sample recipe | ||
7 | |||
8 | Signed-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 | 18 ++++++++++++++++++ | ||
12 | 2 files changed, 23 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 | |||
16 | diff --git a/meta/recipes-devtools/hello-world/hello-world/hello_world.c b/meta/recipes-devtools/hello-world/hello-world/hello_world.c | ||
17 | new file mode 100644 | ||
18 | index 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 | +} | ||
27 | diff --git a/meta/recipes-devtools/hello-world/hello-world_1.0.bb b/meta/recipes-devtools/hello-world/hello-world_1.0.bb | ||
28 | new file mode 100644 | ||
29 | index 0000000000..3c990c108a | ||
30 | --- /dev/null | ||
31 | +++ b/meta/recipes-devtools/hello-world/hello-world_1.0.bb | ||
32 | @@ -0,0 +1,18 @@ | ||
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 | + | ||
38 | +SRC_URI += "file://hello_world.c" | ||
39 | + | ||
40 | +SRC_URI[md5sum] = "4ee21e9dcc9b5b6012c23038734e1632" | ||
41 | +SRC_URI[sha256sum] = "edef2bbde0fbf0d88232782a0eded323f483a0519d6fde9a3b1809056fd35f3e" | ||
42 | + | ||
43 | +do_compile(){ | ||
44 | + ${CC} -o hello_world ../hello_world.c | ||
45 | +} | ||
46 | + | ||
47 | +do_install(){ | ||
48 | + install -d ${D}${bindir} | ||
49 | + install -m +x hello_world ${D}${bindir}/hello_world | ||
50 | +} | ||
51 | -- | ||
52 | 2.41.0 | ||
53 | |||