diff options
author | Alexey Neyman <stilor@att.net> | 2018-12-10 09:10:01 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-12-10 09:10:01 (GMT) |
commit | 5cf859d9d9308e341c58caff45d54a910480ad24 (patch) | |
tree | c35674a1a65d77bfbdb7ffd932d70dcac97714fe /scripts/build/arch.sh | |
parent | afb17244d2b5d86d99dc298694417d1d97c3864d (diff) |
Add config flags for omitting 'arch' and 'vendor'
... parts of the config tuple. While here, remove parts that are
setting portions of the target tuple to a value that's already
the default.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/arch.sh')
-rw-r--r-- | scripts/build/arch.sh | 46 |
1 files changed, 28 insertions, 18 deletions
diff --git a/scripts/build/arch.sh b/scripts/build/arch.sh index de3e3c9..e7a2efe 100644 --- a/scripts/build/arch.sh +++ b/scripts/build/arch.sh @@ -1,31 +1,36 @@ # This file provides the default implementations of arch-specific functions. # Set up the target tuple -CT_DoArchTupleValues() { - :; +CT_DoArchTupleValues() +{ + : } # Adjust the list of multilibs for the target -CT_DoArchMultilibList() { - :; +CT_DoArchMultilibList() +{ + : } # Multilib: change the target triplet according to CFLAGS # Usage: CT_DoArchGlibcAdjustTuple <variable-name> <CFLAGS> -CT_DoArchMultilibTarget() { - :; +CT_DoArchMultilibTarget() +{ + : } # Multilib: Adjust target tuple for GLIBC # Usage: CT_DoArchGlibcAdjustTuple <variable-name> -CT_DoArchGlibcAdjustTuple() { - :; +CT_DoArchGlibcAdjustTuple() +{ + : } # Multilib: Adjust configure arguments for GLIBC # Usage: CT_DoArchGlibcAdjustConfigure <configure-args-array-name> <cflags> -CT_DoArchGlibcAdjustConfigure() { - :; +CT_DoArchGlibcAdjustConfigure() +{ + : } # Helper for uClibc configurators: select the architecture @@ -41,14 +46,16 @@ CT_DoArchUClibcSelectArch() { # uClibc: Adjust configuration file according to the CT-NG configuration # Usage: CT_DoArchUClibcConfig <config-file> -CT_DoArchUClibcConfig() { +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() { +CT_DoArchUClibcCflags() +{ local cfg="${1}" local cflags="${2}" @@ -63,21 +70,24 @@ CT_DoArchUClibcCflags() { # Multilib/uClibc: Adjust header installation path for given CFLAGS # Usage: CT_DoArchUClibcHeaderDir <path-variable> <cflags> -CT_DoArchUClibcHeaderDir() { +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() { +CT_DoArchMUSLHeaderDir() +{ # Only needed if a given architecture may select different MUSL architectures. - :; + : } # MUSL: Perform any final adjustments on the installed libc/headers -CT_DoArchMUSLPostInstall() { - :; +CT_DoArchMUSLPostInstall() +{ + : } # Override from the actual arch implementation as needed. |