summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-05-14 16:51:28 (GMT)
committerGitHub <noreply@github.com>2017-05-14 16:51:28 (GMT)
commitef762bfe8e1ec9063d645b1745dc8843997b7767 (patch)
treeb0a2fecc4e9b70316b134cb6202644824599f08f /scripts
parent968b6918a2e00134077a2603f33451cfa617f44d (diff)
parent842915db44b2a41486dc5ea0212ddfc19093fe32 (diff)
Merge pull request #716 from stilor/gcc7
Add GCC 7.1.0
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/arch/mips.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/build/arch/mips.sh b/scripts/build/arch/mips.sh
index f91a80a..acb8851 100644
--- a/scripts/build/arch/mips.sh
+++ b/scripts/build/arch/mips.sh
@@ -48,6 +48,17 @@ CT_DoArchUClibcConfig() {
CT_KconfigDeleteOption "CONFIG_MIPS_ISA_MIPS64R2" "${cfg}"
}
+CT_DoArchUClibcHeaderDir() {
+ local dir_var="${1}"
+ local cflags="${2}"
+
+ # If it is non-default multilib, add a suffix with architecture (reported by gcc)
+ # to the headers installation path.
+ if [ -n "${cflags}" ]; then
+ eval "${dir_var}="$( ${CT_TARGET}-${CT_CC} -print-multiarch ${cflags} )
+ fi
+}
+
CT_DoArchUClibcCflags() {
local cfg="${1}"
local cflags="${2}"