On Tue, Jul 5, 2022 at 11:04 AM Alexander Kanavin
<[email protected]> wrote:
>
> On Tue, 5 Jul 2022 at 16:28, Joshua Watt <[email protected]> wrote:
> > In that regard, I'd prefer that the JSON file be what defines a layer
> > setup and included in layers. The setup python script is nice (and
> > convenient), but I think it would be better as an additional file
> > alongside the JSON file (or that someone can download independently if
> > the layer doesn't have one). I think a few tweaks would make it
> > possible to write the script so it can operate generically on any JSON
> > file input without needing templating.
>
> You have that choice when you run the generator: write out the bare
> json, write out the script that embeds the json (and is guaranteed to
> be compatible with it), or both. Additionally, the script can print
> the json inside itself with --print-config. If you prefer to include
> just the json into the layer, that's fine, but I don't particularly
> want to solve the problem of where to find tools that can do something
> with it (without exploding with cryptic compatibility errors), and I
> can imagine most people, and especially beginners, would just want to
> run the script directly.

I think my interest here is more in the JSON schema, and I think
that's the more important piece for consolidating tools around a
common standard in the long run. I've pushed up an RFC patch with a
proposed schema and example layer JSON file to review. It would be
nice if the script outlined here didn't have to be generated from
bblayers and was a static script that could operate on any JSON file,
since that is more generally useful; it would also be a good starting
point for a generic layer setup tool that we can point users to and
can be replaced by something more comprehensive (like what Richard
outlines) later without having to change the actual layer data (the
JSON). Or put another way, I'd prefer the data be kept separate from
the code.

Note that my schema is missing the "is_bootstrap" option yours has; I
wasn't quite clear if that meant anything other than "don't fetch this
layer by default"?

>
> Alex
>
> 
>
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#167745): 
https://lists.openembedded.org/g/openembedded-core/message/167745
Mute This Topic: https://lists.openembedded.org/mt/92117681/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to