diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/tools.sh | 34 | ||||
-rwxr-xr-x | scripts/crosstool.sh | 4 |
2 files changed, 38 insertions, 0 deletions
diff --git a/scripts/build/tools.sh b/scripts/build/tools.sh new file mode 100644 index 0000000..ebc8131 --- /dev/null +++ b/scripts/build/tools.sh @@ -0,0 +1,34 @@ +# Wrapper to build the tools facilities + +# List all tools facilities, and parse their scripts +CT_TOOLS_FACILITY_LIST= +for f in "${CT_TOP_DIR}/scripts/build/tools/"*.sh; do + is_enabled= + . "${f}" + f=`basename "${f}" .sh` + if [ "${is_enabled}" = "y" ]; then + CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${f}" + fi +done + +# Download the tools facilities +do_tools_get() { + for f in ${CT_TOOLS_FACILITY_LIST}; do + do_tools_${f}_get + done +} + +# Extract and patch the tools facilities +do_tools_extract() { + for f in ${CT_TOOLS_FACILITY_LIST}; do + do_tools_${f}_extract + done +} + +# Build the tools facilities +do_tools() { + for f in ${CT_TOOLS_FACILITY_LIST}; do + do_tools_${f}_build + done +} + diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh index 7ceea6a..4021f91 100755 --- a/scripts/crosstool.sh +++ b/scripts/crosstool.sh @@ -363,6 +363,7 @@ fi . "${CT_TOP_DIR}/scripts/build/cc_core_${CT_CC_CORE}.sh" . "${CT_TOP_DIR}/scripts/build/cc_${CT_CC}.sh" . "${CT_TOP_DIR}/scripts/build/debug.sh" +. "${CT_TOP_DIR}/scripts/build/tools.sh" if [ -z "${CT_RESTART}" ]; then CT_DoStep INFO "Retrieving needed toolchain components' tarballs" @@ -372,6 +373,7 @@ if [ -z "${CT_RESTART}" ]; then do_libfloat_get do_libc_get do_cc_get + do_tools_get do_debug_get CT_EndStep @@ -387,6 +389,7 @@ if [ -z "${CT_RESTART}" ]; then do_libfloat_extract do_libc_extract do_cc_extract + do_tools_extract do_debug_extract CT_EndStep fi @@ -410,6 +413,7 @@ if [ "${CT_ONLY_DOWNLOAD}" != "y" -a "${CT_ONLY_EXTRACT}" != "y" ]; then libc \ cc \ libc_finish \ + tools \ debug \ ; do if [ ${do_it} -eq 0 ]; then |