Zheng Bao ([email protected]) just uploaded a new patch set to gerrit, which 
you can find at http://review.coreboot.org/1502

-gerrit

commit 1518063a5f96afeed1ae19b93011c37e13b2ce44
Author: Zheng Bao <[email protected]>
Date:   Fri Sep 28 16:18:58 2012 +0800

    crossgcc: Allow the non-gnu tar and patch work on XxxBSD
    
    For BSD, patch and tar are not default GNU. Add a work around
    to let the non-gun patch and tar work.
    
    Change-Id: I0a9d0bb0e535aa5e0dde146db330c3c8d7b4d8cb
    Signed-off-by: Zheng Bao <[email protected]>
    Signed-off-by: Zheng Bao <[email protected]>
---
 util/crossgcc/buildgcc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/util/crossgcc/buildgcc b/util/crossgcc/buildgcc
index 67477a5..c2003d2 100755
--- a/util/crossgcc/buildgcc
+++ b/util/crossgcc/buildgcc
@@ -99,6 +99,15 @@ searchgnu()
                        fi
                fi
        done
+       # A workaround for XxxBSD, whose nongnu patch and tar also work.
+       if [ `uname` = "FreeBSD" -o `uname` = "NetBSD" ]; then
+               if [ $1 != "make" ]; then
+                       if test -x "`which $1 2>/dev/null`"; then
+                               echo $1
+                               return
+                       fi
+               fi
+       fi
        printf "${RED}ERROR:${red} Missing toolchain: $1${NC}\n" >&2
        exit 1
 }

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to