Simplified binutils build process
authorAndrew Waterman <waterman@s144.Millennium.Berkeley.EDU>
Wed, 2 Nov 2011 09:28:36 +0000 (02:28 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 01:28:05 +0000 (18:28 -0700)
There's no need to make a copy of the source directory then build out of it.
Just build out of an empty directory.

tools/compilers/gcc-glibc/Makefile

index c7989cc..a9f05aa 100644 (file)
@@ -168,7 +168,7 @@ glibc-$(GLIBC_VERSION): glibc-$(GLIBC_VERSION).tar.bz2
 
 $(BINARY_PREFIX)binutils-builddir: binutils-$(BINUTILS_VERSION)
        rm -rf $@
-       cp -R binutils-$(BINUTILS_VERSION) $@
+       mkdir -p $@
 
 $(BINARY_PREFIX)gcc-stage1-builddir: gcc-$(GCC_VERSION)
        rm -rf $@
@@ -185,7 +185,8 @@ $(BINARY_PREFIX)gcc-stage2-builddir: gcc-$(GCC_VERSION)
 .$(BINARY_PREFIX)binutils-configure: 
        $(MAKE) $(BINARY_PREFIX)binutils-builddir 
        cd $(BINARY_PREFIX)binutils-builddir; \
-       ./configure --enable-shared \
+       ../binutils-$(BINUTILS_VERSION)/configure \
+                   --enable-shared \
                    --disable-multilib \
                    --disable-nls \
                    --target=$(ARCH)-ros \