Hi Manuel,

 

> after adding layer no machine or recipe did show up under compatible layers -> meta-testlayer:

 

I have also not liked that limitation about imported layers. For the new Toaster with YP-2.6 (Thud), I have gone ahead and enhanced the layer import feature to at least pre-emptively scan the layer for recipes so that they are immediately visible. That should help address your question.  

 

FYI, this code looks for obvious recipes, but does not yet do a deep parse into all the clever ways people can define recipes. For this reason the metadata from the bitbake build events is still the official answer.

 

> Is it possible somehow to force toaster to scan all layers again?

 

Toaster either gets its data from the official Layer Index for the layers that are pre-registered, or dynamically from bitbake events when an unknown layer is built. So, there is nothing new to rescan unless I start adding more heuristics to Toaster layer parser outside of the Layer Index or bitbake.

 

For “machines”, the root problem is that layers do not provide a way to register. That is why they do not appear in the Layer Index, and that is why I did not attempt to pre-emptively scan them.

 

So:

 

(a) If you are not seeing an imported layer’s machine options even after the layer is built, then that is a definite bug, and you should file a bug report and you should file a bug report. A reproducer would be very helpful.

 

(b) If you are not seeing an imported layer’s recipes, then that is a bug or a current limitation, so you should file a bug report . A reproducer would again be very helpful.

 

(c) As for enhancing Toaster to see a new layer’s machines as soon as you import it, I can investigate ways to heuristically extract machine information from layers. If you have suggestions on how to robustly do this, I will happily accept!

 

- David

 

 

From: toaster-bounces@yoctoproject.org [mailto:toaster-bounces@yoctoproject.org] On Behalf Of Manuel Dipolt
Sent: Friday, November 16, 2018 2:24 AM
To: toaster@yoctoproject.org
Subject: Re: [Toaster] The machine of the added layer does not come out.

 

Hi,

 

had the same issue, after adding layer no machine or recipe did show up under compatible layers -> meta-testlayer:

 

Toaster does not have recipe information for the meta-testlayer layer.

Toaster learns about layers when you build them. If this layer provides any recipes, they will be listed here after you build the meta-testlayer layer.

 

 

 

it confused me a lot, assumed that i made some bugs with the layer declaration (with machines and recipes) because toaster didn't list them.

 

build machine of it by entering name directly, however it didn't help and machine is still now showing up in the auto complete list, is it planned to fix this issue?

 

Is it possible somehow to force toaster to scan all layers again?

 

 

Yours,

Manuel