public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] Factor out meta-examples
@ 2018-01-24  7:34 Jan Kiszka
  2018-01-24  7:49 ` Alexander Smirnov
  0 siblings, 1 reply; 9+ messages in thread
From: Jan Kiszka @ 2018-01-24  7:34 UTC (permalink / raw)
  To: isar-users

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-01-24 14:09 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-01-24  7:34 [PATCH] Factor out meta-examples Jan Kiszka
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox