From: Alexander Smirnov <asmirnov@ilbers.de>
To: Jan Kiszka <jan.kiszka@siemens.com>,
isar-users <isar-users@googlegroups.com>
Subject: Re: [PATCH] Factor out meta-examples
Date: Wed, 24 Jan 2018 10:49:56 +0300 [thread overview]
Message-ID: <eab9c7ae-35ed-12f7-0375-358d07bbed5f@ilbers.de> (raw)
In-Reply-To: <fd3ce1b5-f8c8-364f-1cf7-9ae270389f3f@siemens.com>
Hi,
On 01/24/2018 10:34 AM, Jan Kiszka wrote:
> 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.
>
Isar core is in 'meta' layer. Current 'meta-isar' is the example itself,
it's not intended to be used in real projects, it's a kind of template
for your 'meta-product'.
Alex
> 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 \
>
--
With best regards,
Alexander Smirnov
ilbers GmbH
Baierbrunner Str. 28c
D-81379 Munich
+49 (89) 122 67 24-0
http://ilbers.de/
Commercial register Munich, HRB 214197
General manager: Baurzhan Ismagulov
next prev parent reply other threads:[~2018-01-24 7:50 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-24 7:34 Jan Kiszka
2018-01-24 7:49 ` Alexander Smirnov [this message]
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=eab9c7ae-35ed-12f7-0375-358d07bbed5f@ilbers.de \
--to=asmirnov@ilbers.de \
--cc=isar-users@googlegroups.com \
--cc=jan.kiszka@siemens.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