Message ID | 20220922122402.32710-1-mikko.rapeli@linaro.org |
---|---|
State | New |
Headers | show |
Series | [1/2] poky.conf: allow changes to DISTRO_VERSION, SDK_VERSION and MAINTAINER | expand |
This is for poky list, not core. Alex On Thu 22. Sep 2022 at 13.24, Mikko Rapeli <mikko.rapeli@linaro.org> wrote: > For users who build their own variants of poky, they want to stay close > to poky.conf and thus use it, but would still like to change the > version details and maintainers to their own. With this change > these variables can be changed in local.conf, for example. > > Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> > --- > meta-poky/conf/distro/poky.conf | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/meta-poky/conf/distro/poky.conf > b/meta-poky/conf/distro/poky.conf > index 856c88554d..6df71ce18a 100644 > --- a/meta-poky/conf/distro/poky.conf > +++ b/meta-poky/conf/distro/poky.conf > @@ -1,12 +1,12 @@ > DISTRO = "poky" > DISTRO_NAME = "Poky (Yocto Project Reference Distro)" > -DISTRO_VERSION = "4.1+snapshot-${METADATA_REVISION}" > +DISTRO_VERSION ?= "4.1+snapshot-${METADATA_REVISION}" > DISTRO_CODENAME = "langdale" > SDK_VENDOR = "-pokysdk" > -SDK_VERSION = > "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', > 'snapshot')}" > +SDK_VERSION ?= > "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', > 'snapshot')}" > SDK_VERSION[vardepvalue] = "${SDK_VERSION}" > > -MAINTAINER = "Poky <poky@lists.yoctoproject.org>" > +MAINTAINER ?= "Poky <poky@lists.yoctoproject.org>" > > TARGET_VENDOR = "-poky" > > -- > 2.17.1 > > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#170969): > https://lists.openembedded.org/g/openembedded-core/message/170969 > Mute This Topic: https://lists.openembedded.org/mt/93847066/1686489 > Group Owner: openembedded-core+owner@lists.openembedded.org > Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ > alex.kanavin@gmail.com] > -=-=-=-=-=-=-=-=-=-=-=- > >
On 22 Sep 2022, at 13:24, Mikko Rapeli via lists.openembedded.org <mikko.rapeli=linaro.org@lists.openembedded.org> wrote: > > For users who build their own variants of poky, they want to stay close > to poky.conf and thus use it, but would still like to change the > version details and maintainers to their own. With this change > these variables can be changed in local.conf, for example. If you want to name your distro, make your own distro.conf. You can trivially just include poky.conf as the first thing it does, but I do recommend that everyone using Yocto in production create their own distro and not piggyback on Poky. Poky can, and does, change over time as it’s a test distro for QA purposes, and you may not want what we add. Ross
On Thu, 2022-09-22 at 12:42 +0000, Ross Burton wrote: > On 22 Sep 2022, at 13:24, Mikko Rapeli via lists.openembedded.org <mikko.rapeli=linaro.org@lists.openembedded.org> wrote: > > > > For users who build their own variants of poky, they want to stay close > > to poky.conf and thus use it, but would still like to change the > > version details and maintainers to their own. With this change > > these variables can be changed in local.conf, for example. > > If you want to name your distro, make your own distro.conf. poky-tiny and poky-altcfg do this. > You can trivially just include poky.conf as the first thing it does, > but I do recommend that everyone using Yocto in production create > their own distro and not piggyback on Poky. Poky can, and does, > change over time as it’s a test distro for QA purposes, and you may > not want what we add. Just to be clear, you can create a distro.conf file even in a local build directory where local.conf is. We've kind of left the = assignments in poky.conf to nudge people in this direction as creating a custom distro in local.conf isn't really what we want to encourage. Cheers, Richard
Hi, Thanks for the feedback. My product isn't a real one, it's actually some meta layers to be used by others to create real products. The reason for using poky.conf distro is to stay as close to it as possible. But I still need to know what is the output of my builds vs. something else from poky. If chaning these veriables from local.conf is bad practice, then I need to find other possibilities, like the custom distro config (maybe move away from kas). But the aim is to do as few changes to poky as possible. Cheers, -Mikko Cheers, -Mikko
> -----Original Message----- > From: openembedded-core@lists.openembedded.org <openembedded- > core@lists.openembedded.org> On Behalf Of Mikko Rapeli > Sent: den 22 september 2022 15:44 > To: Richard Purdie <rpurdie@rpsys.net> > Cc: Ross Burton <ross.burton@arm.com>; openembedded- > core@lists.openembedded.org > Subject: Re: [OE-core] [PATCH 1/2] poky.conf: allow changes to > DISTRO_VERSION, SDK_VERSION and MAINTAINER > > Hi, > > Thanks for the feedback. My product isn't a real one, it's actually > some meta layers to be used > by others to create real products. > > The reason for using poky.conf distro is to stay as close to it as > possible. But I still need to know > what is the output of my builds vs. something else from poky. > > If chaning these veriables from local.conf is bad practice, then I > need to find other possibilities, like > the custom distro config (maybe move away from kas). But the aim is to > do as few changes to > poky as possible. > > Cheers, > > -Mikko > Cheers, > -Mikko If all you want is for your values from your local.conf to be used, then you can use an override when setting the variables. In this case, since you want to override the values from the poky distro, why not use it as the override, e.g.: DISTRO_VERSION:poky = "my-version" //Peter
diff --git a/meta-poky/conf/distro/poky.conf b/meta-poky/conf/distro/poky.conf index 856c88554d..6df71ce18a 100644 --- a/meta-poky/conf/distro/poky.conf +++ b/meta-poky/conf/distro/poky.conf @@ -1,12 +1,12 @@ DISTRO = "poky" DISTRO_NAME = "Poky (Yocto Project Reference Distro)" -DISTRO_VERSION = "4.1+snapshot-${METADATA_REVISION}" +DISTRO_VERSION ?= "4.1+snapshot-${METADATA_REVISION}" DISTRO_CODENAME = "langdale" SDK_VENDOR = "-pokysdk" -SDK_VERSION = "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}" +SDK_VERSION ?= "${@d.getVar('DISTRO_VERSION').replace('snapshot-${METADATA_REVISION}', 'snapshot')}" SDK_VERSION[vardepvalue] = "${SDK_VERSION}" -MAINTAINER = "Poky <poky@lists.yoctoproject.org>" +MAINTAINER ?= "Poky <poky@lists.yoctoproject.org>" TARGET_VENDOR = "-poky"
For users who build their own variants of poky, they want to stay close to poky.conf and thus use it, but would still like to change the version details and maintainers to their own. With this change these variables can be changed in local.conf, for example. Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> --- meta-poky/conf/distro/poky.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)