From: "Schmidt, Adriaan" <adriaan.schmidt@siemens.com>
To: "jan.kiszka@siemens.com" <jan.kiszka@siemens.com>,
"henning.schild@siemens.com" <henning.schild@siemens.com>
Cc: "isar-users@googlegroups.com" <isar-users@googlegroups.com>
Subject: RE: [PATCH] sdk: make SDK and image
Date: Wed, 15 Dec 2021 09:35:25 +0000 [thread overview]
Message-ID: <AS4PR10MB5318474E6CB9BED234992903ED769@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <0850a0e8-05e8-390b-facd-7c5550ca7752@siemens.com>
Kiszka, Jan, 15. Dezember 2021 10:20
> On 15.12.21 09:43, Henning Schild wrote:
> > Am Wed, 15 Dec 2021 09:38:24 +0100
> > schrieb Jan Kiszka <jan.kiszka@siemens.com>:
> >
> >> On 15.12.21 09:07, Schmidt, Adriaan (T RDA IOT SES-DE) wrote:
> >>> Kiszka, Jan (T RDA IOT), 15. Dezember 2021 08:52:
> >>>> On 15.12.21 07:41, Adriaan Schmidt wrote:
> >>>>> This derives the SDK from image.bbclass (currently it only
> >>>>> inherits rootfs), removing the awkward and custom tar-xz'ing.
> >>>>> 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.
> >>>>>
> >>>>> API change: SDK is now no longer built using `bitbake my_image
> >>>>> -cpopulate_sdk`, but using `bitbake isar-sdk`. We could of
> >>>>> course keep the old commands working, but I could not find any
> >>>>> connection between the target image and the contents of the
> >>>>> SDK (while building the SDK using the target image recipe
> >>>>> confusingly makes it look like there is such a connection).
> >>>>
> >>>> This is not correct: The target image recipe may define
> >>>> SDK_[PRE]INSTALL in correspondance to its content. Also, changing
> >>>> the user API would needlessly break the alignment with OE.
> >>>
> >>> But the SDK is built by a completely different recipe (sdkchroot,
> >>> inheriting rootfs), so how does SDK_[PRE]INSTALL set in the target
> >>> image recipe have any effect there? Looks to me that those
> >>> variables need to be set in some .conf for this to work, but maybe
> >>> I'm missing something...
> >>
> >> Well, if that is the case now, we indeed have a bug. But the fixing
> >> direction should be along that line "image defines SDK", not "SDK is
> >> something completely different".
> >
> > NACK. If we have that bug we can apply that patch to enable my series,
> > and deal with that bug later.
>
> NACK for user-visible API changes - if we fix something internally
> without breaking how a user triggers the build, then this is fine. But
> we must not fix in the wrong direction, like this patch is suggesting.
Preserving -cdo_populate_sdk for the user is trivial, will propose v2.
Unfortunately, while my patch preserves implemented behavior w.r.t SDK
content, it takes the SDK a little further away from its intended behavior,
which could make fixing the bug afterwards more difficult. But that fix
will certainly be non-trivial, so I'm ok with postponing.
Adriaan
prev parent reply other threads:[~2021-12-15 9:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-15 6:41 Adriaan Schmidt
2021-12-15 7:51 ` Jan Kiszka
2021-12-15 8:07 ` Schmidt, Adriaan
2021-12-15 8:38 ` Jan Kiszka
2021-12-15 8:43 ` Henning Schild
2021-12-15 9:20 ` Jan Kiszka
2021-12-15 9:35 ` Schmidt, Adriaan [this message]
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=AS4PR10MB5318474E6CB9BED234992903ED769@AS4PR10MB5318.EURPRD10.PROD.OUTLOOK.COM \
--to=adriaan.schmidt@siemens.com \
--cc=henning.schild@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