Skip to contentSkip to conversation

Design - Building and configuring the eSDK with Toaster

DISCUSSION Barros Pena, Belen 2 participants 4 messages Jul 29, 2016 – Aug 1, 2016

lore
Share & tools
lore
#1 lore raw

Hi Belen,

Quoted 11 lines · Belen

Related to this Bugzilla entry

https://bugzilla.yoctoproject.org/show_bug.cgi?id=9297

I have an initial proposal on how to build and configure the extensible SDK with Toaster

https://youtu.be/NH2T3lebh8A

Feedback, comments and questions sorely needed (this is just v1 and might have some glaring errors or gaps).

Thanks for producing this. It looks fairly reasonable, some things to consider though:

1) It's not clear to me when the eSDK will replace the standard SDK - at least in 2.2 it will finally be possible for that to happen, but because the eSDK is still a bit larger than the standard SDK I suspect some people who just want the basic toolchain will want to stick with the standard SDK for a while yet. For that reason I think it would make sense if the UI was clear about what kind of SDK it's building.

2) Following on from that, I know it complicates matters but I think we may want to consider how we would present alternative tasks than just "SDK" (that maps to do_populate_sdk_ext) and "Build" buttons - there are likely to be other tasks of interest here including do_populate_sdk. Admittedly it's less about how this particular functionality works and more about how we might make those other tasks more obviously available in future.

3) The update URL isn't all that you need to publish the SDK - the URL is (at least assumed to be) read-only, i.e. it's what the installed SDK pulls from, not what oe-publish-sdk can push to. In order to work, oe-publish-sdk needs a local directory path or alternatively user@host:/path to use SSH, but if using the latter the user may also be prompted for a password if they aren't using key-based authentication. As you might gather there's an element of the local vs. server installation problem creeping in here that we've hit elsewhere.

4) FYI we've just introduced an additional variable SDK_INCLUDE_TOOLCHAIN, which within the build system defaults to "1" if SDK_EXT_TYPE is "full" or "0" if it's "minimal", so the UI will need to do the same.

5) In terms of implementation, since this UI is based around the variables I really think we should define the UI declaratively rather than by hardcoding the knowledge into the UI. Whether we actually pull those declarations from the metadata is a separate issue (and not currently practical given this UI has to be available before running any builds), but we should start along the right course from the beginning. This is mostly a note for whoever implements it, but it may have minor implications on how the UI works as well.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#2 lore raw

Thanks for the reply, Paul.

Quoted 20 lines · Paul Eggleton

Hi Belen,

Quoted 4 lines · Belen

Related to this Bugzilla entry

https://bugzilla.yoctoproject.org/show_bug.cgi?id=9297

Quoted 8 lines

I have an initial proposal on how to build and configure the extensible SDK with Toaster

https://youtu.be/NH2T3lebh8A

Feedback, comments and questions sorely needed (this is just v1 and might
have some glaring errors or gaps).

Thanks for producing this. It looks fairly reasonable, some things to consider
though:

Quoted 11 lines

1) It's not clear to me when the eSDK will replace the standard SDK - at least
in 2.2 it will finally be possible for that to happen, but because the eSDK is
still a bit larger than the standard SDK I suspect some people who just want
the basic toolchain will want to stick with the standard SDK for a while yet.
For that reason I think it would make sense if the UI was clear about what
kind of SDK it's building.

This is a fair point. I will see how we can be clear about which SDK we are exposing for those in the know, without confusing those blissfully oblivious to the fact that we have 2 SDKs.

For the record: I disagree with keeping both, but that is a discussion for some other time ;)

Quoted 11 lines

2) Following on from that, I know it complicates matters but I think we may
want to consider how we would present alternative tasks than just "SDK" (that
maps to do_populate_sdk_ext) and "Build" buttons - there are likely to be other tasks of interest here including do_populate_sdk. Admittedly it's less
about how this particular functionality works and more about how we might make
those other tasks more obviously available in future.

Yes: this has been on my to do list for a while. Exposing the cleaning tasks, for example, might make sense. I'll see what we can do.

Quoted 14 lines

3) The update URL isn't all that you need to publish the SDK - the URL is (at
least assumed to be) read-only, i.e. it's what the installed SDK pulls from,
not what oe-publish-sdk can push to. In order to work, oe-publish-sdk needs a
local directory path or alternatively user@host:/path to use SSH, but if using
the latter the user may also be prompted for a password if they aren't using
key-based authentication. As you might gather there's an element of the local
vs. server installation problem creeping in here that we've hit elsewhere.

I see: so, would it be enough to add a text field for the "push to" path, and a password field for the SSH case?

