public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
From: "Maxim Yu. Osipov" <mosipov@ilbers.de>
To: Henning Schild <henning.schild@siemens.com>
Cc: isar-users@googlegroups.com
Subject: Re: [RFC PATCH 4/6] meta/class/image: Add do_isar task to trigger SDK rootfs creation.
Date: Thu, 14 Jun 2018 13:49:31 +0200	[thread overview]
Message-ID: <1025ec39-1e97-25eb-74be-db027f265e00@ilbers.de> (raw)
In-Reply-To: <20180614112301.6666f0c4@md1pvb1c.ad001.siemens.net>

On 06/14/2018 11:23 AM, Henning Schild wrote:
> Am Wed, 13 Jun 2018 15:58:27 +0200
> schrieb "Maxim Yu. Osipov" <mosipov@ilbers.de>:
> 
>> User manually triggers creation of SDK root filesystem for his target
>> platform by launching the task `do_isar_sdk` for target image, f.e.
>> `bitbake -c do_isar_sdk
>> multiconfig:${MACHINE}-${DISTRO}:isar-image-base`.
>>
>> The resulting SDK rootfs is located under
>> `tmp/work/${DITSRO}-${DISTRO_ARCH}/sdkchroot/rootfs`. SDK rootfs
>> directory `/isar-apt` contains the copy of isar-apt repo with locally
>> prebuilt target debian packages. One may chroot to SDK and install
>> required target packages with the help of `apt-get install
>> <package_name>:<DISTRO_ARCH>` command.
>>
>> Signed-off-by: Maxim Yu. Osipov <mosipov@ilbers.de>
>> ---
>>   meta/classes/image.bbclass | 8 ++++++++
>>   1 file changed, 8 insertions(+)
>>
>> diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
>> index 4738cb8..dc7da2c 100644
>> --- a/meta/classes/image.bbclass
>> +++ b/meta/classes/image.bbclass
>> @@ -71,3 +71,11 @@ do_copy_boot_files() {
>>   addtask copy_boot_files before do_build after do_rootfs
>>   do_copy_boot_files[dirs] = "${DEPLOY_DIR_IMAGE}"
>>   do_copy_boot_files[stamp-extra-info] = "${DISTRO}-${MACHINE}"
>> +
>> +do_isar_sdk() {
>> +}
>>
>> +
>> +do_isar_sdk[stamp-extra-info] = "${MACHINE}-${DISTRO}"
>> +do_isar_sdk[depends] = "sdkchroot:do_build"
>> +
>> +addtask isar_sdk after do_rootfs
> 
> Could you explain why sdkchroot is a recipe of its own and you are
> building that dependency chain. So why can sdkchroot:do_build not just
> be implemented in do_isar_sdk? The reasoning should probably be added
> to the commit message.

One of the initial ideas of adding such dependency to image class
is to make sure that target packages which user lists in IMAGE_INSTALL 
are already built.

So sdkchroot has two major dependencies

1) target rootfs (and prebuilt target packages)
This dependency is placed in meta/classes/image.bbclass:
addtask isar_sdk after do_rootfs

2) host's isar-bootstrap
This dependency is placed in meta/recipes-devtools/sdkchroot/sdkchroot.bb:

do_build[depends] = "isar-apt:do_cache_config isar-bootstrap-host:do_deploy"

As I mentioned before sdkchroot is very similar to buildchroot.

So such split between sdkchroot and image class seems to be natural.

Maxim.
-- 
Maxim Osipov
ilbers GmbH
Maria-Merian-Str. 8
85521 Ottobrunn
Germany
+49 (151) 6517 6917
mosipov@ilbers.de
http://ilbers.de/
Commercial register Munich, HRB 214197
General Manager: Baurzhan Ismagulov

  reply	other threads:[~2018-06-14 11:49 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-13 13:58 [RFC PATCH 0/6] ISAR SDK root filesystem Maxim Yu. Osipov
2018-06-13 13:58 ` [RFC PATCH 1/6] isar-bootstrap-helper: Add option --copyrepo to setup_root_file_system() Maxim Yu. Osipov
2018-06-14  8:51   ` Henning Schild
2018-06-13 13:58 ` [RFC PATCH 2/6] isar-debootstrap: split into host and target recipes Maxim Yu. Osipov
2018-06-14  8:59   ` Henning Schild
2018-06-13 13:58 ` [RFC PATCH 3/6] sdkchroot: Added recipe-devel to create SDK root filesystem Maxim Yu. Osipov
2018-06-14  9:19   ` Henning Schild
2018-06-14 10:46     ` Maxim Yu. Osipov
2018-06-14 11:07       ` Henning Schild
2018-06-13 13:58 ` [RFC PATCH 4/6] meta/class/image: Add do_isar task to trigger SDK rootfs creation Maxim Yu. Osipov
2018-06-14  9:23   ` Henning Schild
2018-06-14 11:49     ` Maxim Yu. Osipov [this message]
2018-06-18  9:56   ` Baurzhan Ismagulov
2018-06-13 13:58 ` [RFC PATCH 5/6] scripts: Add helper scripts to mount/umount chroot directory Maxim Yu. Osipov
2018-06-14  9:28   ` Henning Schild
2018-06-13 13:58 ` [RFC PATCH 6/6] doc: Add description of ISAR SDK root filesystem creation Maxim Yu. Osipov
2018-06-14  8:48 ` [RFC PATCH 0/6] ISAR SDK root filesystem Henning Schild
2018-06-14  8:51   ` Jan Kiszka
2018-06-14  9:34     ` Henning Schild
2018-06-14  9:46   ` Maxim Yu. Osipov
2018-06-18  7:08     ` Henning Schild
2018-06-19  7:33       ` Maxim Yu. Osipov

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=1025ec39-1e97-25eb-74be-db027f265e00@ilbers.de \
    --to=mosipov@ilbers.de \
    --cc=henning.schild@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