diff options
author | David Holsgrove <david.holsgrove@xilinx.com> | 2013-03-12 15:13:34 +1000 |
---|---|---|
committer | David Holsgrove <david.holsgrove@xilinx.com> | 2014-12-09 15:51:11 +1000 |
commit | 163a1737b8464ae241c0bfc1dfe61bbc668b3428 (patch) | |
tree | 01c4386affbd3ec88422f1fc5a533614ee7579c5 /scripts/build/libc | |
parent | 71ed5aae34cce6c71ad3de5e9cb1c79e9578e905 (diff) | |
download | crosstool-ng-163a1737b8464ae241c0bfc1dfe61bbc668b3428.tar.gz crosstool-ng-163a1737b8464ae241c0bfc1dfe61bbc668b3428.tar.bz2 crosstool-ng-163a1737b8464ae241c0bfc1dfe61bbc668b3428.zip |
libc/{,e}glibc: If using custom {e}glibc, dont extract or patch
If custom {e}glibc is being used, no need to carry out the
extract or patching phase of scripts/build/libc/glibc-eglibc.sh-common
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/glibc-eglibc.sh-common | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/build/libc/glibc-eglibc.sh-common b/scripts/build/libc/glibc-eglibc.sh-common index af3b1f14..367a80d9 100644 --- a/scripts/build/libc/glibc-eglibc.sh-common +++ b/scripts/build/libc/glibc-eglibc.sh-common @@ -4,10 +4,16 @@ do_libc_extract() { local addon - # Extract the main tarball - CT_Extract "${CT_LIBC}-${CT_LIBC_VERSION}" + # Attempt CT_EXTRACT only if NOT custom, or CUSTOM_LOCATION is not a directory + if [ "${CT_LIBC_CUSTOM}" != "y" \ + -o ! -d "${CT_LIBC_CUSTOM_LOCATION}" ]; then + CT_Extract "${CT_LIBC}-${CT_LIBC_VERSION}" + fi CT_Pushd "${CT_SRC_DIR}/${CT_LIBC}-${CT_LIBC_VERSION}" - CT_Patch nochdir "${CT_LIBC}" "${CT_LIBC_VERSION}" + # Attempt CT_PATCH only if NOT custom + if [ "${CT_LIBC_CUSTOM}" != "y" ]; then + CT_Patch nochdir "${CT_LIBC}" "${CT_LIBC_VERSION}" + fi # Extract the add-opns for addon in $(do_libc_add_ons_list " "); do |