mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-20 05:17:54 +00:00
488b27f58b
The referenced commit replaced 'make' with '${make}' everywhere. This is wrong for at least the utilities that we may build as companion tools (make, libtool): this will always invoke the version detected by configure by supplying the absolute path. In other words, the wrappers in .build/tools/bin are not fallbacks - they are either temporary (in case a respective companion tool is built) or permanent redirectors. This is the reason why the PATH= has .build/*/buildtools/bin at higher precedence than .build/tools/bin; the latter has the versions detected by configure and the former has the versions built as companion tools. Revert the rest of the gang (grep/sed/...) for consistency. After all, we may decide to supply some of them as well (awk, for instance). Signed-off-by: Alexey Neyman <stilor@att.net>
69 lines
2.2 KiB
Bash
69 lines
2.2 KiB
Bash
# This file provides the default implementations of arch-specific functions.
|
|
|
|
# Set up the target tuple
|
|
CT_DoArchTupleValues() {
|
|
:;
|
|
}
|
|
|
|
# Multilib: change the target triplet according to CFLAGS
|
|
# Usage: CT_DoArchGlibcAdjustTuple <variable-name> <CFLAGS>
|
|
CT_DoArchMultilibTarget() {
|
|
:;
|
|
}
|
|
|
|
# Multilib: Adjust target tuple for GLIBC
|
|
# Usage: CT_DoArchGlibcAdjustTuple <variable-name>
|
|
CT_DoArchGlibcAdjustTuple() {
|
|
:;
|
|
}
|
|
|
|
# Helper for uClibc configurators: select the architecture
|
|
# Usage: CT_DoArchUClibcSelectArch <config-file> <architecture>
|
|
CT_DoArchUClibcSelectArch() {
|
|
local cfg="${1}"
|
|
local arch="${2}"
|
|
|
|
sed -i -r -e '/^TARGET_.*/d' "${cfg}"
|
|
CT_KconfigEnableOption "TARGET_${arch}" "${cfg}"
|
|
CT_KconfigSetOption "TARGET_ARCH" "${arch}" "${cfg}"
|
|
}
|
|
|
|
# uClibc: Adjust configuration file according to the CT-NG configuration
|
|
# Usage: CT_DoArchUClibcConfig <config-file>
|
|
CT_DoArchUClibcConfig() {
|
|
CT_DoLog WARN "Support for '${CT_ARCH}' is not implemented in uClibc config tweaker."
|
|
CT_DoLog WARN "Exact configuration file must be provided."
|
|
}
|
|
|
|
# Multilib/uClibc: Adjust configuration file for given CFLAGS
|
|
# Usage: CT_DoArchUClibcCflags <config-file> <cflags>
|
|
CT_DoArchUClibcCflags() {
|
|
local cfg="${1}"
|
|
local cflags="${2}"
|
|
|
|
# Likely, any non-default cflags need to be reflected into the config.
|
|
# It may work if we just pass them into EXTRA_CFLAGS, but we have no
|
|
# idea as they might interact with the CFLAGS inferred by uClibc from
|
|
# the configuration file.
|
|
if [ "${cflags}" != "" ]; then
|
|
CT_DoLog WARN "Multilib configuration not supported for uClibc/${CT_ARCH}"
|
|
fi
|
|
}
|
|
|
|
# Multilib/uClibc: Adjust header installation path for given CFLAGS
|
|
# Usage: CT_DoArchUClibcHeaderDir <path-variable> <cflags>
|
|
CT_DoArchUClibcHeaderDir() {
|
|
# Only needed if a given architecture may select different uClibc architectures.
|
|
:;
|
|
}
|
|
|
|
# Multilib/MUSL: Adjust header installation path for given CFLAGS
|
|
# Usage: CT_DoArchMUSLHeaderDir <path-variable> <cflags>
|
|
CT_DoArchMUSLHeaderDir() {
|
|
# Only needed if a given architecture may select different MUSL architectures.
|
|
:;
|
|
}
|
|
|
|
# Override from the actual arch implementation as needed.
|
|
. "${CT_LIB_DIR}/scripts/build/arch/${CT_ARCH}.sh"
|