public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: Jan Kiszka <jan.kiszka@siemens.com>
To: isar-users <isar-users@googlegroups.com>
Subject: [PATCH] Factor out meta-examples
Date: Wed, 24 Jan 2018 08:34:40 +0100	[thread overview]
Message-ID: <fd3ce1b5-f8c8-364f-1cf7-9ae270389f3f@siemens.com> (raw)

From: Jan Kiszka <jan.kiszka@siemens.com>

Move recipes that have exemplary character (currently everything under
recipes-app) into a separate layer that can easily be dropped when
building real images. This also helps to ensure that no assumptions
about customizations and core recipes sharing the same layer sneak in
again.

The meta-isar layer is still not completely clean as we keep
bblayers.conf.sample and local.conf.sample prepared for building example
images.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 meta-examples/conf/layer.conf                               | 13 +++++++++++++
 .../recipes-app/example-raw/example-raw_0.2.bb              |  0
 .../recipes-app/example-raw/files/README                    |  0
 .../recipes-app/example-raw/files/postinst                  |  0
 {meta-isar => meta-examples}/recipes-app/hello/hello.bb     |  0
 meta-isar/conf/bblayers.conf.sample                         |  1 +
 6 files changed, 14 insertions(+)
 create mode 100644 meta-examples/conf/layer.conf
 rename {meta-isar => meta-examples}/recipes-app/example-raw/example-raw_0.2.bb (100%)
 rename {meta-isar => meta-examples}/recipes-app/example-raw/files/README (100%)
 rename {meta-isar => meta-examples}/recipes-app/example-raw/files/postinst (100%)
 rename {meta-isar => meta-examples}/recipes-app/hello/hello.bb (100%)

diff --git a/meta-examples/conf/layer.conf b/meta-examples/conf/layer.conf
new file mode 100644
index 0000000..f244f26
--- /dev/null
+++ b/meta-examples/conf/layer.conf
@@ -0,0 +1,13 @@
+# This software is a part of ISAR.
+# Copyright (c) Siemens AG, 2018
+
+# 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 += "examples"
+BBFILE_PATTERN_examples = "^${LAYERDIR}/"
+BBFILE_PRIORITY_examples = "6"
diff --git a/meta-isar/recipes-app/example-raw/example-raw_0.2.bb b/meta-examples/recipes-app/example-raw/example-raw_0.2.bb
similarity index 100%
rename from meta-isar/recipes-app/example-raw/example-raw_0.2.bb
rename to meta-examples/recipes-app/example-raw/example-raw_0.2.bb
diff --git a/meta-isar/recipes-app/example-raw/files/README b/meta-examples/recipes-app/example-raw/files/README
similarity index 100%
rename from meta-isar/recipes-app/example-raw/files/README
rename to meta-examples/recipes-app/example-raw/files/README
diff --git a/meta-isar/recipes-app/example-raw/files/postinst b/meta-examples/recipes-app/example-raw/files/postinst
similarity index 100%
rename from meta-isar/recipes-app/example-raw/files/postinst
rename to meta-examples/recipes-app/example-raw/files/postinst
diff --git a/meta-isar/recipes-app/hello/hello.bb b/meta-examples/recipes-app/hello/hello.bb
similarity index 100%
rename from meta-isar/recipes-app/hello/hello.bb
rename to meta-examples/recipes-app/hello/hello.bb
diff --git a/meta-isar/conf/bblayers.conf.sample b/meta-isar/conf/bblayers.conf.sample
index 80867e7..6d9b471 100644
--- a/meta-isar/conf/bblayers.conf.sample
+++ b/meta-isar/conf/bblayers.conf.sample
@@ -8,6 +8,7 @@ BBFILES ?= ""
 BBLAYERS ?= " \
   ##ISARROOT##/meta \
   ##ISARROOT##/meta-isar \
+  ##ISARROOT##/meta-examples \
   "
 BBLAYERS_NON_REMOVABLE ?= " \
   ##ISARROOT##/meta \
-- 
2.13.6

             reply	other threads:[~2018-01-24  7:34 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24  7:34 Jan Kiszka [this message]
2018-01-24  7:49 ` Alexander Smirnov
2018-01-24  7:52   ` Jan Kiszka
2018-01-24  7:56     ` Jan Kiszka
2018-01-24 10:04       ` Alexander Smirnov
2018-01-24 12:15         ` Jan Kiszka
2018-01-24 13:08           ` Baurzhan Ismagulov
2018-01-24 13:39             ` Jan Kiszka
2018-01-24 14:09               ` Baurzhan Ismagulov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fd3ce1b5-f8c8-364f-1cf7-9ae270389f3f@siemens.com \
    --to=jan.kiszka@siemens.com \
    --cc=isar-users@googlegroups.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox