CVS: packaging makefile,1.37,1.37.2.1

"Sergey A. Borshch" <[email protected]> Mon, 26 Jan 2009 15:57:19 +0000
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/packaging
In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv22606/packaging

Modified Files:
      Tag: MSP430X
	makefile 
Log Message:
gcc: 
 - 430X code >64K support added.
 - 430X data allocation at >64K added.
 - 430X 20bit prologues/epilogues added
 - multilibs added.
binutils-2.18-430X.patch:
 - mova Rsrc,TONI generation fixed.
 - error generation on bad mova args address modes added
 - .farrodata* section added to 430X devices ld scripts
 - unnecessary sections declarations before KEEP removed
 - 2232/2234 RAM size fixed


Index: makefile
===================================================================
RCS file: /cvsroot/mspgcc/packaging/makefile,v
retrieving revision 1.37
retrieving revision 1.37.2.1
diff -u -w -d -r1.37 -r1.37.2.1
--- makefile	31 Dec 2008 02:43:49 -0000	1.37
+++ makefile	26 Jan 2009 15:57:17 -0000	1.37.2.1
@@ -24,6 +24,9 @@
 #
 # [email protected]
 ##############################################################################
+WINDIR=1
+MSYSCON=1
+PWD=$(shell pwd)
 
 # mingw32 crosscompile to create mingw executables for windows targeting the msp430
 ifdef CROSS
@@ -226,7 +229,6 @@
 	cd $(BUILDDIR)/$(BINUTILS) && ./configure --target=msp430 $(CROSSOPT) --prefix=$(PREFIX) \
                 --disable-nls --disable-shared --enable-debug --disable-threads \
                 --with-gcc --with-gnu-as --with-gnu-ld --with-stabs \
-                --disable-multilib \
                 >$(BUILDDIR)/binutils-build.log 2>&1
 	cd $(BUILDDIR)/$(BINUTILS) && make >>$(BUILDDIR)/binutils-build.log 2>&1
 	@echo "## binutils compiled"
@@ -268,7 +270,6 @@
 	cd $(BUILDDIR)/$(GCC); patch -p1 < $(PATCHES)/gcc-3.2.3-__FUNCTION__.patch
 	@echo "## Configuring and building msp430-gcc (this takes a while)"
 	cd $(BUILDDIR)/$(GCC) && ./configure --target=msp430 $(CROSSOPT) --prefix=$(PREFIX) \
-                --disable-multilib \
                 --disable-libc --disable-libssp --disable-intl --disable-libiberty \
                 --with-gcc --with-gnu-ld --with-gnu-as --with-stabs \
                 --disable-shared --disable-threads --disable-win32-registry --disable-nls \
@@ -329,14 +330,10 @@
 	rm -rf $(BUILDDIR)/msp430-libc
 msp430-libc-build: msp430-libc-clean
 	cp -r $(CVSFILES)/msp430-libc $(BUILDDIR)
-	cd $(BUILDDIR)/msp430-libc/src && cat Makefile | sed -e 's^/usr/local/msp430^$(INSTALLDIR)^' > Makefile-new
-	cd $(BUILDDIR)/msp430-libc/src && rm Makefile
-	cd $(BUILDDIR)/msp430-libc/src && mv Makefile-new Makefile
-	mkdir -p $(BUILDDIR)/msp430-libc/src/msp1 $(BUILDDIR)/msp430-libc/src/msp2
-	cd $(BUILDDIR)/msp430-libc/src && make >$(BUILDDIR)/libc-build.log 2>&1
+	cd $(BUILDDIR)/msp430-libc/src && make "prefix=$(INSTALLDIR)" >$(BUILDDIR)/libc-build.log 2>&1
 msp430-libc-install:
 	$(FILELIST) $(INSTALLDIR) >files-before.txt
-	cd $(BUILDDIR)/msp430-libc/src; make install >>$(BUILDDIR)/libc-build.log 2>&1
+	cd $(BUILDDIR)/msp430-libc/src; make "prefix=$(INSTALLDIR)" install >>$(BUILDDIR)/libc-build.log 2>&1
 	$(FILELIST) $(INSTALLDIR) >files-after.txt
 	$(FILEDIFF) files-before.txt files-after.txt >$(BUILDDIR)/files-libc.txt
 	$(FILELIST_RM) files-before.txt files-after.txt


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword