diff options
author | Alexey Neyman <stilor@att.net> | 2017-05-14 07:04:05 (GMT) |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2017-05-14 07:04:05 (GMT) |
commit | 842915db44b2a41486dc5ea0212ddfc19093fe32 (patch) | |
tree | 271fc2277f386e3492f92c28f81ab385f0ebff71 /scripts/build/arch | |
parent | 487c598b27caa585abe977151f345733661a1b45 (diff) |
Separate uclibc's multilib headers on MIPS, too
The generated sysnum.h is different for o32/n32/64 ABIs.
This needs to be revisited; either do this for all architecutres or
perhaps, compare the headers for various multilibs and combine them
if the are identical.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/arch')
-rw-r--r-- | scripts/build/arch/mips.sh | 11 |
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}" |