CVS: packaging README-MAINTAINER.txt, 1.4, 1.5 makefile, 1.27, 1.28

Chris Liechti <[email protected]> Wed, 14 May 2008 18:01:51 -0700
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.cvs
Message-ID <[email protected]>
Update of /cvsroot/mspgcc/packaging
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10834

Modified Files:
	README-MAINTAINER.txt makefile 
Log Message:
- updates for 24xx devices
- cross compile preparations
- some notes


Index: README-MAINTAINER.txt
===================================================================
RCS file: /cvsroot/mspgcc/packaging/README-MAINTAINER.txt,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -w -d -r1.4 -r1.5
--- README-MAINTAINER.txt	16 Feb 2007 16:12:47 -0000	1.4
+++ README-MAINTAINER.txt	15 May 2008 01:01:48 -0000	1.5
@@ -70,12 +70,25 @@
 
 Dependencies
 ------------
-To compile he toolchain a number of packeages are required on the host system.
+To compile he toolchain a number of packages are required on the host system.
 This is a list for Ubuntu Linux::
 
     $ sudo apt-get install build-essential autoconf automake1.9 make \
                            libncurses5-dev texinfo
 
+USB JTAGs
+---------
+if using udev ``/udev/rules.d/msp-fet430uif.rules`` should be filled with::
+
+    SUBSYSTEM=="usb_device" ACTION=="add" SYSFS{product}=="MSP-FET430UIF JTAG Tool"
+      SYSFS{bNumConfigurations}=="2"
+      SYSFS{bConfigurationValue}=="1"
+      RUN+="/bin/sh -c 'echo 2 > /sys%p/device/bConfigurationValue'", MODE="0666"
+
+alternatively:
+
+    SUBSYSTEM=="usb",ACTION=="add",SYSFS{idVendor}=="0451",SYSFS{idProduct}=="f430",SYSFS{bNumConfigurations}=="2",SYSFS{bConfigurationValue}=="1",RUN+="/bin/bash -c 'echo 2 > /sys%p/bConfigurationValue'"
+
 
 mspgcc Windows howto
 ====================

Index: makefile
===================================================================
RCS file: /cvsroot/mspgcc/packaging/makefile,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -w -d -r1.27 -r1.28
--- makefile	16 Feb 2007 16:12:47 -0000	1.27
+++ makefile	15 May 2008 01:01:48 -0000	1.28
@@ -24,24 +24,33 @@
 #
 # [email protected]
 ##############################################################################
+
+# mingw32 crosscompile to create mingw executables for windows targeting the msp430
+ifdef CROSS
+WINDIR=1
+#CROSSOPT = --host=i586-mingw32msvc --build=x86_64-unknown-linux-gnu 
+CROSSOPT = --host=i586-mingw32msvc --build=i686-pc-linux-gnu
+else
+CROSSOPT=
+endif
+
 ifdef WINDIR
 WINDOWS         = yes
 endif
 
-
 # versions
 #~ BINUTILS_VERSION        := 060404
 BINUTILS_VERSION        := 2.17
 GCC_VERSION             := 3.2.3
-GDB_VERSION             := 5.1.1
-#~ GDB_VERSION             := 6.0
+#~ GDB_VERSION             := 5.1.1
+GDB_VERSION             := 6.0
 
 # location of the gnu source tarballs
 ARCHIVES        = $(PWD)/archives
 # location of the patches
 PATCHES         = $(PWD)/patches
 # cvs checkout of the mspgcc project (must have a subdir called "gcc", "msp430-libc" etc)
-# see also "sf" taregt below
+# see also "sf" target below
 #~ CVSFILES        = $(BUILDDIR)/sf
 # if checked out in the packaging folder, the other files are one level up:
 CVSFILES        = $(dir $(PWD))
@@ -203,10 +212,14 @@
 	@echo "## Unpacking binutils"
 	cd $(BUILDDIR) && tar xjf $(ARCHIVES)/$(BINUTILS).tar.bz2
 	@echo "## Applying extra mspgcc patches..."
-	#~ cd $(BUILDDIR)/$(BINUTILS); patch -p1 < $(PATCHES)/binutils-14x1-21x1-42x-42x0.patch
 	cd $(BUILDDIR)/$(BINUTILS); patch -p1 < $(PATCHES)/binutils-14x1-20x1-20x2-20x3-22x4-42x-42x0-461x.patch
+	cd $(BUILDDIR)/$(BINUTILS); patch -p1 < $(PATCHES)/binutils-2.17-msp430x24x-msp430x26x.patch
 	@echo "## Configure and building binutils (this takes a while)"
-	cd $(BUILDDIR)/$(BINUTILS) && ./configure --target=msp430 --prefix=$(INSTALLDIR) >$(BUILDDIR)/binutils-build.log 2>&1
+	cd $(BUILDDIR)/$(BINUTILS) && ./configure --target=msp430 $(CROSSOPT) --prefix=$(INSTALLDIR) \
+                --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"
 binutils-install:
@@ -217,6 +230,8 @@
 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 # The compiler
 # optional --program-suffix=-x.x --enable-languages=c,c++,ada,f77 --disable-nls 
+# --with-newlib                     # Alternatively use --without-headers here
+# --enable-interwork 
 gcc-clean:
 	@echo "###############################################################################"
 	@echo "##  msp430-gcc ($(GCC_VERSION))"
@@ -240,8 +255,13 @@
 endif
 	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 --prefix=$(INSTALLDIR) --enable-languages=c,c++ >$(BUILDDIR)/gcc-build.log 2>&1
-	cd $(BUILDDIR)/$(GCC); make >>$(BUILDDIR)/gcc-build.log 2>&1
+	cd $(BUILDDIR)/$(GCC) && ./configure --target=msp430 $(CROSSOPT) --prefix=$(INSTALLDIR) \
+                --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 \
+                --enable-languages=c,c++ >$(BUILDDIR)/gcc-build.log 2>&1
+	cd $(BUILDDIR)/$(GCC) && make >>$(BUILDDIR)/gcc-build.log 2>&1
 	@echo "## msp430-gcc done"
 gcc-install:
 	$(FILELIST) $(INSTALLDIR) >files-before.txt
@@ -262,8 +282,8 @@
             $(ARCHIVES)/gdb-$(GDB_VERSION).tar.bz2
 	cd $(BUILDDIR) && tar xjf $(ARCHIVES)/gdb-$(GDB_VERSION).tar.bz2
 	@echo "## Applying mspgcc patches"
-	cp -r $(CVSFILES)/gdb/gdb-$(GDB_VERSION)/* $(BUILDDIR)/$(GDB)
-	#~ cp -r $(CVSFILES)/gdb/gdb-current/* $(BUILDDIR)/$(GDB)
+	#~ cp -r $(CVSFILES)/gdb/gdb-$(GDB_VERSION)/* $(BUILDDIR)/$(GDB)
+	cp -r $(CVSFILES)/gdb/gdb-current/* $(BUILDDIR)/$(GDB)
 	@echo "## Configuring and building msp430-gdb (this takes a while)"
 	cd $(BUILDDIR)/$(GDB); ./configure --target=msp430 --prefix=$(INSTALLDIR) --disable-nls >$(BUILDDIR)/gdb-build.log 2>&1
 	cd $(BUILDDIR)/$(GDB); make >>$(BUILDDIR)/gdb-build.log 2>&1


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/