* [PATCH] bitbake.conf: Make TCLIBC and TCMODE lazy assigned
@ 2022-06-03 6:41 Pavel Zhukov
2022-06-03 6:44 ` [OE-core] " Martin Jansa
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Zhukov @ 2022-06-03 6:41 UTC (permalink / raw)
To: openembedded-core; +Cc: pavel, Pavel Zhukov
This allows two level of overriding (distro level and local.conf/shell
variable). Previous settings blocked shell variables overring
if it was overriden on distro level.
Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
---
meta/conf/bitbake.conf | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
index 0e939aca4f..2a3cf6f8aa 100644
--- a/meta/conf/bitbake.conf
+++ b/meta/conf/bitbake.conf
@@ -386,8 +386,8 @@ FILESYSTEM_PERMS_TABLES ?= "${@'files/fs-perms.txt' if oe.types.boolean(d.getVar
# General work and output directories for the build system.
##################################################################
-TCMODE ?= "default"
-TCLIBC ?= "glibc"
+TCMODE ??= "default"
+TCLIBC ??= "glibc"
TMPDIR ?= "${TOPDIR}/tmp"
CACHE = "${TMPDIR}/cache/${TCMODE}-${TCLIBC}${@['', '/' + str(d.getVar('MACHINE'))][bool(d.getVar('MACHINE'))]}${@['', '/' + str(d.getVar('SDKMACHINE'))][bool(d.getVar('SDKMACHINE'))]}"
--
2.35.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] bitbake.conf: Make TCLIBC and TCMODE lazy assigned
2022-06-03 6:41 [PATCH] bitbake.conf: Make TCLIBC and TCMODE lazy assigned Pavel Zhukov
@ 2022-06-03 6:44 ` Martin Jansa
2022-06-03 6:52 ` Pavel Zhukov
0 siblings, 1 reply; 4+ messages in thread
From: Martin Jansa @ 2022-06-03 6:44 UTC (permalink / raw)
To: Pavel Zhukov; +Cc: openembedded-core, Pavel Zhukov
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
You can always override it from local.conf with an override, right? That
always worked for me and I don't see why this change is needed.
On Fri, Jun 3, 2022 at 8:42 AM Pavel Zhukov <pavel@zhukoff.net> wrote:
> This allows two level of overriding (distro level and local.conf/shell
> variable). Previous settings blocked shell variables overring
> if it was overriden on distro level.
>
> Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
> ---
> meta/conf/bitbake.conf | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 0e939aca4f..2a3cf6f8aa 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -386,8 +386,8 @@ FILESYSTEM_PERMS_TABLES ?= "${@'files/fs-perms.txt' if
> oe.types.boolean(d.getVar
> # General work and output directories for the build system.
> ##################################################################
>
> -TCMODE ?= "default"
> -TCLIBC ?= "glibc"
> +TCMODE ??= "default"
> +TCLIBC ??= "glibc"
> TMPDIR ?= "${TOPDIR}/tmp"
>
> CACHE = "${TMPDIR}/cache/${TCMODE}-${TCLIBC}${@['', '/' +
> str(d.getVar('MACHINE'))][bool(d.getVar('MACHINE'))]}${@['', '/' +
> str(d.getVar('SDKMACHINE'))][bool(d.getVar('SDKMACHINE'))]}"
> --
> 2.35.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#166509):
> https://lists.openembedded.org/g/openembedded-core/message/166509
> Mute This Topic: https://lists.openembedded.org/mt/91516557/3617156
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [
> Martin.Jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 2769 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] bitbake.conf: Make TCLIBC and TCMODE lazy assigned
2022-06-03 6:44 ` [OE-core] " Martin Jansa
@ 2022-06-03 6:52 ` Pavel Zhukov
2022-06-03 15:36 ` Khem Raj
0 siblings, 1 reply; 4+ messages in thread
From: Pavel Zhukov @ 2022-06-03 6:52 UTC (permalink / raw)
To: Martin Jansa; +Cc: Pavel Zhukov, openembedded-core
An example we have right now:
bitbake.conf: TCLIBC ?= "glibc"
linux-distro.conf: TCLIBC = "musl"
TCLIBC="glibc" bitbake -e distro-image-base => TCLIBC == "musl" which
confuses users a lot (and it was not working this way in dunfell).
Same applies to if TCLIBC="glibc" is in conf/local.conf then musl is used.
With linux-distro.conf : TCLIBC ?= "musl" image is build with "glibc"
which is not that we want.
With suggested changes:
bitbake.conf: TCLIBC ??= "glibc"
linux-distro.conf: TCLIBC ?= "musl"
TCLIBC="glibc" bitbake -e distro-image-base => TCLIBC == "glibc"
bitbake -e distro-image-base => TCLIBC == "musl"
If distro maintainers wants they can set to TCLIBC = "<implementation>"
and disable overriding explicitly.
Do I miss something?
"Martin Jansa" <Martin.Jansa@gmail.com> writes:
> You can always override it from local.conf with an override, right? That always worked for me and I don't see why this change is needed.
>
> On Fri, Jun 3, 2022 at 8:42 AM Pavel Zhukov <pavel@zhukoff.net> wrote:
>
> This allows two level of overriding (distro level and local.conf/shell
> variable). Previous settings blocked shell variables overring
> if it was overriden on distro level.
>
> Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
> ---
> meta/conf/bitbake.conf | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> index 0e939aca4f..2a3cf6f8aa 100644
> --- a/meta/conf/bitbake.conf
> +++ b/meta/conf/bitbake.conf
> @@ -386,8 +386,8 @@ FILESYSTEM_PERMS_TABLES ?= "${@'files/fs-perms.txt' if oe.types.boolean(d.getVar
> # General work and output directories for the build system.
> ##################################################################
>
> -TCMODE ?= "default"
> -TCLIBC ?= "glibc"
> +TCMODE ??= "default"
> +TCLIBC ??= "glibc"
> TMPDIR ?= "${TOPDIR}/tmp"
>
> CACHE = "${TMPDIR}/cache/${TCMODE}-${TCLIBC}${@['', '/' + str(d.getVar('MACHINE'))][bool(d.getVar('MACHINE'))]}${@['', '/' + str(d.getVar
> ('SDKMACHINE'))][bool(d.getVar('SDKMACHINE'))]}"
> --
> 2.35.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#166510): https://lists.openembedded.org/g/openembedded-core/message/166510
> Mute This Topic: https://lists.openembedded.org/mt/91516557/6390638
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [pavel@zhukoff.net]
> -=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [OE-core] [PATCH] bitbake.conf: Make TCLIBC and TCMODE lazy assigned
2022-06-03 6:52 ` Pavel Zhukov
@ 2022-06-03 15:36 ` Khem Raj
0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2022-06-03 15:36 UTC (permalink / raw)
To: pavel
Cc: Martin Jansa, Pavel Zhukov,
Patches and discussions about the oe-core layer
On Fri, Jun 3, 2022 at 12:04 AM Pavel Zhukov <pavel@zhukoff.net> wrote:
>
>
> An example we have right now:
>
> bitbake.conf: TCLIBC ?= "glibc"
> linux-distro.conf: TCLIBC = "musl"
>
> TCLIBC="glibc" bitbake -e distro-image-base => TCLIBC == "musl" which
> confuses users a lot (and it was not working this way in dunfell).
> Same applies to if TCLIBC="glibc" is in conf/local.conf then musl is used.
>
> With linux-distro.conf : TCLIBC ?= "musl" image is build with "glibc"
> which is not that we want.
>
> With suggested changes:
>
> bitbake.conf: TCLIBC ??= "glibc"
> linux-distro.conf: TCLIBC ?= "musl"
>
> TCLIBC="glibc" bitbake -e distro-image-base => TCLIBC == "glibc"
> bitbake -e distro-image-base => TCLIBC == "musl"
>
> If distro maintainers wants they can set to TCLIBC = "<implementation>"
> and disable overriding explicitly.
>
> Do I miss something?
>
Its better to define different distros profiles sometimes they are not
beneficial to have knobs on cmdline e.g. see
https://github.com/YoeDistro/yoe-distro/blob/master/conf/site.conf#L14-L15
and
https://github.com/YoeDistro/yoe-distro/blob/master/sources/meta-yoe/conf/distro/yoe.conf
Since there could be multiple factors deciding the policy.
> "Martin Jansa" <Martin.Jansa@gmail.com> writes:
>
> > You can always override it from local.conf with an override, right? That always worked for me and I don't see why this change is needed.
> >
> > On Fri, Jun 3, 2022 at 8:42 AM Pavel Zhukov <pavel@zhukoff.net> wrote:
> >
> > This allows two level of overriding (distro level and local.conf/shell
> > variable). Previous settings blocked shell variables overring
> > if it was overriden on distro level.
> >
> > Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com>
> > ---
> > meta/conf/bitbake.conf | 4 ++--
> > 1 file changed, 2 insertions(+), 2 deletions(-)
> >
> > diff --git a/meta/conf/bitbake.conf b/meta/conf/bitbake.conf
> > index 0e939aca4f..2a3cf6f8aa 100644
> > --- a/meta/conf/bitbake.conf
> > +++ b/meta/conf/bitbake.conf
> > @@ -386,8 +386,8 @@ FILESYSTEM_PERMS_TABLES ?= "${@'files/fs-perms.txt' if oe.types.boolean(d.getVar
> > # General work and output directories for the build system.
> > ##################################################################
> >
> > -TCMODE ?= "default"
> > -TCLIBC ?= "glibc"
> > +TCMODE ??= "default"
> > +TCLIBC ??= "glibc"
> > TMPDIR ?= "${TOPDIR}/tmp"
> >
> > CACHE = "${TMPDIR}/cache/${TCMODE}-${TCLIBC}${@['', '/' + str(d.getVar('MACHINE'))][bool(d.getVar('MACHINE'))]}${@['', '/' + str(d.getVar
> > ('SDKMACHINE'))][bool(d.getVar('SDKMACHINE'))]}"
> > --
> > 2.35.1
> >
> >
> >
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#166511): https://lists.openembedded.org/g/openembedded-core/message/166511
> Mute This Topic: https://lists.openembedded.org/mt/91516557/1997914
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [raj.khem@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-06-03 15:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-03 6:41 [PATCH] bitbake.conf: Make TCLIBC and TCMODE lazy assigned Pavel Zhukov
2022-06-03 6:44 ` [OE-core] " Martin Jansa
2022-06-03 6:52 ` Pavel Zhukov
2022-06-03 15:36 ` Khem Raj
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.