summaryrefslogtreecommitdiff
path: root/meta/lib/bblayers/templates/example.bb
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2017-07-25 15:37:17 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-08-09 09:24:03 +0100
commit2bd1dc287b8b0f7edac8c6fee076a70ebf7adf43 (patch)
tree1cdaecf15272b094e2694913ae636e180075e803 /meta/lib/bblayers/templates/example.bb
parent0a8ae997c782794b6ef32654cb245b496ab1de8e (diff)
downloadopenembedded-core-2bd1dc287b8b0f7edac8c6fee076a70ebf7adf43.tar.gz
openembedded-core-2bd1dc287b8b0f7edac8c6fee076a70ebf7adf43.tar.bz2
openembedded-core-2bd1dc287b8b0f7edac8c6fee076a70ebf7adf43.zip
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] Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/bblayers/templates/example.bb')
-rw-r--r--meta/lib/bblayers/templates/example.bb11
1 files changed, 11 insertions, 0 deletions
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 @@
+SUMMARY = "bitbake-layers recipe"
+DESCRIPTION = "Recipe created by bitbake-layers"
+LICENSE = "MIT"
+
+python do_build() {
+ bb.plain("***********************************************");
+ bb.plain("* *");
+ bb.plain("* Example recipe created by bitbake-layers *");
+ bb.plain("* *");
+ bb.plain("***********************************************");
+}