URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
[/] [openrisc/] [trunk/] [gnu-src/] [bld-all.sh] - Diff between revs 427 and 438
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 427 |
Rev 438 |
Line 664... |
Line 664... |
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
# Conditionally relocate the newlib headers and libraries.
|
# Conditionally relocate the newlib headers and libraries.
|
function relocate_newlib {
|
function relocate_newlib {
|
if [ "true" == "${newlib_flag}" ]
|
if [ "true" == "${newlib_flag}" ]
|
then
|
then
|
echo "bld-all.sh: Relocating newlib"
|
echo "bld-all.sh: Relocating newlib (no-op)"
|
|
|
mkdir -p ${prefix}/or32-elf/newlib
|
|
rm -rf ${prefix}/or32-elf/newlib-include
|
|
|
|
if [ -d ${prefix}/or32-elf/include ]
|
|
then
|
|
mv ${prefix}/or32-elf/include \
|
|
${prefix}/or32-elf/newlib-include
|
|
fi
|
|
|
|
if [ -d ${prefix}/or32-elf/lib ]
|
|
then
|
|
afiles=`ls -1 ${prefix}/or32-elf/lib | grep '\.a' | head -1`
|
|
|
|
if [ "x$afiles" != "x" ]
|
|
then
|
|
mv ${prefix}/or32-elf/lib/*.a ${prefix}/or32-elf/newlib
|
|
fi
|
|
fi
|
|
|
|
if [ -f ${prefix}/or32-elf/lib/crt0.o ]
|
|
then
|
|
mv ${prefix}/or32-elf/lib/crt0.o ${prefix}/or32-elf/newlib
|
|
fi
|
|
fi
|
fi
|
} # relocate_newlib
|
} # relocate_newlib
|
|
|
|
|
# ------------------------------------------------------------------------------
|
# ------------------------------------------------------------------------------
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.