tcmode-default: eliminate needless gdb, qemu defaults
PATCH 1/2 tcmode-default: eliminate needless gdb, qemu defaults
From: Randy MacLeod <[email protected]>
Manually setting preferred version/provider is not required so remove that for gdb and qemu as a first step of cleaning up this file.
This PREFERRED_VERSION list dates back to 2006, which is an era where several versions of a given recipe was a common occurence.
--- meta/conf/distro/include/tcmode-default.inc | 11 ----------- 1 file changed, 11 deletions(-)
meta/conf/distro/include/tcmode-default.inc +0 -11
@@ -6,18 +6,14 @@ PREFERRED_PROVIDER_virtual/cross-binutils = "${MLPREFIX}binutils-cross-${TARGET_ PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?= "binutils-crosssdk-${SDK_SYS}" PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?= "binutils-crosssdk-${SDK_SYS}" -PREFERRED_PROVIDER_gdb = "gdb" - # Default libc config PREFERRED_PROVIDER_virtual/gettext ??= "gettext" GCCVERSION ?= "14.%" SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.44%" -GDBVERSION ?= "16.%" GLIBCVERSION ?= "2.41%" LINUXLIBCVERSION ?= "6.12%" -QEMUVERSION ?= "9.2%" GOVERSION ?= "1.24%" RUSTVERSION ?= "1.83%"
@@ -40,9 +36,6 @@ 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_gdb ?= "${GDBVERSION}" -PREFERRED_VERSION_gdb-cross-${TARGET_ARCH} ?= "${GDBVERSION}" -PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GDBVERSION}" PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_nativesdk-linux-libc-headers ?= "${LINUXLIBCVERSION}"
@@ -53,10 +46,6 @@ PREFERRED_VERSION_glibc-scripts ?= "${GLIBCVERSION}" PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}" PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}" -PREFERRED_VERSION_qemu ?= "${QEMUVERSION}" -PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}" -PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}" - # Bootstrap Go using a binary release from golang.org. If you want to bootstrap # from source using the C-implemented Go 1.4 (only supports x86-64 hosts) then use # go-native.
Signature · 1 line
2.34.1
PATCH 2/2 tcmode-default: eliminate needless 'go' defaults
From: Randy MacLeod <[email protected]>
Manually setting preferred version/provider is not required so remove that for 'go'.
--- meta/conf/distro/include/tcmode-default.inc | 15 --------------- 1 file changed, 15 deletions(-)
meta/conf/distro/include/tcmode-default.inc +0 -15
@@ -14,7 +14,6 @@ SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.44%" GLIBCVERSION ?= "2.41%" LINUXLIBCVERSION ?= "6.12%" -GOVERSION ?= "1.24%" RUSTVERSION ?= "1.83%" PREFERRED_VERSION_gcc ?= "${GCCVERSION}"
@@ -46,20 +45,6 @@ PREFERRED_VERSION_glibc-scripts ?= "${GLIBCVERSION}" PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}" PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}" -# Bootstrap Go using a binary release from golang.org. If you want to bootstrap -# from source using the C-implemented Go 1.4 (only supports x86-64 hosts) then use -# go-native. -PREFERRED_PROVIDER_go-native ?= "go-binary-native" -PREFERRED_VERSION_virtual/${TARGET_PREFIX}go ?= "${GOVERSION}" -PREFERRED_VERSION_go-cross-${TUNE_PKGARCH} ?= "${GOVERSION}" -PREFERRED_VERSION_go-crosssdk-${SDK_ARCH} ?= "${GOVERSION}" -PREFERRED_VERSION_go-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GOVERSION}" -PREFERRED_VERSION_go ?= "${GOVERSION}" -PREFERRED_VERSION_go-native ?= "${GOVERSION}" -PREFERRED_VERSION_go-runtime ?= "${GOVERSION}" -PREFERRED_VERSION_nativesdk-go ?= "${GOVERSION}" -PREFERRED_VERSION_nativesdk-go-runtime ?= "${GOVERSION}" - # Rust toolchain preferred versions: PREFERRED_VERSION_cargo ?= "${RUSTVERSION}"
Signature · 1 line
2.34.1
Are we sure that we don’t have external toolchains feeding gdb these days
Quoted 70 lines · On Thu, Mar 6, 2025 at 1:55 PM <[email protected]> wrote:
From: Randy MacLeod <[email protected]>
Manually setting preferred version/provider is not required so remove that for gdb and qemu as a first step of cleaning up this file.
This
PREFERRED_VERSIONlist dates back to 2006, which is an era where several versions of a given recipe was a common occurence.Signed-off-by Randy MacLeod <[email protected]>--- meta/conf/distro/include/tcmode-default.inc | 11 ----------- 1 file changed, 11 deletions(-)meta/conf/distro/include/tcmode-default.inc +0
-0@@ -6,18 +6,14 @@ PREFERRED_PROVIDER_virtual/cross-binutils ="${MLPREFIX}binutils-cross-${TARGET_
PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?=
"binutils-crosssdk-${SDK_SYS}"
PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?=
"binutils-crosssdk-${SDK_SYS}"meta/conf/distro/include/tcmode-default.inc +0
-4-PREFERRED_PROVIDER_gdb = "gdb" - # Default libc config PREFERRED_PROVIDER_virtual/gettext ??= "gettext" GCCVERSION ?= "14.%" SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.44%" -GDBVERSION ?= "16.%" GLIBCVERSION ?= "2.41%" LINUXLIBCVERSION ?= "6.12%" -QEMUVERSION ?= "9.2%" GOVERSION ?= "1.24%" RUSTVERSION ?= "1.83%"@@ -40,9 +36,6 @@ 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}"
meta/conf/distro/include/tcmode-default.inc +0
-3-PREFERRED_VERSION_gdb ?= "${GDBVERSION}" -PREFERRED_VERSION_gdb-cross-${TARGET_ARCH} ?= "${GDBVERSION}" -PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?="${GDBVERSION}"
PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_nativesdk-linux-libc-headers ?= "${LINUXLIBCVERSION}"
meta/conf/distro/include/tcmode-default.inc +0
-0@@ -53,10 +46,6 @@ PREFERRED_VERSION_glibc-scripts ?="${GLIBCVERSION}"
PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}"
PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}"meta/conf/distro/include/tcmode-default.inc +0
-4-PREFERRED_VERSION_qemu ?= "${QEMUVERSION}" -PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}" -PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}" - # Bootstrap Go using a binary release from golang.org. If you want tobootstrap
# from source using the C-implemented Go 1.4 (only supports x86-64 hosts) then use # go-native. -- 2.34.1
Quoted 1 line · Khem Raj
Are we sure that we don’t have external toolchains feeding gdb these days
I'm not sure. That's why I cc'ed you. :-)
How would I check or who would we ask?
Let's start with Mark and Ross.
It's easy enough to revert if we find that someone, somehow needs this but I plan to remove the rust and binutils bits next and if that goes well, drop the rest of the file at the start of 5.3 if not sooner.
../Randy
Quoted 81 lines · On Thu, Mar 6, 2025 at 1:55 PM <[email protected]> wrote:
From: Randy MacLeod <[email protected]>
Manually setting preferred version/provider is not required so remove
that for gdb and qemu as a first step of cleaning up this file.
This PREFERRED_VERSION list dates back to 2006, which is an era where
several versions of a given recipe was a common occurence.
Signed-off-by: Randy MacLeod <[email protected]>
---
meta/conf/distro/include/tcmode-default.inc
<https://urldefense.com/v3/__http://tcmode-default.inc__;!!AjveYdw8EvQ!dsbtuYnz0eaBpWn8FlbH-Kg-yVU-NnmybrYYxp3Vi_6SjL_R-Xpy8sQ_S_HUWOf51ur_kGYmjQ8Zc5qRa2oYmw$>
| 11 -----------
1 file changed, 11 deletions(-)
diff --git a/meta/conf/distro/include/tcmode-default.inc
<https://urldefense.com/v3/__http://tcmode-default.inc__;!!AjveYdw8EvQ!dsbtuYnz0eaBpWn8FlbH-Kg-yVU-NnmybrYYxp3Vi_6SjL_R-Xpy8sQ_S_HUWOf51ur_kGYmjQ8Zc5qRa2oYmw$>
b/meta/conf/distro/include/tcmode-default.inc
<https://urldefense.com/v3/__http://tcmode-default.inc__;!!AjveYdw8EvQ!dsbtuYnz0eaBpWn8FlbH-Kg-yVU-NnmybrYYxp3Vi_6SjL_R-Xpy8sQ_S_HUWOf51ur_kGYmjQ8Zc5qRa2oYmw$>
index 079a7ca3ea..ce0c8235e4 100644
--- a/meta/conf/distro/include/tcmode-default.inc
<https://urldefense.com/v3/__http://tcmode-default.inc__;!!AjveYdw8EvQ!dsbtuYnz0eaBpWn8FlbH-Kg-yVU-NnmybrYYxp3Vi_6SjL_R-Xpy8sQ_S_HUWOf51ur_kGYmjQ8Zc5qRa2oYmw$>
+++ b/meta/conf/distro/include/tcmode-default.inc
<https://urldefense.com/v3/__http://tcmode-default.inc__;!!AjveYdw8EvQ!dsbtuYnz0eaBpWn8FlbH-Kg-yVU-NnmybrYYxp3Vi_6SjL_R-Xpy8sQ_S_HUWOf51ur_kGYmjQ8Zc5qRa2oYmw$>
@@ -6,18 +6,14 @@ PREFERRED_PROVIDER_virtual/cross-binutils =
"${MLPREFIX}binutils-cross-${TARGET_
PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?=
"binutils-crosssdk-${SDK_SYS}"
PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?=
"binutils-crosssdk-${SDK_SYS}"
-PREFERRED_PROVIDER_gdb = "gdb"
-
# Default libc config
PREFERRED_PROVIDER_virtual/gettext ??= "gettext"
GCCVERSION ?= "14.%"
SDKGCCVERSION ?= "${GCCVERSION}"
BINUVERSION ?= "2.44%"
-GDBVERSION ?= "16.%"
GLIBCVERSION ?= "2.41%"
LINUXLIBCVERSION ?= "6.12%"
-QEMUVERSION ?= "9.2%"
GOVERSION ?= "1.24%"
RUSTVERSION ?= "1.83%"
@@ -40,9 +36,6 @@ 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_gdb ?= "${GDBVERSION}"
-PREFERRED_VERSION_gdb-cross-${TARGET_ARCH} ?= "${GDBVERSION}"
-PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?=
"${GDBVERSION}"
PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}"
PREFERRED_VERSION_nativesdk-linux-libc-headers ?=
"${LINUXLIBCVERSION}"
@@ -53,10 +46,6 @@ PREFERRED_VERSION_glibc-scripts ?=
"${GLIBCVERSION}"
PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}"
PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}"
-PREFERRED_VERSION_qemu ?= "${QEMUVERSION}"
-PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}"
-PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}"
-
# Bootstrap Go using a binary release from golang.org
<https://urldefense.com/v3/__http://golang.org__;!!AjveYdw8EvQ!dsbtuYnz0eaBpWn8FlbH-Kg-yVU-NnmybrYYxp3Vi_6SjL_R-Xpy8sQ_S_HUWOf51ur_kGYmjQ8Zc5oPQTBExQ$>.
If you want to bootstrap
# from source using the C-implemented Go 1.4 (only supports
x86-64 hosts) then use
# go-native.
--
2.34.1Signature · 2 lines
# Randy MacLeod # Wind River Linux
Quoted 6 lines · Randy MacLeod
On 2025-03-06 6:24 p.m., Khem Raj wrote:
Are we sure that we don’t have external toolchains feeding gdb these days
Quoted 9 lines
I'm not sure. That's why I cc'ed you. :-)
How would I check or who would we ask?
Let's start with Mark and Ross.
It's easy enough to revert if we find that someone, somehow needs this but I plan to remove the rust and binutils bits next and if that goes well, drop the rest of the file at the start of 5.3 if not sooner.
In general I am ok with this it does make core policies a bit tighter, and I do not have usecase for external toolchains myself but we have tried to accommodate other providers of external toolchains in past but there isPREFERRED_PROVIDER way of hooking the overriding toolchains as well e.g. in meta-go-binary layer
this is the way it is used.
Quoted 70 lines
../Randy
Quoted 59 lines · On Thu, Mar 6, 2025 at 1:55 PM <[email protected]> wrote:
From: Randy MacLeod <[email protected]>
Manually setting preferred version/provider is not required so remove that for gdb and qemu as a first step of cleaning up this file.
This
PREFERRED_VERSIONlist dates back to 2006, which is an era where several versions of a given recipe was a common occurence.Signed-off-by Randy MacLeod <[email protected]>--- meta/conf/distro/include/tcmode-default.inc | 11 ----------- 1 file changed, 11 deletions(-)meta/conf/distro/include/tcmode-default.inc +0
-12@@ -6,18 +6,14 @@ PREFERRED_PROVIDER_virtual/cross-binutils = "${MLPREFIX}binutils-cross-${TARGET_ PREFERRED_PROVIDER_virtual/cross-binutils:class-nativesdk ?= "binutils-crosssdk-${SDK_SYS}" PREFERRED_PROVIDER_virtual/nativesdk-cross-binutils ?= "binutils-crosssdk-${SDK_SYS}" -PREFERRED_PROVIDER_gdb = "gdb" - # Default libc config PREFERRED_PROVIDER_virtual/gettext ??= "gettext" GCCVERSION ?= "14.%" SDKGCCVERSION ?= "${GCCVERSION}" BINUVERSION ?= "2.44%" -GDBVERSION ?= "16.%" GLIBCVERSION ?= "2.41%" LINUXLIBCVERSION ?= "6.12%" -QEMUVERSION ?= "9.2%" GOVERSION ?= "1.24%" RUSTVERSION ?= "1.83%"@@ -40,9 +36,6 @@ 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_gdb ?= "${GDBVERSION}" -PREFERRED_VERSION_gdb-cross-${TARGET_ARCH} ?= "${GDBVERSION}" -PREFERRED_VERSION_gdb-cross-canadian-${TRANSLATED_TARGET_ARCH} ?= "${GDBVERSION}" PREFERRED_VERSION_linux-libc-headers ?= "${LINUXLIBCVERSION}" PREFERRED_VERSION_nativesdk-linux-libc-headers ?= "${LINUXLIBCVERSION}"@@ -53,10 +46,6 @@ PREFERRED_VERSION_glibc-scripts ?= "${GLIBCVERSION}" PREFERRED_VERSION_nativesdk-glibc ?= "${GLIBCVERSION}" PREFERRED_VERSION_cross-localedef-native ?= "${GLIBCVERSION}" -PREFERRED_VERSION_qemu ?= "${QEMUVERSION}" -PREFERRED_VERSION_qemu-native ?= "${QEMUVERSION}" -PREFERRED_VERSION_nativesdk-qemu ?= "${QEMUVERSION}" - # Bootstrap Go using a binary release from golang.org. If you want to bootstrap # from source using the C-implemented Go 1.4 (only supports x86-64 hosts) then use # go-native. --Quoted 2 lines
2.34.1
--
# Randy MacLeod
# Wind River Linux
Quoted 18 lines · Khem Raj via lists.openembedded.org
Quoted 6 lines · Randy MacLeod
On 2025-03-06 6:24 p.m., Khem Raj wrote:
Are we sure that we don’t have external toolchains feeding gdb these days
Quoted 9 lines
I'm not sure. That's why I cc'ed you. :-)
How would I check or who would we ask?
Let's start with Mark and Ross.
It's easy enough to revert if we find that someone, somehow needs this but I plan to remove the rust and binutils bits next and if that goes well, drop the rest of the file at the start of 5.3 if not sooner.
Quoted 7 lines
In general I am ok with this it does make core policies a bit tighter, and I do not have usecase for external toolchains myself but we have tried to accommodate other providers of external toolchains in past but there is
PREFERRED_PROVIDERway of hooking the overriding toolchains as well e.g. in meta-go-binary layer
this is the way it is used.
I think the way people use the project has changed and these are more of a holdover from the past now. If a layer does need them they can certainly add and set them but we probably don't need to in core any more...
Cheers,
Richard