diff options
author | David Holsgrove <david.holsgrove@xilinx.com> | 2013-03-12 15:13:48 +1000 |
---|---|---|
committer | David Holsgrove <david.holsgrove@xilinx.com> | 2014-12-09 15:51:11 +1000 |
commit | 79b988129514d8bcf7858fc6b527fd2315c544a2 (patch) | |
tree | cfba2b54a6a12ed3a8774bc38ce2d474a6d1bf3a /scripts/build/libc | |
parent | 6df76e2c3e5e9fe93a4e47e4f5f64554b8fde07d (diff) | |
download | crosstool-ng-79b988129514d8bcf7858fc6b527fd2315c544a2.tar.gz crosstool-ng-79b988129514d8bcf7858fc6b527fd2315c544a2.tar.bz2 crosstool-ng-79b988129514d8bcf7858fc6b527fd2315c544a2.zip |
libc/glibc: Add CUSTOM version and CUSTOM_LOCATION config options and GetCustom
CUSTOM_LOCATION config options only presented in menuconfig if component
CUSTOM version selected.
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
Diffstat (limited to 'scripts/build/libc')
-rw-r--r-- | scripts/build/libc/glibc.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/scripts/build/libc/glibc.sh b/scripts/build/libc/glibc.sh index 7bc47c58..8093d94c 100644 --- a/scripts/build/libc/glibc.sh +++ b/scripts/build/libc/glibc.sh @@ -19,9 +19,14 @@ do_libc_get() { addons_list=($(do_libc_add_ons_list " ")) # Main source - CT_GetFile "glibc-${CT_LIBC_VERSION}" \ + if [ "${CT_LIBC_CUSTOM}" = "y" ]; then + CT_GetCustom "glibc" "${CT_LIBC_VERSION}" "${CT_LIBC_GLIBC_CUSTOM_LOCATION}" + CT_LIBC_CUSTOM_LOCATION="${CT_SRC_DIR}/glibc-${CT_LIBC_VERSION}" + else + CT_GetFile "glibc-${CT_LIBC_VERSION}" \ {http,ftp,https}://ftp.gnu.org/gnu/glibc \ ftp://{sourceware.org,gcc.gnu.org}/pub/glibc/{releases,snapshots} + fi # C library addons for addon in "${addons_list[@]}"; do |