From: "Schmidt, Adriaan" <adriaan.schmidt@siemens.com>
To: "jan.kiszka@siemens.com" <jan.kiszka@siemens.com>,
"isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: RE: [PATCH v2] sdk: make SDK an image
Date: Thu, 16 Dec 2021 09:12:22 +0000 [thread overview]
Message-ID: <AS4PR10MB531858893ADC9C63FBF983BDED779@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <289e8f63-7b63-1a91-9c03-40f07ffdbc87@siemens.com>
Kiszka, Jan, 15. Dezember 2021 12:55:
> On 15.12.21 11:55, Adriaan Schmidt wrote:
> > This derives the SDK from image.bbclass (currently it only
> > inherits rootfs), removing the custom packaging, and instead
> > relying on existing features of image.bbclass.
> > Note that because there is not tarxz-img IMAGE_TYPE, we switch
> > the SDK type to targz-img. This is only temporary, until we have
> > the OE-inspired imagetypes.
>
> Then the ordering is also wrong: First make sure we can keep the
> previous output format, then refactor.
>
> Meanwhile, we can think about how to hook the SDK image build into a
> task of another image build, so that we move in the right direction /wrt
> configuration.
I had a look at OE. There the SDK is something generated by the target
image, but it's something quite complex, with lots of Python code and
stuff in libraries. But except for the Isar SDK being simpler, it's
following the same idea.
I now think:
- The SDK should be generated by the target image recipe, but maybe
more integrated than it currently is. (Put the logic currently in
the sdkchroot recipe into the image-sdk-extension class, so we can
easily use settings made in the target image recipe)
- The SDK should only be generated as tar[xz|gz], but not as container
- If someone wants an SDK image (container, development VM, ...),
that would be a separate recipe further processing the SDK, and the
user would need to create that recipe explicitly. I can imagine that
for the default case, this SDK image recipe would only have two lines:
include the target image recipe (to get all the SDK_* settings and the
do_populate_sdk task) and include some new class that makes the
adjustments to generate an "image containing the SDK" instead
of the original target image.
Adriaan
next prev parent reply other threads:[~2021-12-16 9:12 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-15 10:55 Adriaan Schmidt
2021-12-15 11:54 ` Jan Kiszka
2021-12-16 9:12 ` Schmidt, Adriaan [this message]
2021-12-16 14:30 ` Jan Kiszka
2021-12-16 15:30 ` Schmidt, Adriaan
2021-12-17 6:23 ` Schmidt, Adriaan
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=AS4PR10MB531858893ADC9C63FBF983BDED779@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM \
--to=adriaan.schmidt@siemens.com \
--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