summaryrefslogtreecommitdiff
path: root/scripts/tarball.sh.broken
diff options
context:
space:
mode:
authorYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-03 21:11:41 (GMT)
committerYann E. MORIN" <yann.morin.1998@anciens.enib.fr>2009-01-03 21:11:41 (GMT)
commitb8b7843bea8f636d72540a9debfcc8e524b5d4fe (patch)
tree134d44295eed0ceb87e204c70424436bb45372f1 /scripts/tarball.sh.broken
parent25dcd46fc90beaaa0e6dd0f874525f4b8bdaf239 (diff)
Get rid of all stuff related to building a /delivery' traball:
- building a delivery tarball has long been broken (since crostool-Ng is installable) - get rid of implied do_print_filename, that can be mis-leading now tarballs can not be built /trunk/scripts/build/kernel/bare-metal.sh | 4 0 4 0 ---- /trunk/scripts/build/kernel/linux.sh | 4 0 4 0 ---- /trunk/scripts/build/tools/000-template.sh | 11 0 11 0 ----------- /trunk/scripts/build/tools/100-libelf.sh | 4 0 4 0 ---- /trunk/scripts/build/tools/200-sstrip.sh | 11 1 10 0 +---------- /trunk/scripts/build/binutils.sh | 4 0 4 0 ---- /trunk/scripts/build/cc/gcc.sh | 5 0 5 0 ----- /trunk/scripts/build/debug/000-template.sh | 11 0 11 0 ----------- /trunk/scripts/build/debug/100-dmalloc.sh | 4 0 4 0 ---- /trunk/scripts/build/debug/400-ltrace.sh | 4 0 4 0 ---- /trunk/scripts/build/debug/300-gdb.sh | 7 0 7 0 ------- /trunk/scripts/build/debug/500-strace.sh | 4 0 4 0 ---- /trunk/scripts/build/debug/200-duma.sh | 4 0 4 0 ---- /trunk/scripts/build/libc/none.sh | 5 0 5 0 ----- /trunk/scripts/build/libc/glibc.sh | 10 0 10 0 ---------- /trunk/scripts/build/libc/uClibc.sh | 6 0 6 0 ------ /trunk/scripts/build/libc/eglibc.sh | 10 0 10 0 ---------- /trunk/scripts/build/gmp.sh | 6 0 6 0 ------ /trunk/scripts/build/mpfr.sh | 6 0 6 0 ------ /trunk/docs/overview.txt | 9 0 9 0 --------- 20 files changed, 1 insertion(+), 128 deletions(-)
Diffstat (limited to 'scripts/tarball.sh.broken')
-rwxr-xr-xscripts/tarball.sh.broken102
1 files changed, 0 insertions, 102 deletions
diff --git a/scripts/tarball.sh.broken b/scripts/tarball.sh.broken
deleted file mode 100755
index c26ac0a..0000000
--- a/scripts/tarball.sh.broken
+++ /dev/null
@@ -1,102 +0,0 @@
-#!/bin/bash
-
-# This scripts makes a tarball of the configured toolchain
-# Pre-requisites:
-# - crosstool-NG is configured
-# - components tarball are available
-# - toolchain is built successfully
-
-# We need the functions first:
-. "${CT_TOP_DIR}/scripts/functions"
-
-# Don't care about any log file
-exec >/dev/null
-rm -f "${tmp_log_file}"
-
-# Parse the configuration file:
-. ${CT_TOP_DIR}/.config
-
-# Parse the architecture-specific functions
-. "${CT_LIB_DIR}/arch/${CT_ARCH}/functions"
-
-# Target tuple: CT_TARGET needs a little love:
-CT_DoBuildTargetTuple
-
-# Kludge: if any of the config options needs either CT_TARGET or CT_TOP_DIR,
-# re-parse them:
-. "${CT_TOP_DIR}/.config"
-
-# Build a one-line list of files to include
-CT_DoStep DEBUG "Building list of tarballs to add"
-CT_TARBALLS_DIR="${CT_TOP_DIR}/targets/tarballs"
-CT_TARBALLS=""
-for dir in '' tools debug; do
- CT_DoStep DEBUG "Scanning directory '${dir}'"
- for script in "${CT_TOP_DIR}/scripts/build/${dir}/"*.sh; do
- CT_DoStep DEBUG "Testing component '${script}'"
- [ -n "${script}" ] || continue
- unset do_print_file_name
- . "${script}"
- for file in $(do_print_filename); do
- CT_DoLog DEBUG "Finding tarball for '${file}'"
- [ -n "${file}" ] || continue
- ext=$(CT_GetFileExtension "${file}")
- CT_TestOrAbort "Missing tarball for: '${file}'" -f "${CT_TOP_DIR}/targets/tarballs/${file}${ext}"
- CT_DoLog DEBUG "Found '${file}${ext}'"
- CT_TARBALLS="${CT_TARBALLS} ${file}${ext}"
- done
- CT_EndStep
- done
- CT_EndStep
-done
-CT_EndStep
-
-# We need to emulate a build directory:
-CT_BUILD_DIR="${CT_TOP_DIR}/targets/${CT_TARGET}/build"
-mkdir -p "${CT_BUILD_DIR}"
-CT_MktempDir tempdir
-
-# Save crosstool-NG, as it is configured for the current toolchain.
-topdir=$(basename "${CT_TOP_DIR}")
-CT_Pushd "${CT_TOP_DIR}/.."
-
-botdir=$(pwd)
-
-# Build the list of files to exclude
-CT_DoLog DEBUG "Building list of files to exclude"
-exclude_list="${tempdir}/${CT_TARGET}.list"
-{ echo ".svn"; \
- echo "${topdir}/log.*"; \
- echo "${topdir}/targets/src"; \
- echo "${topdir}/targets/tst"; \
- echo "${topdir}/targets/*-*-*-*"; \
- for t in $(ls -1 "${topdir}/targets/tarballs/"); do \
- case " ${CT_TARBALLS} " in \
- *" ${t} "*) ;; \
- *) echo "${topdir}/targets/tarballs/${t}";; \
- esac; \
- done; \
-} >"${exclude_list}"
-
-# Render the install directory writable
-chmod u+w "${CT_PREFIX_DIR}"
-
-CT_DoLog INFO "Saving crosstool-NG into the toolchain directory"
-tar cvjf "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2" \
- --no-wildcards-match-slash \
- -X "${exclude_list}" \
- "${topdir}" 2>&1 |CT_DoLog ALL
-
-CT_Popd
-
-CT_DoLog INFO "Saving the toolchain"
-tar cvjf "${botdir}/${CT_TARGET}.tar.bz2" "${CT_PREFIX_DIR}" 2>&1 |CT_DoLog ALL
-
-CT_DoLog DEBUG "Getting rid of working directories"
-rm -f "${CT_PREFIX_DIR}/${topdir}.${CT_TARGET}.tar.bzip2"
-rm -rf "${tempdir}"
-
-if [ "${CT_INSTALL_DIR_RO}" = "y" ]; then
- # Render the install directory non-writable
- chmod u-w "${CT_PREFIX_DIR}"
-fi