* [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults
@ 2025-03-11 16:25 Randy.MacLeod
2025-03-11 16:25 ` [PATCH 2/2] tcmode-default: eliminate needless binutils defaults Randy.MacLeod
2025-03-11 17:06 ` [OE-core] [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults Martin Jansa
0 siblings, 2 replies; 6+ messages in thread
From: Randy.MacLeod @ 2025-03-11 16:25 UTC (permalink / raw)
To: openembedded-core; +Cc: raj.khem, mathieu.dubois-briand
From: Randy MacLeod <Randy.MacLeod@windriver.com>
Manually setting preferred version is not required so remove
that for rust and cargo.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
meta/conf/distro/include/tcmode-default.inc | 13 -------------
1 file changed, 13 deletions(-)
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 702fa4d75f..5cc93405f1 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -14,7 +14,6 @@ SDKGCCVERSION ?= "${GCCVERSION}"
BINUVERSION ?= "2.44%"
GLIBCVERSION ?= "2.41%"
LINUXLIBCVERSION ?= "6.12%"
-RUSTVERSION ?= "1.83%"
PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}"
@@ -44,15 +43,3 @@ PREFERRED_VERSION_glibc-mtrace ?= "${GLIBCVERSION}"
PREFERRED_VERSION_glibc-scripts ?= "${GLIBCVERSION}"
PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}"
PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}"
-
-# Rust toolchain preferred versions:
-
-PREFERRED_VERSION_cargo ?= "${RUSTVERSION}"
-PREFERRED_VERSION_cargo-native ?= "${RUSTVERSION}"
-PREFERRED_VERSION_libstd-rs ?= "${RUSTVERSION}"
-PREFERRED_VERSION_rust ?= "${RUSTVERSION}"
-PREFERRED_VERSION_rust-cross-${TARGET_ARCH} ?= "${RUSTVERSION}"
-PREFERRED_VERSION_rust-llvm ?= "${RUSTVERSION}"
-PREFERRED_VERSION_rust-llvm-native ?= "${RUSTVERSION}"
-PREFERRED_VERSION_rust-native ?= "${RUSTVERSION}"
-
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/2] tcmode-default: eliminate needless binutils defaults
2025-03-11 16:25 [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults Randy.MacLeod
@ 2025-03-11 16:25 ` Randy.MacLeod
2025-03-11 22:06 ` [OE-core] " Richard Purdie
2025-03-11 17:06 ` [OE-core] [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults Martin Jansa
1 sibling, 1 reply; 6+ messages in thread
From: Randy.MacLeod @ 2025-03-11 16:25 UTC (permalink / raw)
To: openembedded-core; +Cc: raj.khem, mathieu.dubois-briand
From: Randy MacLeod <Randy.MacLeod@windriver.com>
Manually setting preferred version/provider is not required so remove
that for binutils.
Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
---
meta/conf/distro/include/tcmode-default.inc | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
index 5cc93405f1..2a3c16e2bd 100644
--- a/meta/conf/distro/include/tcmode-default.inc
+++ b/meta/conf/distro/include/tcmode-default.inc
@@ -2,16 +2,11 @@
# Default toolchain configuration
#
-PREFERRED_PROVIDER_virtual/cross-binutils = "${MLPREFIX}binutils-cross-${TARGET_ARCH}"
-PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?= "binutils-crosssdk-${SDK_SYS}"
-PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?= "binutils-crosssdk-${SDK_SYS}"
-
# Default libc config
PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
GCCVERSION ?= "14.%"
SDKGCCVERSION ?= "${GCCVERSION}"
-BINUVERSION ?= "2.44%"
GLIBCVERSION ?= "2.41%"
LINUXLIBCVERSION ?= "6.12%"
@@ -29,11 +24,6 @@ PREFERRED_VERSION_libgfortran ?= "${GCCVERSION}"
PREFERRED_VERSION_nativesdk-gcc ?= "${SDKGCCVERSION}"
PREFERRED_VERSION_nativesdk-libgcc ?= "${SDKGCCVERSION}"
PREFERRED_VERSION_nativesdk-libgcc-initial ?= "${SDKGCCVERSION}"
-PREFERRED_VERSION_binutils ?= "${BINUVERSION}"
-PREFERRED_VERSION_binutils-native ?= "${BINUVERSION}"
-PREFERRED_VERSION_binutils-cross-${TARGET_ARCH} ?= "${BINUVERSION}"
-PREFERRED_VERSION_binutils-crosssdk-${SDK_SYS} ?= "${BINUVERSION}"
-PREFERRED_VERSION_binutils-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${BINUVERSION}"
PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}"
PREFERRED_VERSION_nativesdk-linux-libc-headers ?= "${LINUXLIBCVERSION}"
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [OE-core] [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults
2025-03-11 16:25 [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults Randy.MacLeod
2025-03-11 16:25 ` [PATCH 2/2] tcmode-default: eliminate needless binutils defaults Randy.MacLeod
@ 2025-03-11 17:06 ` Martin Jansa
2025-03-11 21:24 ` Richard Purdie
1 sibling, 1 reply; 6+ messages in thread
From: Martin Jansa @ 2025-03-11 17:06 UTC (permalink / raw)
To: randy.macleod; +Cc: openembedded-core, raj.khem, mathieu.dubois-briand
I know you want to eliminate this whole file, but I find RUSTVERSION
useful in situations where some layer wants to backport different
version of rust and related recipes and then the DISTRO can set just
the RUSTVERSION variable to choose between the versions available. Now
the layer with different rust recipes will probably need to provide
some .inc file with this, so that the users of this layer won't need
to know which 8 recipes need to have PREFERRED_VERSION set at the same
time.
Like it was with
https://github.com/meta-rust/meta-rust/commits/master/conf/distro/include/rust_versions.inc
https://github.com/meta-rust/meta-rust/commit/9c0a1059be62417439615126ddd3044269406a66
otherwise the version from layer with higher priority will win and the
DISTRO won't be able to easily avoid that, other than adding all these
PREFERRED_VERSIONS or using BBMASK or preventing that layer to be
included in BBLAYERS.
Just my 2c
On Tue, Mar 11, 2025 at 5:25 PM Randy MacLeod via
lists.openembedded.org
<randy.macleod=windriver.com@lists.openembedded.org> wrote:
>
> From: Randy MacLeod <Randy.MacLeod@windriver.com>
>
> Manually setting preferred version is not required so remove
> that for rust and cargo.
>
> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
> ---
> meta/conf/distro/include/tcmode-default.inc | 13 -------------
> 1 file changed, 13 deletions(-)
>
> diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
> index 702fa4d75f..5cc93405f1 100644
> --- a/meta/conf/distro/include/tcmode-default.inc
> +++ b/meta/conf/distro/include/tcmode-default.inc
> @@ -14,7 +14,6 @@ SDKGCCVERSION ?= "${GCCVERSION}"
> BINUVERSION ?= "2.44%"
> GLIBCVERSION ?= "2.41%"
> LINUXLIBCVERSION ?= "6.12%"
> -RUSTVERSION ?= "1.83%"
>
> PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
> PREFERRED_VERSION_gcc-cross-${TARGET_ARCH} ?= "${GCCVERSION}"
> @@ -44,15 +43,3 @@ PREFERRED_VERSION_glibc-mtrace ?= "${GLIBCVERSION}"
> PREFERRED_VERSION_glibc-scripts ?= "${GLIBCVERSION}"
> PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}"
> PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}"
> -
> -# Rust toolchain preferred versions:
> -
> -PREFERRED_VERSION_cargo ?= "${RUSTVERSION}"
> -PREFERRED_VERSION_cargo-native ?= "${RUSTVERSION}"
> -PREFERRED_VERSION_libstd-rs ?= "${RUSTVERSION}"
> -PREFERRED_VERSION_rust ?= "${RUSTVERSION}"
> -PREFERRED_VERSION_rust-cross-${TARGET_ARCH} ?= "${RUSTVERSION}"
> -PREFERRED_VERSION_rust-llvm ?= "${RUSTVERSION}"
> -PREFERRED_VERSION_rust-llvm-native ?= "${RUSTVERSION}"
> -PREFERRED_VERSION_rust-native ?= "${RUSTVERSION}"
> -
> --
> 2.34.1
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#212574): https://lists.openembedded.org/g/openembedded-core/message/212574
> Mute This Topic: https://lists.openembedded.org/mt/111643200/3617156
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [martin.jansa@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults
2025-03-11 17:06 ` [OE-core] [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults Martin Jansa
@ 2025-03-11 21:24 ` Richard Purdie
0 siblings, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2025-03-11 21:24 UTC (permalink / raw)
To: martin.jansa, randy.macleod
Cc: openembedded-core, raj.khem, mathieu.dubois-briand
On Tue, 2025-03-11 at 18:06 +0100, Martin Jansa via lists.openembedded.org wrote:
> I know you want to eliminate this whole file, but I find RUSTVERSION
> useful in situations where some layer wants to backport different
> version of rust and related recipes and then the DISTRO can set just
> the RUSTVERSION variable to choose between the versions available. Now
> the layer with different rust recipes will probably need to provide
> some .inc file with this, so that the users of this layer won't need
> to know which 8 recipes need to have PREFERRED_VERSION set at the same
> time.
>
> Like it was with
> https://github.com/meta-rust/meta-rust/commits/master/conf/distro/include/rust_versions.inc
> https://github.com/meta-rust/meta-rust/commit/9c0a1059be62417439615126ddd3044269406a66
>
> otherwise the version from layer with higher priority will win and the
> DISTRO won't be able to easily avoid that, other than adding all these
> PREFERRED_VERSIONS or using BBMASK or preventing that layer to be
> included in BBLAYERS.
>
> Just my 2c
In some ways these patches are to check who is actually using some of
these things. They need maintaining and I've not been convinced some of
them are used.
If you are saying you find the rust version useful, that is probably a
reason to keep this, annoying as it can be to maintain...
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] [PATCH 2/2] tcmode-default: eliminate needless binutils defaults
2025-03-11 16:25 ` [PATCH 2/2] tcmode-default: eliminate needless binutils defaults Randy.MacLeod
@ 2025-03-11 22:06 ` Richard Purdie
2025-03-13 14:29 ` Randy MacLeod
0 siblings, 1 reply; 6+ messages in thread
From: Richard Purdie @ 2025-03-11 22:06 UTC (permalink / raw)
To: randy.macleod, openembedded-core; +Cc: raj.khem, mathieu.dubois-briand
On Tue, 2025-03-11 at 12:25 -0400, Randy MacLeod via lists.openembedded.org wrote:
> From: Randy MacLeod <Randy.MacLeod@windriver.com>
>
> Manually setting preferred version/provider is not required so remove
> that for binutils.
>
> Signed-off-by: Randy MacLeod <Randy.MacLeod@windriver.com>
> ---
> meta/conf/distro/include/tcmode-default.inc | 10 ----------
> 1 file changed, 10 deletions(-)
>
> diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
> index 5cc93405f1..2a3c16e2bd 100644
> --- a/meta/conf/distro/include/tcmode-default.inc
> +++ b/meta/conf/distro/include/tcmode-default.inc
> @@ -2,16 +2,11 @@
> # Default toolchain configuration
> #
>
> -PREFERRED_PROVIDER_virtual/cross-binutils = "${MLPREFIX}binutils-cross-${TARGET_ARCH}"
> -PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?= "binutils-crosssdk-${SDK_SYS}"
> -PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?= "binutils-crosssdk-${SDK_SYS}"
> -
> #
I suspect we need to keep this bit since these are not direct mappings.
It was the version preference which I think we may be able to drop as
there is only one version.
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [OE-core] [PATCH 2/2] tcmode-default: eliminate needless binutils defaults
2025-03-11 22:06 ` [OE-core] " Richard Purdie
@ 2025-03-13 14:29 ` Randy MacLeod
0 siblings, 0 replies; 6+ messages in thread
From: Randy MacLeod @ 2025-03-13 14:29 UTC (permalink / raw)
To: Richard Purdie, openembedded-core, Martin Jansa
Cc: raj.khem, mathieu.dubois-briand
[-- Attachment #1: Type: text/plain, Size: 1438 bytes --]
On 2025-03-11 6:06 p.m., Richard Purdie wrote:
> On Tue, 2025-03-11 at 12:25 -0400, Randy MacLeod via lists.openembedded.org wrote:
>> From: Randy MacLeod<Randy.MacLeod@windriver.com>
>>
>> Manually setting preferred version/provider is not required so remove
>> that for binutils.
>>
>> Signed-off-by: Randy MacLeod<Randy.MacLeod@windriver.com>
>> ---
>> meta/conf/distro/include/tcmode-default.inc | 10 ----------
>> 1 file changed, 10 deletions(-)
>>
>> diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc
>> index 5cc93405f1..2a3c16e2bd 100644
>> --- a/meta/conf/distro/include/tcmode-default.inc
>> +++ b/meta/conf/distro/include/tcmode-default.inc
>> @@ -2,16 +2,11 @@
>> # Default toolchain configuration
>> #
>>
>> -PREFERRED_PROVIDER_virtual/cross-binutils = "${MLPREFIX}binutils-cross-${TARGET_ARCH}"
>> -PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?= "binutils-crosssdk-${SDK_SYS}"
>> -PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?= "binutils-crosssdk-${SDK_SYS}"
>> -
>> #
> I suspect we need to keep this bit since these are not direct mappings.
> It was the version preference which I think we may be able to drop as
> there is only one version.
Okay. Will do.
v2 without rust and the bit above coming up...
../Randy
>
> Cheers,
>
> Richard
>
--
# Randy MacLeod
# Wind River Linux
[-- Attachment #2: Type: text/html, Size: 2340 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2025-03-13 14:29 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-11 16:25 [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults Randy.MacLeod
2025-03-11 16:25 ` [PATCH 2/2] tcmode-default: eliminate needless binutils defaults Randy.MacLeod
2025-03-11 22:06 ` [OE-core] " Richard Purdie
2025-03-13 14:29 ` Randy MacLeod
2025-03-11 17:06 ` [OE-core] [PATCH 1/2] tcmode-default: eliminate needless rust, cargo defaults Martin Jansa
2025-03-11 21:24 ` Richard Purdie
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.