On Wed, 6 Jul 2022 at 21:54, Joshua Watt <[email protected]> wrote: > 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.
Defining the format formally in a verifiable way is quite useful, thanks. I'll integrate it into my patchset. And yes, I have a different viewpoint: I do not want separate tools that need to be pointed to, or any extra steps, or data decoupled from code. What I do want is to clone a layer, run a single script once, and be dropped into an environment where I can run sstate-accelerated bitbake. Maybe making a choice about what target I want to build for on the way. And without ever having to read a (often) badly written, unhelpful layer README, or asking anyone for help. If it's not like that, it's not good enough. > 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"? Yes. The idea is that the tools shouldn't have to guess if the json itself is hosted inside one of the layers it describes, and so that fact should be written into the json. It can be named 'contains_this_file' or something like that. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#167746): https://lists.openembedded.org/g/openembedded-core/message/167746 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]] -=-=-=-=-=-=-=-=-=-=-=-
