diff options
| author | Manuel Traut <manut@linutronix.de> | 2014-08-29 15:30:03 +0200 |
|---|---|---|
| committer | Manuel Traut <manut@linutronix.de> | 2014-08-29 15:30:03 +0200 |
| commit | 9b96af402f8ed256c5db1e8c48da6c1d5f5f92d8 (patch) | |
| tree | 24770583ea9055b84b33e284d170d5c6588ba164 /distribution/yocto-advanced/poky/meta-linutronix | |
| parent | 5cb6ad7b8cfd08d1455880adc76c6e0c851d433e (diff) | |
yocto: add autotools hello world example
Signed-off-by: Manuel Traut <manut@linutronix.de>
Diffstat (limited to 'distribution/yocto-advanced/poky/meta-linutronix')
10 files changed, 46 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/autohello_1.0.bb b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/autohello_1.0.bb new file mode 100644 index 0000000..e9c79f9 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/autohello_1.0.bb @@ -0,0 +1,9 @@ +DESCRIPTION = "GNU Helloworld application" +SECTION = "examples" +LICENSE = "GPLv2+" +LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" +PR = "r0" + +SRC_URI = "file://autohello-${PV}.tar.gz" +SRC_URI[md5sum] = "4bfc9bed4d5d67a266d93e99e5883211" +inherit autotools diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello-1.0.tar.gz b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello-1.0.tar.gz Binary files differnew file mode 100644 index 0000000..424b53c --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello-1.0.tar.gz diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/AUTHORS b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/AUTHORS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/AUTHORS diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/ChangeLog b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/ChangeLog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/ChangeLog diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/Makefile.am b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/Makefile.am new file mode 100644 index 0000000..1b344bc --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/Makefile.am @@ -0,0 +1,2 @@ +bin_PROGRAMS = autohello +autohello_SOURCES = autohello.c diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/NEWS b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/NEWS new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/NEWS diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/README b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/README new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/README diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/autogen.sh b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/autogen.sh new file mode 100755 index 0000000..9088512 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/autogen.sh @@ -0,0 +1,2 @@ +#!/bin/bash +autoreconf -sif diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/autohello.c b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/autohello.c new file mode 100644 index 0000000..d035085 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/autohello.c @@ -0,0 +1,12 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <stdio.h> + +int main (int argc, char **argv) +{ + printf ("autohello poky world\n"); + + return 0; +} diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/configure.ac b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/configure.ac new file mode 100644 index 0000000..1ac5db3 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/autohello/files/autohello/configure.ac @@ -0,0 +1,21 @@ +AC_PREREQ([2.69]) +AC_INIT([autohello], [1.0], [maunt@linutronix.de]) +AM_INIT_AUTOMAKE([silent-rules]) +AC_CONFIG_SRCDIR([autohello.c]) +AC_CONFIG_HEADERS([config.h]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_INSTALL +AM_PROG_CC_C_O + +# Checks for libraries. + +# Checks for header files. + +# Checks for typedefs, structures, and compiler characteristics. + +# Checks for library functions. + +AC_CONFIG_FILES([Makefile]) +AC_OUTPUT |
