diff options
Diffstat (limited to 'distribution/yocto-advanced/poky/meta-linutronix')
8 files changed, 205 insertions, 0 deletions
diff --git a/distribution/yocto-advanced/poky/meta-linutronix/COPYING.MIT b/distribution/yocto-advanced/poky/meta-linutronix/COPYING.MIT new file mode 100644 index 0000000..89de354 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/COPYING.MIT @@ -0,0 +1,17 @@ +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/distribution/yocto-advanced/poky/meta-linutronix/README b/distribution/yocto-advanced/poky/meta-linutronix/README new file mode 100644 index 0000000..c4fd764 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/README @@ -0,0 +1,64 @@ +This README file contains information on the contents of the +linutronix layer. + +Please see the corresponding sections below for details. + + +Dependencies +============ + +This layer depends on: + + URI: git://git.openembedded.org/bitbake + branch: master + + URI: git://git.openembedded.org/openembedded-core + layers: meta + branch: master + + URI: git://git.yoctoproject.org/xxxx + layers: xxxx + branch: master + + +Patches +======= + +Please submit any patches against the linutronix layer to the +xxxx mailing list (xxxx@zzzz.org) and cc: the maintainer: + +Maintainer: XXX YYYYYY <xxx.yyyyyy@zzzzz.com> + + +Table of Contents +================= + + I. Adding the linutronix layer to your build + II. Misc + + +I. Adding the linutronix layer to your build +================================================= + +--- replace with specific instructions for the linutronix layer --- + +In order to use this layer, you need to make the build system aware of +it. + +Assuming the linutronix layer exists at the top-level of your +yocto build tree, you can add it to the build system by adding the +location of the linutronix layer to bblayers.conf, along with any +other layers needed. e.g.: + + BBLAYERS ?= " \ + /path/to/yocto/meta \ + /path/to/yocto/meta-yocto \ + /path/to/yocto/meta-yocto-bsp \ + /path/to/yocto/meta-linutronix \ + " + + +II. Misc +======== + +--- replace with specific information about the linutronix layer --- diff --git a/distribution/yocto-advanced/poky/meta-linutronix/conf/distro/linutronix.conf b/distribution/yocto-advanced/poky/meta-linutronix/conf/distro/linutronix.conf new file mode 100644 index 0000000..3eb4fcb --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/conf/distro/linutronix.conf @@ -0,0 +1,11 @@ +DISTRO = "linutronix" +DISTRO_NAME = "linutronix 1.0 (for foo devices)" +DISTRO_VERSION = "1.0" +DISTRO_CODENAME = "bar" +SDK_VENDOR = "-linutronix" +SDK_VERSION := "${@'${DISTRO_VERSION}'}" +MAINTAINER = "Manuel Traut <manut@linutronix.de>" +TARGET_VENDOR = "-linutronix" +LOCALCONF_VERSION = "1" +LAYER_CONF_VERSION ?= "6" +DISTRO_FEATURES_append = " opengl" diff --git a/distribution/yocto-advanced/poky/meta-linutronix/conf/distro/lx.conf b/distribution/yocto-advanced/poky/meta-linutronix/conf/distro/lx.conf new file mode 100644 index 0000000..573fd97 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/conf/distro/lx.conf @@ -0,0 +1,75 @@ +DISTRO = "lx" +DISTRO_NAME = "LX (Yocto Project Reference Distro)" +DISTRO_VERSION = "1.6.1" +DISTRO_CODENAME = "bubu" +SDK_VENDOR = "-lxsdk" +SDK_VERSION := "${@'${DISTRO_VERSION}'}" + +MAINTAINER = "Manuel Traut <manut@linutronix.de>" + +TARGET_VENDOR = "-lx" + +LOCALCONF_VERSION = "1" +LAYER_CONF_VERSION ?= "6" + +DISTRO_FEATURES ?= "${DISTRO_FEATURES_DEFAULT} ${DISTRO_FEATURES_LIBC}" + +SDK_NAME = "${DISTRO}-${TCLIBC}-${SDK_ARCH}-${IMAGE_BASENAME}-${TUNE_PKGARCH}" +SDKPATH = "/opt/${DISTRO}/${SDK_VERSION}" + +TCLIBCAPPEND = "" + +PREMIRRORS ??= "\ +bzr://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +cvs://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +git://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +hg://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +osc://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +p4://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +svk://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +svn://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" + +MIRRORS =+ "\ +ftp://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +http://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n \ +https://.*/.* http://downloads.yoctoproject.org/mirror/sources/ \n" + +# The CONNECTIVITY_CHECK_URI's are used to test whether we can succesfully +# fetch from the network (and warn you if not). To disable the test set +# the variable to be empty. +# Git example url: git://git.yoctoproject.org/yocto-firewall-test;protocol=git;rev=HEAD + +CONNECTIVITY_CHECK_URIS ?= " \ + https://eula-downloads.yoctoproject.org/index.php \ + http://bugzilla.yoctoproject.org/report.cgi" + +SANITY_TESTED_DISTROS ?= " \ + Poky-1.4 \n \ + Poky-1.5 \n \ + Poky-1.6 \n \ + Ubuntu-12.04 \n \ + Ubuntu-13.10 \n \ + Ubuntu-14.04 \n \ + Fedora-19 \n \ + Fedora-20 \n \ + CentOS-6.4 \n \ + CentOS-6.5 \n \ + Debian-7.0 \n \ + Debian-7.1 \n \ + Debian-7.2 \n \ + Debian-7.3 \n \ + Debian-7.4 \n \ + SUSE-LINUX-12.2 \n \ + openSUSE-project-12.3 \n \ + openSUSE-project-13.1 \n \ + " + +# Default hash policy for distro +BB_SIGNATURE_HANDLER ?= 'OEBasicHash' +# +# OELAYOUT_ABI allows us to notify users when the format of TMPDIR changes in +# an incompatible way. Such changes should usually be detailed in the commit +# that breaks the format and have been previously discussed on the mailing list +# with general agreement from the core team. +# +OELAYOUT_ABI = "8" diff --git a/distribution/yocto-advanced/poky/meta-linutronix/conf/layer.conf b/distribution/yocto-advanced/poky/meta-linutronix/conf/layer.conf new file mode 100644 index 0000000..a453979 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/conf/layer.conf @@ -0,0 +1,10 @@ +# We have a conf and classes directory, add to BBPATH +BBPATH .= ":${LAYERDIR}" + +# We have recipes-* directories, add to BBFILES +BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + +BBFILE_COLLECTIONS += "linutronix" +BBFILE_PATTERN_linutronix = "^${LAYERDIR}/" +BBFILE_PRIORITY_linutronix = "6" diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linutronix-image/linutronix-image.bb b/distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linutronix-image/linutronix-image.bb new file mode 100644 index 0000000..825edca --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-bsp/linutronix-image/linutronix-image.bb @@ -0,0 +1,2 @@ +IMAGE_INSTALL += "openssh" +inherit core-image diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/files/hello.c b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/files/hello.c new file mode 100644 index 0000000..b182eef --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/files/hello.c @@ -0,0 +1,8 @@ +#include <stdio.h> + +int main (int argc, char **argv) +{ + printf("Hello World - DEUTA\n"); + + return 0; +} diff --git a/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/hello.bb b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/hello.bb new file mode 100644 index 0000000..0fa88f6 --- /dev/null +++ b/distribution/yocto-advanced/poky/meta-linutronix/recipes-hello/hello/hello.bb @@ -0,0 +1,18 @@ +DESCRIPTION = "Simple helloworld application" +SECTION = "examples" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" +PR = "r0" + +SRC_URI = "file://hello.c" + +S = "${WORKDIR}" + +do_compile() { + ${CC} hello.c -o hello +} + +do_install() { + install -d ${D}${bindir} + install -m 0755 hello ${D}${bindir} +} |
