From: Mark Hatle <mark.hatle@kernel.crashing.org>
To: Alexander Kanavin <alex.kanavin@gmail.com>,
Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: OE-core <openembedded-core@lists.openembedded.org>,
Joshua Watt <JPEWhacker@gmail.com>,
Alexander Kanavin <alex@linutronix.de>,
openembedded-architecture
<openembedded-architecture@lists.openembedded.org>
Subject: Re: [Openembedded-architecture] Configuration fragments
Date: Thu, 1 Sep 2022 17:47:00 -0500 [thread overview]
Message-ID: <39e25aa4-450b-8bd5-57c8-9ac1092e695b@kernel.crashing.org> (raw)
In-Reply-To: <CANNYZj_YxkraY46KvFxXMxBATx-FAgqNWGfFdJnJAHUcbN9+OQ@mail.gmail.com>
Wind River already has a mechanism to do something like this, called templates.
https://github.com/WindRiver-Labs/wr-template/tree/WRLINUX_10_21_BASE
Each template can have (optionally):
# README - template README file
# require - list of other templates required for this one
# template.conf - template configuration fragment
# image.inc - image fragment
# bsp-pkgs.conf - BSP specific configuration fragment
# bsp-pkgs.inc - BSP specific image fragment
# The 'bsp-pkgs' files can only be in a template in a layer that provides a
# specific conf/machine/${MACHINE}.conf file and layers it may contain,
# otherwise they will be ignored
I'm not saying what is implemented is a perfect solution, but it made a
'configuration fragment' approach to system configuration much easier when I
worked with it.
(For examples see:
https://github.com/WindRiver-Labs/wrlinux/tree/WRLINUX_10_21_BASE/templates/feature)
You could do things (in your local.conf, or machine.conf or distro.conf) like:
WRTEMPLATE += "dpdk"
This would add the dpdk recipes to your image and also configure the kernel for
dpdk.
https://github.com/WindRiver-Labs/wrlinux/tree/WRLINUX_10_21_BASE/templates/feature/dpdk
--Mark
On 9/1/22 10:29 AM, Alexander Kanavin wrote:
> On Thu, 18 Aug 2022 at 11:27, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>> The intent is the user could add something like:
>>
>> require conf/yocto-autobuilder/x32.inc
>>
>> or
>>
>> require conf/yocto-autobuilder/multilib-mipsn32.inc
>>
>> and similar to their local.conf and more easily replicate
>> configurations.
>
> This could be a subset of a broader feature, one that allows adding
> and removing pre-canned 'config fragments' to local.conf. The proposal
> is to have such fragments live in
> meta-somelayer/conf/fragments/path/to/some/fragment (I think allowing
> multiple levels is beneficial here), and each fragment would start
> with a comment explaining what it does followed by the actual
> settings.
>
> Then adding fragments can be done by appending them to local.conf, and
> removing by looking for markers in local.conf and editing it out,
> which probably could use a helper tool/subcommand.
>
> Layers could also declare 'non-optional' fragments which get included
> automatically by the fact of including the layer into the build, which
> means layer.conf can go back to being short and sweet and to the
> point.
>
> Thoughts?
>
>> I would like to see if we can switch the eSDK to use the json format
>> btw. I suspect that may be one of your next steps? :)
>
> I don't think I understand this, can you explain?
>
> Alex
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#1627): https://lists.openembedded.org/g/openembedded-architecture/message/1627
> Mute This Topic: https://lists.openembedded.org/mt/93398201/3616948
> Group Owner: openembedded-architecture+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-architecture/unsub [mark.hatle@kernel.crashing.org]
> -=-=-=-=-=-=-=-=-=-=-=-
>
next prev parent reply other threads:[~2022-09-01 22:50 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 13:10 [PATCH 1/5] bitbake-layers: add a command to save the active build configuration as a template into a layer Alexander Kanavin
2022-08-17 13:10 ` [PATCH 2/5] meta/files: add layer setup JSON schema and example Alexander Kanavin
2022-08-17 20:52 ` [OE-core] " Richard Purdie
2022-08-17 21:36 ` Alexander Kanavin
2022-08-17 22:27 ` Richard Purdie
2022-08-18 8:24 ` Alexander Kanavin
2022-08-18 9:27 ` Richard Purdie
2022-09-01 15:29 ` Configuration fragments Alexander Kanavin
2022-09-01 22:47 ` Mark Hatle [this message]
2022-08-17 22:16 ` [OE-core] [PATCH 2/5] meta/files: add layer setup JSON schema and example Alexander Kanavin
2022-08-17 13:10 ` [PATCH 3/5] bitbake-layers: add ability to save current layer repository configuration into a json file Alexander Kanavin
2022-08-17 13:10 ` [PATCH 4/5] scripts/oe-setup-layers: add a script that restores the layer configuration from " Alexander Kanavin
2022-08-21 22:04 ` [OE-core] " Philip Balister
2022-08-22 7:45 ` Alexander Kanavin
2022-08-22 1:20 ` Chuck Wolber
2022-08-22 7:52 ` Alexander Kanavin
2022-08-17 13:10 ` [PATCH 5/5] selftest/bblayers: add a test for creating a layer setup and using it to restore the layers Alexander Kanavin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39e25aa4-450b-8bd5-57c8-9ac1092e695b@kernel.crashing.org \
--to=mark.hatle@kernel.crashing.org \
--cc=JPEWhacker@gmail.com \
--cc=alex.kanavin@gmail.com \
--cc=alex@linutronix.de \
--cc=openembedded-architecture@lists.openembedded.org \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox