From 498830a97001a793c12aef3d011c5374a05b4a83 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Tue, 12 Jan 2016 12:00:25 +0100 Subject: mv yocto examples into example dir Signed-off-by: Manuel Traut --- .../recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 | Bin 0 -> 713 bytes .../hellocm/files/hellocm-0.1/CMakeLists.txt | 7 +++++++ .../recipes-hello/hellocm/files/hellocm-0.1/hello.c | 8 ++++++++ 3 files changed, 15 insertions(+) create mode 100644 examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 create mode 100644 examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/CMakeLists.txt create mode 100644 examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/hello.c (limited to 'examples/yocto/meta-mini/recipes-hello/hellocm/files') diff --git a/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 b/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 new file mode 100644 index 0000000..1292ea5 Binary files /dev/null and b/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 differ diff --git a/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/CMakeLists.txt b/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/CMakeLists.txt new file mode 100644 index 0000000..a811deb --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/CMakeLists.txt @@ -0,0 +1,7 @@ +CMAKE_MINIMUM_REQUIRED (VERSION 2.6) +PROJECT (hellocm) +SET (CPACK_PACKAGE_VERSION_MAJOR "0") +SET (CPACK_PACKAGE_VERSION_MINOR "1") +SET (src ${CMAKE_CURRENT_SOURCE_DIR}/hello.c) +ADD_EXECUTABLE (hellocm ${src}) +INSTALL(TARGETS hellocm RUNTIME DESTINATION bin LIBRARY DESTINATION lib) diff --git a/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/hello.c b/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/hello.c new file mode 100644 index 0000000..f202e2f --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1/hello.c @@ -0,0 +1,8 @@ +#include + +int main (int argc, char **argv) +{ + printf ("hello yocto world\n"); + + return 0; +} -- cgit v1.2.3