summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-05-07 19:30:32 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-05-07 19:30:32 (GMT)
commit656d56551ecbec0e16705ccc024abbcc0381df6e (patch)
tree1b04f07f62c4f75a21e1b36ba978d18cc47d0fc8 /scripts
parentf7acc7992c8f728dcce04922ead2af039b15c390 (diff)
Workaround for "PowerPC-8xx CPU15 errata" (whatever that might be).
Patch by Nye LIU: http://sourceware.org/ml/crossgcc/2009-05/msg00014.html -------- diffstat follows -------- /trunk/patches/eglibc/2_9/100-powerpc-8xx-CPU15-errata.patch | 49 49 0 0 ++++++++++++++++++ /trunk/scripts/build/libc/eglibc.sh | 10 9 1 0 +++- 2 files changed, 58 insertions(+), 1 deletion(-)
Diffstat (limited to 'scripts')
-rw-r--r--scripts/build/libc/eglibc.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/build/libc/eglibc.sh b/scripts/build/libc/eglibc.sh
index f36f4ec..18fac76 100644
--- a/scripts/build/libc/eglibc.sh
+++ b/scripts/build/libc/eglibc.sh
@@ -266,7 +266,15 @@ do_libc() {
CT_DoLog EXTRA "Building C library"
- CT_DoExecLog ALL make
+ # eglibc build hacks
+ # http://sourceware.org/ml/crossgcc/2008-10/msg00068.html
+ case "${CT_ARCH},${CT_ARCH_CPU}" in
+ powerpc,8??)
+ CT_DoLog DEBUG "Activating support for memset on broken ppc-8xx (CPU15 erratum)"
+ EGLIBC_BUILD_ASFLAGS="-DBROKEN_PPC_8xx_CPU15";;
+ esac
+
+ CT_DoExecLog ALL make ASFLAGS="${EGLIBC_BUILD_ASFLAGS}"
CT_DoLog EXTRA "Installing C library"