OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [bld-all.sh] - Diff between revs 421 and 422

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 421 Rev 422
Line 52... Line 52...
# built.
# built.
 
 
# The following arguments control how the script runs:
# The following arguments control how the script runs:
 
 
# --force
# --force
#     Ensure the unified source directory and build directories are recreated.
#     Ensure the unified source directory and build directories are
 
#     recreated. Only build directories of targets being built are removed.
 
 
# --prefix <dir>
# --prefix <dir>
#     Specify the install directory (default /opt/or32-new)
#     Specify the install directory (default /opt/or32-new)
 
 
# --prefix-tmp <dir>
# --prefix-tmp <dir>
Line 333... Line 334...
            ;;
            ;;
 
 
        --help)
        --help)
            cat <<EOF;
            cat <<EOF;
--force
--force
    Ensure the unified source directory and build directories are recreated.
    Ensure the unified source directory and build directories are
 
    recreated. Only build directories of targets being built are removed.
 
 
--prefix <dir>
--prefix <dir>
    Specify the install directory (default /opt/or32-new)
    Specify the install directory (default /opt/or32-new)
 
 
--prefix-tmp <dir>
--prefix-tmp <dir>
Line 811... Line 813...
# Main program
# Main program
set_defaults
set_defaults
parse_args $*
parse_args $*
sanity_check
sanity_check
 
 
 
# --force always blows away the link directory. It only blows away build
 
# directories we are actually building (see below).
if [ "true" == "${force_flag}" ]
if [ "true" == "${force_flag}" ]
then
then
    echo -n "bld-all.sh: removing ${unisrc_dir} ${bd_elf} ${bd_elf_gdb} "
    echo -n "bld-all.sh: removing ${unisrc_dir}
    echo "${bd_linux} ${bd_linux_gdb}"
    rm -rf ${unisrc_dir}
    rm -rf ${unisrc_dir} ${bd_elf} ${bd_elf_gdb} ${bd_linux} ${bd_linux_gdb}
 
fi
fi
 
 
link_unified
link_unified
 
 
# Build the newlib (or32-elf) tool chain.
# Build the newlib (or32-elf) tool chain.
if [ "true" == "${or32_elf_flag}" ]
if [ "true" == "${or32_elf_flag}" ]
then
then
    target="or32-elf"
    target="or32-elf"
 
 
    echo "bld-all.sh: or32-elf toolchain"
    echo "bld-all.sh: or32-elf toolchain"
 
 
 
    # --force only applies to build directories we are using!
 
    if [ "true" == "${force_flag}" ]
 
    then
 
        echo -n "bld-all.sh: removing ${bd_elf} ${bd_elf_gdb} "
 
        rm -rf ${bd_elf} ${bd_elf_gdb}
 
    fi
 
 
    # Configure all
    # Configure all
    gnu_config ${config_flag} ${prefix} ${bd_elf} ../${unisrc_dir} "c,c++" \
    gnu_config ${config_flag} ${prefix} ${bd_elf} ../${unisrc_dir} "c,c++" \
        "${newlib_config}"
        "${newlib_config}"
    gnu_config ${config_flag} ${prefix} ${bd_elf_gdb} ../${gdb_dir} "c,c++"
    gnu_config ${config_flag} ${prefix} ${bd_elf_gdb} ../${gdb_dir} "c,c++"
 
 
Line 856... Line 865...
 
 
# Build the uClibc (or32-linux) tool chain
# Build the uClibc (or32-linux) tool chain
if [ "true" == "${or32_linux_flag}" ]
if [ "true" == "${or32_linux_flag}" ]
then
then
    target="or32-linux"
    target="or32-linux"
 
 
    echo "bld-all.sh: or32-linux toolchain"
    echo "bld-all.sh: or32-linux toolchain"
 
 
 
    # --force only applies to build directories we are using!
 
    if [ "true" == "${force_flag}" ]
 
    then
 
        echo -n "bld-all.sh: removing ${bd_linux} ${bd_linux_gdb} "
 
        rm -rf ${bd_linux} ${bd_linux_gdb}
 
    fi
 
 
    # Stage 1 binutils/GCC build uses no headers and only C
    # Stage 1 binutils/GCC build uses no headers and only C
    # language. This is just to create the libc headers, which we put in the
    # language. This is just to create the libc headers, which we put in the
    # temporary prefix directory.
    # temporary prefix directory.
    if [ "true" == "${uclibc_stage1_flag}" ]
    if [ "true" == "${uclibc_stage1_flag}" ]
    then
    then

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.