]> rtime.felk.cvut.cz Git - coffee/buildroot.git/commit
toolchain/crosstool-NG: fix bundled config files
authorYann E. MORIN <yann.morin.1998@anciens.enib.fr>
Sat, 27 Aug 2011 21:07:42 +0000 (23:07 +0200)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 28 Aug 2011 07:43:21 +0000 (09:43 +0200)
commitf30928c1b19801127b6e8b1b27878e39a04ba5d8
treed30db0a69680addb276791789f6a7cc40ad70882
parentd43a90032c4016a7583c3c8a88948e6bf3d24271
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.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
toolchain/toolchain-crosstool-ng/crosstool-ng.config-eglibc
toolchain/toolchain-crosstool-ng/crosstool-ng.config-glibc
toolchain/toolchain-crosstool-ng/crosstool-ng.config-uClibc