summaryrefslogtreecommitdiff
path: root/scripts/build/libc/newlib.sh
diff options
context:
space:
mode:
authorDavid Holsgrove <david.holsgrove@xilinx.com>2012-10-11 04:39:45 (GMT)
committerDavid Holsgrove <david.holsgrove@xilinx.com>2012-10-11 04:39:45 (GMT)
commit66a2b086805dea2898191cca50b0ced33f7ad67a (patch)
tree4370bc9ef055aa41af9f7121aed8b24fde9bb8f5 /scripts/build/libc/newlib.sh
parent8bcd5c689cba82ae6695b77b81dd51c53b0c2b41 (diff)
libc/newlib: 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> [yann.morin.1998@free.fr: fix indentation] Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Message-Id: <d02252752d4dc5e68ae3.1349931202@localhost.localdomain> PatchWork-Id: 190795
Diffstat (limited to 'scripts/build/libc/newlib.sh')
-rw-r--r--scripts/build/libc/newlib.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh
index 3907d7b..3e91631 100644
--- a/scripts/build/libc/newlib.sh
+++ b/scripts/build/libc/newlib.sh
@@ -20,7 +20,10 @@ do_libc_get() {
libc_src="ftp://sources.redhat.com/pub/newlib"
avr32headers_src="http://dev.doredevelopment.dk/avr32-toolchain/sources"
- if [ -z "${CT_LIBC_NEWLIB_CVS}" ]; then
+ if [ "${CT_LIBC_NEWLIB_CUSTOM}" = "y" ]; then
+ CT_GetCustom "newlib" "${CT_LIBC_VERSION}" \
+ "${CT_LIBC_NEWLIB_CUSTOM_LOCATION}"
+ elif [ -z "${CT_LIBC_NEWLIB_CVS}" ]; then
CT_GetFile "newlib-${CT_LIBC_VERSION}" ${libc_src}
else
CT_GetCVS "newlib-$(libc_newlib_version)" \
@@ -36,6 +39,12 @@ do_libc_get() {
}
do_libc_extract() {
+ # If using custom directory location, nothing to do
+ if [ "${CT_LIBC_NEWLIB_CUSTOM}" != "y" \
+ -a -d "${CT_SRC_DIR}/newlib-$(libc_newlib_version)" ]; then
+ return 0
+ fi
+
CT_Extract "newlib-$(libc_newlib_version)"
CT_Patch "newlib" "$(libc_newlib_version)"