diff options
| author | Manuel Traut <manut@linutronix.de> | 2014-08-29 15:59:09 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2014-08-29 15:59:09 +0200 |
| commit | 9503b79cb0ba13b40eb193961efe04f0408469cc (patch) | |
| tree | 9789e59ea4f33bff7d606976e5720e9f64b84f0f /distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files | |
| parent | 9b96af402f8ed256c5db1e8c48da6c1d5f5f92d8 (diff) | |
yocto: add more recipe examples
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files')
3 files changed, 15 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 Binary files differnew file mode 100644 index 0000000..1292ea5 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1/CMakeLists.txt b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1/CMakeLists.txt new file mode 100644 index 0000000..a811deb --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/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/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1/hello.c b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1/hello.c new file mode 100644 index 0000000..f202e2f --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main (int argc, char **argv) +{ + printf ("hello yocto world\n"); + + return 0; +} |
