diff options
| author | Manuel Traut <manut@linutronix.de> | 2016-01-12 12:00:25 +0100 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2016-01-12 12:00:25 +0100 |
| commit | 498830a97001a793c12aef3d011c5374a05b4a83 (patch) | |
| tree | 2c7e64e9ddb6556e22d21393f10cddc5bd990952 /examples/yocto/meta-mini/recipes-hello/hellocm | |
| parent | c99be12a9a7b6270e9b3db4c5f96cb8e8eb0c7c1 (diff) | |
mv yocto examples into example dir
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'examples/yocto/meta-mini/recipes-hello/hellocm')
4 files changed, 25 insertions, 0 deletions
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 Binary files differnew file mode 100644 index 0000000..1292ea5 --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 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 <stdio.h> + +int main (int argc, char **argv) +{ + printf ("hello yocto world\n"); + + return 0; +} diff --git a/examples/yocto/meta-mini/recipes-hello/hellocm/hellocm_0.1.bb b/examples/yocto/meta-mini/recipes-hello/hellocm/hellocm_0.1.bb new file mode 100644 index 0000000..c87bdec --- /dev/null +++ b/examples/yocto/meta-mini/recipes-hello/hellocm/hellocm_0.1.bb @@ -0,0 +1,10 @@ +DESCRIPTION = "hellocm cmake example" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +SECTION = "examples" +SRC_URI = "file://${BPN}-${PV}.tar.bz2;md5=123" +inherit cmake + +#export EXTRA_OECMAKE = '-DBLUBB="bla" + +FILES_{PN} = "${bindir}/hellocm" |
