diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-07-25 15:37:17 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-08-09 09:24:16 +0100 |
commit | 884f74250d0ccaa6ebeaf2b3d1d17179b1dcc09b (patch) | |
tree | 8cf121f34e9465f25025a8dbe15657b8349365f1 /meta/lib/bblayers/templates | |
parent | 1df5a58b12c5f6d0e1492e20ddea81af5ec2221e (diff) | |
download | poky-884f74250d0ccaa6ebeaf2b3d1d17179b1dcc09b.tar.gz |
action: new bitbake-layer plugin to create a simple layer
Though the script bitbake-layers (from the bitbake project), this plugin
creates a simple layer with a example recipe, the latter with a single task
(do_build). Layer's license and priority is MIT and 6, respectively. Example
recipe and layer's priority can be specified through the command line.
[YOCTO #11567]
(From OE-Core rev: 2bd1dc287b8b0f7edac8c6fee076a70ebf7adf43)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/bblayers/templates')
-rw-r--r-- | meta/lib/bblayers/templates/README | 41 | ||||
-rw-r--r-- | meta/lib/bblayers/templates/example.bb | 11 | ||||
-rw-r--r-- | meta/lib/bblayers/templates/layer.conf | 10 |
3 files changed, 62 insertions, 0 deletions
diff --git a/meta/lib/bblayers/templates/README b/meta/lib/bblayers/templates/README new file mode 100644 index 0000000000..5a77f8d347 --- /dev/null +++ b/meta/lib/bblayers/templates/README | |||
@@ -0,0 +1,41 @@ | |||
1 | This README file contains information on the contents of the %s layer. | ||
2 | |||
3 | Please see the corresponding sections below for details. | ||
4 | |||
5 | Dependencies | ||
6 | ============ | ||
7 | |||
8 | URI: <first dependency> | ||
9 | branch: <branch name> | ||
10 | |||
11 | URI: <second dependency> | ||
12 | branch: <branch name> | ||
13 | |||
14 | . | ||
15 | . | ||
16 | . | ||
17 | |||
18 | Patches | ||
19 | ======= | ||
20 | |||
21 | Please submit any patches against the %s layer to the xxxx mailing list (xxxx@zzzz.org) | ||
22 | and cc: the maintainer: | ||
23 | |||
24 | Maintainer: XXX YYYYYY <xxx.yyyyyy@zzzzz.com> | ||
25 | |||
26 | Table of Contents | ||
27 | ================= | ||
28 | |||
29 | I. Adding the %s layer to your build | ||
30 | II. Misc | ||
31 | |||
32 | |||
33 | I. Adding the %s layer to your build | ||
34 | ================================================= | ||
35 | |||
36 | Run 'bitbake-layers add-layer %s' | ||
37 | |||
38 | II. Misc | ||
39 | ======== | ||
40 | |||
41 | --- replace with specific information about the %s layer --- | ||
diff --git a/meta/lib/bblayers/templates/example.bb b/meta/lib/bblayers/templates/example.bb new file mode 100644 index 0000000000..c4b873d593 --- /dev/null +++ b/meta/lib/bblayers/templates/example.bb | |||
@@ -0,0 +1,11 @@ | |||
1 | SUMMARY = "bitbake-layers recipe" | ||
2 | DESCRIPTION = "Recipe created by bitbake-layers" | ||
3 | LICENSE = "MIT" | ||
4 | |||
5 | python do_build() { | ||
6 | bb.plain("***********************************************"); | ||
7 | bb.plain("* *"); | ||
8 | bb.plain("* Example recipe created by bitbake-layers *"); | ||
9 | bb.plain("* *"); | ||
10 | bb.plain("***********************************************"); | ||
11 | } | ||
diff --git a/meta/lib/bblayers/templates/layer.conf b/meta/lib/bblayers/templates/layer.conf new file mode 100644 index 0000000000..e0d9ba2fde --- /dev/null +++ b/meta/lib/bblayers/templates/layer.conf | |||
@@ -0,0 +1,10 @@ | |||
1 | # We have a conf and classes directory, add to BBPATH | ||
2 | BBPATH .= ":${LAYERDIR}" | ||
3 | |||
4 | # We have recipes-* directories, add to BBFILES | ||
5 | BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \\ | ||
6 | ${LAYERDIR}/recipes-*/*/*.bbappend" | ||
7 | |||
8 | BBFILE_COLLECTIONS += "%s" | ||
9 | BBFILE_PATTERN_%s = "^${LAYERDIR}/" | ||
10 | BBFILE_PRIORITY_%s = "%s" | ||