From 9503b79cb0ba13b40eb193961efe04f0408469cc Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Fri, 29 Aug 2014 15:59:09 +0200 Subject: yocto: add more recipe examples 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 ++++++++ .../meta-linutronix/recipes-hello/hellocm/hellocm_0.1.bb | 10 ++++++++++ 4 files changed, 25 insertions(+) create mode 100644 distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 create mode 100644 distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1/CMakeLists.txt create mode 100644 distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1/hello.c create mode 100644 distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/hellocm_0.1.bb (limited to 'distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm') 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 new file mode 100644 index 0000000..1292ea5 Binary files /dev/null and b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/files/hellocm-0.1.tar.bz2 differ 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 + +int main (int argc, char **argv) +{ + printf ("hello yocto world\n"); + + return 0; +} diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/hellocm_0.1.bb b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hellocm/hellocm_0.1.bb new file mode 100644 index 0000000..49c8627 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/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" +inherit cmake + +#export EXTRA_OECMAKE = '-DBLUBB="bla" + +FILES_{PN} = "${bindir}/hellocm" -- cgit v1.2.3