Patchwork newlib: fix extract process for custom version

login
register
mail settings
Submitter Trevor Woerner
Date Feb. 25, 2014, 6:09 p.m.
Message ID <3cb8019727c2b5af6701.1393351759@openSUSE-i7>
Download mbox | patch
Permalink /patch/324054/
State Superseded
Headers show

Comments

Trevor Woerner - Feb. 25, 2014, 6:09 p.m.
# HG changeset patch
# User Trevor Woerner <trevor.woerner@linaro.org>
# Date 1393351239 18000
#      Tue Feb 25 13:00:39 2014 -0500
# Node ID 3cb8019727c2b5af670146f118152a6b948d4bb6
# Parent  9321d9d7af9bd605eec2811b6703392331db3469
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.


--
For unsubscribe information see http://sourceware.org/lists.html#faq
Trevor Woerner - Feb. 25, 2014, 6:33 p.m.
On 02/25/14 13:09, Trevor Woerner wrote:
> # HG changeset patch
> # User Trevor Woerner <trevor.woerner@linaro.org>
> # Date 1393351239 18000
> #      Tue Feb 25 13:00:39 2014 -0500
> # Node ID 3cb8019727c2b5af670146f118152a6b948d4bb6
> # Parent  9321d9d7af9bd605eec2811b6703392331db3469
> newlib: fix extract process for custom version
>

Whoops! Looks like I forgot the SoB line... resending.

--
For unsubscribe information see http://sourceware.org/lists.html#faq

Patch

diff -r 9321d9d7af9b -r 3cb8019727c2 scripts/build/libc/newlib.sh
--- a/scripts/build/libc/newlib.sh	Thu Feb 20 18:23:08 2014 +0000
+++ b/scripts/build/libc/newlib.sh	Tue Feb 25 13:00:39 2014 -0500
@@ -29,7 +29,7 @@ 
 
 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