Update crostool-NG backend
cover Update crostool-NG backend
Hello All!
This short patch series updates the crosstool-NG backend in two ways:
- patch 2 is the simple one, and updates to 1.12.1, which has a few fixes since 1.12.0
- patch 1 is in itself quite simple, but the reasoning behind it is a bit more complex, and gave me a headache for a few evenings before I could pin-point the issue. More explanation in the patch description.
Of course, this would require much more love to properly fix, but not that close to a release. Hopefully, we can use the dev day in Prague to disguss the issue.
[PATCH 1/2] toolchain/crosstool-NG: fix bundled config files [PATCH 2/2] package/crosstool-NG: update version to 1.12.1
Regards,
Yann E. MORIN.
PATCH 1/2 toolchain/crosstool-NG: fix bundled config files
Bundled config files have architecture-specific values in them, which may break if buildroot is configured with another architecture that does not forcibly set these option.
For example, the bundled config files are for x86_64, and define:
CT_ARCH_TUNE="generic"
This comes from the BR2_GCC_TARGET_TUNE config option (in buildroot) that is set accordingly to the selected (arch,sub-arch).
But if someone configures buildroot for, say, generic ARM, then the BR2_GCC_TARGET_TUNE config option is not set, and the crosstool-NG backend Makefile believes it should not be pushed down to the crosstool-NG config file.
BUT...
The crosstool-NG backend Makefile can not forcibly push BR2_GCC_TARGET_TUNE down to the CT-NG config file. If BR2_GCC_TARGET_TUNE is empty, the user can still set CT_ARCH_TUNE by running ctng-menuconfig.
The backend Makefile already passes such values only if they are set.
In the end, we can't push options as-is to the crosstool-NG config, but we MUST provide sane bundled config files, which this patch does.
--- .../crosstool-ng.config-eglibc | 2 +- .../crosstool-ng.config-glibc | 4 ++-- .../crosstool-ng.config-uClibc | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc +1 -1
@@ -97,7 +97,7 @@ CT_ARCH_SUPPORT_TUNE=y CT_ARCH_DEFAULT_32=y CT_ARCH_ARCH="" CT_ARCH_CPU="" -CT_ARCH_TUNE="generic" +CT_ARCH_TUNE="" # CT_ARCH_32 is not set CT_ARCH_64=y CT_ARCH_BITNESS=64
toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc +2 -2
@@ -97,7 +97,7 @@ CT_ARCH_SUPPORT_TUNE=y CT_ARCH_DEFAULT_32=y CT_ARCH_ARCH="" CT_ARCH_CPU="" -CT_ARCH_TUNE="generic" +CT_ARCH_TUNE="" # CT_ARCH_32 is not set CT_ARCH_64=y CT_ARCH_BITNESS=64
@@ -137,7 +137,7 @@ CT_TOOLCHAIN_BUGURL="" # CT_TARGET_VENDOR="unknown" CT_TARGET_ALIAS_SED_EXPR="" -CT_TARGET_ALIAS="x86_64-linux" +CT_TARGET_ALIAS="" # # Toolchain type
toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc +1 -1
@@ -97,7 +97,7 @@ CT_ARCH_SUPPORT_TUNE=y CT_ARCH_DEFAULT_32=y CT_ARCH_ARCH="" CT_ARCH_CPU="" -CT_ARCH_TUNE="generic" +CT_ARCH_TUNE="" # CT_ARCH_32 is not set CT_ARCH_64=y CT_ARCH_BITNESS=64
Signature · 1 line
1.7.2.5
PATCH 2/2 package/crosstool-NG: update version to 1.12.1
In reply to Yann E. MORIN--- package/crosstool-ng/crosstool-ng.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
package/crosstool-ng/crosstool-ng.mk +1 -1
@@ -1,4 +1,4 @@ -CROSSTOOL_NG_VERSION = 1.12.0 +CROSSTOOL_NG_VERSION = 1.12.1 CROSSTOOL_NG_SOURCE = crosstool-ng-$(CROSSTOOL_NG_VERSION).tar.bz2 CROSSTOOL_NG_SITE = http://crosstool-ng.org/download/crosstool-ng/ CROSSTOOL_NG_INSTALL_STAGING = NO
Signature · 1 line
1.7.2.5
cover Update crostool-NG backend
In reply to Yann E. MORINAll,
Quoted 3 lines · On Saturday 27 August 2011 23:07:41 Yann E. MORIN wrote:
Of course, this would require much more love to properly fix, but not that close to a release. Hopefully, we can use the dev day in Prague to disguss the issue.
s/disguss/discuss/;
I know I am a bit keyboard-dyslexic, but I really don't know what was in my mind at that moment... Grrr...
Regards,
Yann E. MORIN.
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'
cover Update crostool-NG backend
In reply to Yann E. MORINQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Yann> Hello All!
Yann> This short patch series updates the crosstool-NG backend in two ways:
Yann> - patch 2 is the simple one, and updates to 1.12.1, which has a few
Yann> fixes since 1.12.0
Yann> - patch 1 is in itself quite simple, but the reasoning behind it is a
Yann> bit more complex, and gave me a headache for a few evenings before I
Yann> could pin-point the issue. More explanation in the patch description.
Yann> Of course, this would require much more love to properly fix, but not Yann> that close to a release. Hopefully, we can use the dev day in Prague Yann> to disguss the issue.
Yann> [PATCH 1/2] toolchain/crosstool-NG: fix bundled config files
Yann> [PATCH 2/2] package/crosstool-NG: update version to 1.12.1
Committed both, thanks!
Signature · 1 line
Bye, Peter Korsgaard