From 37373340808d71858cd33fa79b6fc5016c52846a Mon Sep 17 00:00:00 2001 From: Trevor Woerner Date: Tue, 25 Feb 2014 13:34:48 -0500 Subject: newlib: fix extract process for custom version newlib: fix extract process for custom version If the user specifies the use of a custom newlib version, the logic in the extract function was reversed, so this step would fail. Signed-off-by: Trevor Woerner [yann.morin.1998@free.fr: keep leading indentation] Signed-off-by: "Yann E. MORIN" Message-Id: Patchwork-Id: 324060 diff --git a/scripts/build/libc/newlib.sh b/scripts/build/libc/newlib.sh index fa6d622..cae4b9f 100644 --- a/scripts/build/libc/newlib.sh +++ b/scripts/build/libc/newlib.sh @@ -29,7 +29,7 @@ do_libc_get() { do_libc_extract() { # If using custom directory location, nothing to do - if [ "${CT_LIBC_NEWLIB_CUSTOM}" != "y" \ + if [ "${CT_LIBC_NEWLIB_CUSTOM}" = "y" \ -a -d "${CT_SRC_DIR}/newlib-${CT_LIBC_VERSION}" ]; then return 0 fi -- cgit v0.10.2-6-g49f6