FWIW: although this makes sense when you explain it, I didn't quite get it from the content of the manual

http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#sdk-providi
ng-updates-after-installing-the-extensible-sdk

Quoted 6 lines

4) FYI we've just introduced an additional variable SDK_INCLUDE_TOOLCHAIN,
which within the build system defaults to "1" if SDK_EXT_TYPE is "full" or "0"
if it's "minimal", so the UI will need to do the same.

I can add that too. Is the variable documented anywhere?

Quoted 12 lines

5) In terms of implementation, since this UI is based around the variables I
really think we should define the UI declaratively rather than by hardcoding
the knowledge into the UI. Whether we actually pull those declarations from
the metadata is a separate issue (and not currently practical given this UI
has to be available before running any builds), but we should start along the
right course from the beginning.

I agree, as long as this doesn't become a barrier to implement the feature ("because we don't know how to do it properly, we don't do it" kind of thing). I guess my question is: if we don't pull the declarations from the metadata, from where then? Do you have anything in mind?

Thanks!

Belén

Quoted 10 lines

This is mostly a note for whoever implements
it, but it may have minor implications on how the UI works as well.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw
Quoted 9 lines · Belen
Quoted 7 lines · Paul Eggleton

On Fri, 29 Jul 2016 11:27:37 Barros Pena, Belen wrote:
1) It's not clear to me when the eSDK will replace the standard SDK - at least in 2.2 it will finally be possible for that to happen, but because the eSDK is still a bit larger than the standard SDK I suspect some people who just want the basic toolchain will want to stick with the standard SDK for a while yet. For that reason I think it would make sense if the UI was clear about what kind of SDK it's building.

Quoted 6 lines

This is a fair point. I will see how we can be clear about which SDK we are exposing for those in the know, without confusing those blissfully oblivious to the fact that we have 2 SDKs.

For the record: I disagree with keeping both, but that is a discussion for some other time ;)

Right.

Quoted 19 lines
Quoted 6 lines

2) Following on from that, I know it complicates matters but I think we may want to consider how we would present alternative tasks than just "SDK" (that maps to do_populate_sdk_ext) and "Build" buttons - there are likely to be other tasks of interest here including do_populate_sdk. Admittedly it's less about how this particular functionality works and more about how we might make those other tasks more obviously available in future.

Yes: this has been on my to do list for a while. Exposing the cleaning tasks, for example, might make sense. I'll see what we can do.

Quoted 8 lines

3) The update URL isn't all that you need to publish the SDK - the URL is (at least assumed to be) read-only, i.e. it's what the installed SDK pulls from, not what oe-publish-sdk can push to. In order to work, oe-publish-sdk needs a local directory path or alternatively user@host:/path to use SSH, but if using the latter the user may also be prompted for a password if they aren't using key-based authentication. As you might gather there's an element of the local vs. server installation problem creeping in here that we've hit elsewhere.

Quoted 2 lines

I see: so, would it be enough to add a text field for the "push to" path, and a password field for the SSH case?

I think so yes. What I was alluding to is that this still may feel a bit awkward given that it's usually something you do locally rather than via a web browser, but we can see how it pans out.

Quoted 5 lines

FWIW: although this makes sense when you explain it, I didn't quite get it from the content of the manual

http://www.yoctoproject.org/docs/2.1/sdk-manual/sdk-manual.html#sdk-providi
ng-updates-after-installing-the-extensible-sdk

OK, I'll see what I can do to clarify that.

Quoted 6 lines
Quoted 4 lines

4) FYI we've just introduced an additional variable SDK_INCLUDE_TOOLCHAIN, which within the build system defaults to "1" if SDK_EXT_TYPE is "full" or "0" if it's "minimal", so the UI will need to do the same.

I can add that too. Is the variable documented anywhere?

No, not yet - the code changes only just hit master, but it's on the todo list.

Quoted 11 lines
Quoted 6 lines

5) In terms of implementation, since this UI is based around the variables I really think we should define the UI declaratively rather than by hardcoding the knowledge into the UI. Whether we actually pull those declarations from the metadata is a separate issue (and not currently practical given this UI has to be available before running any builds), but we should start along the right course from the beginning.

I agree, as long as this doesn't become a barrier to implement the feature ("because we don't know how to do it properly, we don't do it" kind of thing). I guess my question is: if we don't pull the declarations from the metadata, from where then? Do you have anything in mind?

What I meant was, you could still have them in the code, but define it as a structure where you have the fields you want to capture, and the rules that govern how they interact, such that those definitions could be pulled from the metadata at some point in future.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre