yocto-layer: add 'layer' template data
Add a 'layer' target containing all the data that will be used to generate a generic yocto layer. (From meta-yocto rev: 198a85f61ebd6435830285b2a9b1b925aea6779e) Signed-off-by: Tom Zanussi <tom.zanussi@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
bd1cb7b36d
commit
93d37a261b
|
@ -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.
|
|
@ -0,0 +1,64 @@
|
|||
This README file contains information on the contents of the
|
||||
{{=layer_name}} 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 {{=layer_name}} 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 {{=layer_name}} layer to your build
|
||||
II. Misc
|
||||
|
||||
|
||||
I. Adding the {{=layer_name}} layer to your build
|
||||
=================================================
|
||||
|
||||
--- replace with specific instructions for the {{=layer_name}} layer ---
|
||||
|
||||
In order to use this layer, you need to make the build system aware of
|
||||
it.
|
||||
|
||||
Assuming the {{=layer_name}} 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 {{=layer_name}} 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-{{=layer_name}} \
|
||||
"
|
||||
|
||||
|
||||
II. Misc
|
||||
========
|
||||
|
||||
--- replace with specific information about the {{=layer_name}} layer ---
|
|
@ -0,0 +1,10 @@
|
|||
# We have a conf and classes directory, add to BBPATH
|
||||
BBPATH := "${BBPATH}:${LAYERDIR}"
|
||||
|
||||
# We have a recipes directory, add to BBFILES
|
||||
BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb \
|
||||
${LAYERDIR}/recipes-*/*/*.bbappend"
|
||||
|
||||
BBFILE_COLLECTIONS += "{{=layer_name}}"
|
||||
BBFILE_PATTERN_{{=layer_name}} := "^${LAYERDIR}/"
|
||||
BBFILE_PRIORITY_{{=layer_name}} = "{{=layer_priority}}"
|
|
@ -0,0 +1,14 @@
|
|||
{{ input type:"edit" name:"layer_priority" prio:"20" msg:"Please enter the layer priority you'd like to use for the layer:" default:"6"}}
|
||||
|
||||
{{ input type:"boolean" name:"create_example_recipe" prio:"20" msg:"Would you like to have an example recipe created? (y/n)" default:"n"}}
|
||||
|
||||
{{ if create_example_recipe == "y": }}
|
||||
{{ input type:"edit" name:"example_recipe_name" prio:"20" msg:"Please enter the name you'd like to use for your example recipe:" default:"example"}}
|
||||
|
||||
{{ input type:"boolean" name:"create_example_bbappend" prio:"20" msg:"Would you like to have an example bbappend file created? (y/n)" default:"n"}}
|
||||
|
||||
{{ if create_example_bbappend == "y": }}
|
||||
{{ input type:"edit" name:"example_bbappend_name" prio:"20" msg:"Please enter the name you'd like to use for your bbappend file:" default:"example"}}
|
||||
|
||||
{{ if create_example_bbappend == "y": }}
|
||||
{{ input type:"edit" name:"example_bbappend_version" prio:"20" msg:"Please enter the version number you'd like to use for your bbappend file (this should match the recipe you're appending to):" default:"0.1"}}
|
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# This is a non-functional placeholder file, here for example purposes
|
||||
# only.
|
||||
#
|
||||
# If you had a patch for your recipe, you'd put it in this directory
|
||||
# and reference it from your recipe's SRC_URI:
|
||||
#
|
||||
# SRC_URI += "file://example.patch"
|
||||
#
|
||||
# Note that you could also rename the directory containing this patch
|
||||
# to remove the version number or simply rename it 'files'. Doing so
|
||||
# allows you to use the same directory for multiple recipes.
|
|
@ -0,0 +1,8 @@
|
|||
FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:"
|
||||
|
||||
#
|
||||
# This .bbappend doesn't yet do anything - replace this text with
|
||||
# modifications to the example_0.1.bb recipe, or whatever recipe it is
|
||||
# that you want to modify with this .bbappend (make sure you change
|
||||
# the recipe name (PN) and version (PV) to match).
|
||||
#
|
|
@ -0,0 +1,12 @@
|
|||
#
|
||||
# This is a non-functional placeholder file, here for example purposes
|
||||
# only.
|
||||
#
|
||||
# If you had a patch for your recipe, you'd put it in this directory
|
||||
# and reference it from your recipe's SRC_URI:
|
||||
#
|
||||
# SRC_URI += "file://example.patch"
|
||||
#
|
||||
# Note that you could also rename the directory containing this patch
|
||||
# to remove the version number or simply rename it 'files'. Doing so
|
||||
# allows you to use the same directory for multiple recipes.
|
|
@ -0,0 +1,8 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
printf("Hello World!\n");
|
||||
|
||||
return 0;
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
#
|
||||
# This file was derived from the 'Hello World!' example recipe in the
|
||||
# Yocto Project Development Manual.
|
||||
#
|
||||
|
||||
DESCRIPTION = "Simple helloworld application"
|
||||
SECTION = "examples"
|
||||
LICENSE = "MIT"
|
||||
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI = "file://helloworld.c"
|
||||
|
||||
S = "${WORKDIR}"
|
||||
|
||||
do_compile() {
|
||||
${CC} helloworld.c -o helloworld
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 helloworld ${D}${bindir}
|
||||
}
|
Loading…
Reference in New Issue