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. Alex
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#167667): https://lists.openembedded.org/g/openembedded-core/message/167667 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]] -=-=-=-=-=-=-=-=-=-=-=-
