paparazzi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paparazzi-commits] [5275] added scripts to generate the paparazzi-stm32


From: antoine drouin
Subject: [paparazzi-commits] [5275] added scripts to generate the paparazzi-stm32 package
Date: Mon, 09 Aug 2010 13:33:16 +0000

Revision: 5275
          http://svn.sv.gnu.org/viewvc/?view=rev&root=paparazzi&revision=5275
Author:   poine
Date:     2010-08-09 13:33:15 +0000 (Mon, 09 Aug 2010)
Log Message:
-----------
added scripts to generate the paparazzi-stm32 package

Added Paths:
-----------
    toolchains/stm32/
    toolchains/stm32/paparazzi-stm32-1.0.0/
    toolchains/stm32/paparazzi-stm32-1.0.0/Makefile
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/README.Debian
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/changelog
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/compat
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/control
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/copyright
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/dirs
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/docs
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/files
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/manpage.1.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/menu.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/
    
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/control
    
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/md5sums
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/
    
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/
    
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/
    
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/changelog.Debian.gz
    
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/copyright
    
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.debhelper.log
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.docs
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.install
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.substvars
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.debhelper.log
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.default.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.doc-base.EX
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.substvars
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/postinst.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/postrm.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/preinst.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/prerm.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/rules
    toolchains/stm32/paparazzi-stm32-1.0.0/debian/watch.ex
    toolchains/stm32/paparazzi-stm32-1.0.0/patch_libcmsis
    toolchains/stm32/paparazzi-stm32-1.0.0/patch_libstm32
    toolchains/stm32/paparazzi-stm32-1.0.0/patch_openocd
    toolchains/stm32/paparazzi-stm32-1.0.0/summon-arm-toolchain

Added: toolchains/stm32/paparazzi-stm32-1.0.0/Makefile
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/Makefile                             
(rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/Makefile     2010-08-09 13:33:15 UTC 
(rev 5275)
@@ -0,0 +1,37 @@
+# Hey Emacs, this is a -*- makefile -*-
+#
+#   $Id$
+#   Copyright (C) 2009 Antoine Drouin
+#
+# This file is part of paparazzi.
+#
+# paparazzi is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+#
+# paparazzi is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with paparazzi; see the file COPYING.  If not, write to
+# the Free Software Foundation, 59 Temple Place - Suite 330,
+# Boston, MA 02111-1307, USA.  
+# 
+
+#
+# Crappy makefile to build a loosy stm32 toolchain package
+#
+
+all:
+       ./summon-arm-toolchain
+
+
+install:
+       mkdir -p $(DESTDIR)/opt/paparazzi
+       cp -a /opt/paparazzi/stm32 $(DESTDIR)/opt/paparazzi
+
+clean:
+       rm -rf *~ sources build .binutils* .gcc* .gdb* .libcmsis* .libstm32* 
.newlib* .openocd* build-arch-stamp build-indep-stamp configure-stamp

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/README.Debian
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/README.Debian                 
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/README.Debian 2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,6 @@
+paparazzi-stm32 for Debian
+--------------------------
+
+<possible notes regarding this package - if none, delete this file>
+
+ -- Antoine Drouin <address@hidden>  Tue, 23 Mar 2010 11:06:18 -0700

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/changelog
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/changelog                     
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/changelog     2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,17 @@
+paparazzi-stm32 (1.0.0-3) unstable; urgency=low
+
+  * better patch to openocd
+
+ -- Antoine Drouin <address@hidden>  Thu, 5 August 2010 02:58:18 +0000
+
+paparazzi-stm32 (1.0.0-2) unstable; urgency=low
+
+  * upgraded to gcc 4.4.3, patch to libstm32 header, patch to openocd
+
+ -- Antoine Drouin <address@hidden>  Thu, 22 Apr 2010 02:58:18 +0000
+
+paparazzi-stm32 (1.0.0-1) unstable; urgency=low
+
+  * Initial release
+
+ -- Antoine Drouin <address@hidden>  Tue, 23 Mar 2010 11:06:18 -0700

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/compat
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/compat                        
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/compat        2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1 @@
+7

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/control
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/control                       
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/control       2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,18 @@
+Source: paparazzi-stm32
+Section: embedded
+Priority: extra
+Maintainer: Antoine Drouin <address@hidden>
+Build-Depends: debhelper (>= 7)
+Standards-Version: 3.8.1
+Homepage: <insert the upstream URL, if relevant>
+
+Package: paparazzi-stm32
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Paparazzi support for stm32 processors
+ <insert long description, indented with spaces>
+
+Package: paparazzi-stm32-doc
+Architecture: all
+Description: documentation for paparazzi-stm32
+ <insert long description, indented with spaces>

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/copyright
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/copyright                     
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/copyright     2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,28 @@
+This package was debianized by Antoine Drouin <address@hidden> on
+Tue, 23 Mar 2010 11:06:18 -0700.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+    <put author's name and email here>
+    <likewise for another author>
+
+Copyright:
+
+    <Copyright (C) YYYY Name OfAuthor>
+    <likewise for another author>
+
+License:
+
+    <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is:
+
+    Copyright (C) 2010 Antoine Drouin <address@hidden>
+
+and is licensed under the GPL version 3, 
+see `/usr/share/common-licenses/GPL-3'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/dirs
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/dirs                          
(rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/dirs  2010-08-09 13:33:15 UTC 
(rev 5275)
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/files
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/files                         
(rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/files 2010-08-09 13:33:15 UTC 
(rev 5275)
@@ -0,0 +1,2 @@
+paparazzi-stm32_1.0.0-3_i386.deb embedded extra
+paparazzi-stm32-doc_1.0.0-3_all.deb embedded extra

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/manpage.1.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/manpage.1.ex                  
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/manpage.1.ex  2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,59 @@
+.\"                                      Hey, EMACS: -*- nroff -*-
+.\" First parameter, NAME, should be all caps
+.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
+.\" other parameters are allowed: see man(7), man(1)
+.TH PAPARAZZI-STM32 SECTION "March 23, 2010"
+.\" Please adjust this date whenever revising the manpage.
+.\"
+.\" Some roff macros, for reference:
+.\" .nh        disable hyphenation
+.\" .hy        enable hyphenation
+.\" .ad l      left justify
+.\" .ad b      justify to both left and right margins
+.\" .nf        disable filling
+.\" .fi        enable filling
+.\" .br        insert line break
+.\" .sp <n>    insert n+1 empty lines
+.\" for manpage-specific macros, see man(7)
+.SH NAME
+paparazzi-stm32 \- program to do something
+.SH SYNOPSIS
+.B paparazzi-stm32
+.RI [ options ] " files" ...
+.br
+.B bar
+.RI [ options ] " files" ...
+.SH DESCRIPTION
+This manual page documents briefly the
+.B paparazzi-stm32
+and
+.B bar
+commands.
+.PP
+.\" TeX users may be more comfortable with the \fB<whatever>\fP and
+.\" \fI<whatever>\fP escape sequences to invode bold face and italics,
+.\" respectively.
+\fBpaparazzi-stm32\fP is a program that...
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long
+options starting with two dashes (`-').
+A summary of options is included below.
+For a complete description, see the Info files.
+.TP
+.B \-h, \-\-help
+Show summary of options.
+.TP
+.B \-v, \-\-version
+Show version of program.
+.SH SEE ALSO
+.BR bar (1),
+.BR baz (1).
+.br
+The programs are documented fully by
+.IR "The Rise and Fall of a Fooish Bar" ,
+available via the Info system.
+.SH AUTHOR
+paparazzi-stm32 was written by <upstream author>.
+.PP
+This manual page was written by Antoine Drouin <address@hidden>,
+for the Debian project (and may be used by others).

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/menu.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/menu.ex                       
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/menu.ex       2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,2 @@
+?package(paparazzi-stm32):needs="X11|text|vc|wm" 
section="Applications/see-menu-manual"\
+  title="paparazzi-stm32" command="/usr/bin/paparazzi-stm32"

Added: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/control
===================================================================
--- 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/control
                            (rev 0)
+++ 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/control
    2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,11 @@
+Package: paparazzi-stm32-doc
+Source: paparazzi-stm32
+Version: 1.0.0-3
+Architecture: all
+Maintainer: Antoine Drouin <address@hidden>
+Installed-Size: 32
+Section: embedded
+Priority: extra
+Homepage: <insert the upstream URL, if relevant>
+Description: documentation for paparazzi-stm32
+ <insert long description, indented with spaces>

Added: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/md5sums
===================================================================
--- 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/md5sums
                            (rev 0)
+++ 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/DEBIAN/md5sums
    2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,2 @@
+78a26c056de6fb7926c5ab95b6bd6a1c  usr/share/doc/paparazzi-stm32-doc/copyright
+7dde20423f1e81e8663c61b20784133b  
usr/share/doc/paparazzi-stm32-doc/changelog.Debian.gz

Added: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/changelog.Debian.gz
===================================================================
(Binary files differ)


Property changes on: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/changelog.Debian.gz
___________________________________________________________________
Added: svn:mime-type
   + application/octet-stream

Added: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/copyright
===================================================================
--- 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/copyright
                               (rev 0)
+++ 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc/usr/share/doc/paparazzi-stm32-doc/copyright
       2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,28 @@
+This package was debianized by Antoine Drouin <address@hidden> on
+Tue, 23 Mar 2010 11:06:18 -0700.
+
+It was downloaded from <url://example.com>
+
+Upstream Author(s):
+
+    <put author's name and email here>
+    <likewise for another author>
+
+Copyright:
+
+    <Copyright (C) YYYY Name OfAuthor>
+    <likewise for another author>
+
+License:
+
+    <Put the license of the package here indented by 4 spaces>
+
+The Debian packaging is:
+
+    Copyright (C) 2010 Antoine Drouin <address@hidden>
+
+and is licensed under the GPL version 3, 
+see `/usr/share/common-licenses/GPL-3'.
+
+# Please also look if there are files or directories which have a
+# different copyright/license attached and list them here.

Added: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.debhelper.log
===================================================================
--- 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.debhelper.log 
                            (rev 0)
+++ 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.debhelper.log 
    2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,16 @@
+dh_prep
+dh_installdirs
+dh_install
+dh_installchangelogs
+dh_installdocs
+dh_installexamples
+dh_installman
+dh_link
+dh_compress
+dh_fixperms
+dh_makeshlibs
+dh_installdeb
+dh_shlibdeps
+dh_gencontrol
+dh_md5sums
+dh_builddeb

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.docs
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.docs      
                        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.docs      
2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1 @@
+#DOCS#

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.install
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.install   
                        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.install   
2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1 @@
+#DOCS#

Added: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.substvars
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.substvars 
                        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32-doc.substvars 
2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1 @@
+misc:Depends=

Added: 
toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.debhelper.log
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.debhelper.log 
                        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.debhelper.log 
2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,16 @@
+dh_prep
+dh_installdirs
+dh_install
+dh_installchangelogs
+dh_installdocs
+dh_installexamples
+dh_installman
+dh_link
+dh_compress
+dh_fixperms
+dh_makeshlibs
+dh_installdeb
+dh_shlibdeps
+dh_gencontrol
+dh_md5sums
+dh_builddeb

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.default.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.default.ex    
                        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.default.ex    
2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,10 @@
+# Defaults for paparazzi-stm32 initscript
+# sourced by /etc/init.d/paparazzi-stm32
+# installed at /etc/default/paparazzi-stm32 by the maintainer scripts
+
+#
+# This is a POSIX shell fragment
+#
+
+# Additional options that are passed to the Daemon.
+DAEMON_OPTS=""

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.doc-base.EX
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.doc-base.EX   
                        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.doc-base.EX   
2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,20 @@
+Document: paparazzi-stm32
+Title: Debian paparazzi-stm32 Manual
+Author: <insert document author here>
+Abstract: This manual describes what paparazzi-stm32 is
+ and how it can be used to
+ manage online manuals on Debian systems.
+Section: unknown
+
+Format: debiandoc-sgml
+Files: /usr/share/doc/paparazzi-stm32/paparazzi-stm32.sgml.gz
+
+Format: postscript
+Files: /usr/share/doc/paparazzi-stm32/paparazzi-stm32.ps.gz
+
+Format: text
+Files: /usr/share/doc/paparazzi-stm32/paparazzi-stm32.text.gz
+
+Format: HTML
+Index: /usr/share/doc/paparazzi-stm32/html/index.html
+Files: /usr/share/doc/paparazzi-stm32/html/*.html

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.substvars
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.substvars     
                        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/paparazzi-stm32.substvars     
2010-08-09 13:33:15 UTC (rev 5275)
@@ -0,0 +1,2 @@
+shlibs:Depends=libc6 (>= 2.11), libexpat1 (>= 1.95.8), libftdi1 (>= 0.17), 
libgmp3c2, libmpfr1ldbl, libncurses5 (>= 5.6+20071006-3), libpython2.6 (>= 
2.6), libusb-0.1-4 (>= 2:0.1.12), zlib1g (>= 1:1.1.4)
+misc:Depends=

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/postinst.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/postinst.ex                   
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/postinst.ex   2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,39 @@
+#!/bin/sh
+# postinst script for paparazzi-stm32
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <postinst> `abort-remove'
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+    ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/postrm.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/postrm.ex                     
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/postrm.ex     2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,37 @@
+#!/bin/sh
+# postrm script for paparazzi-stm32
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <overwriter>
+#          <overwriter-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+    ;;
+
+    *)
+        echo "postrm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/preinst.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/preinst.ex                    
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/preinst.ex    2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,35 @@
+#!/bin/sh
+# preinst script for paparazzi-stm32
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    install|upgrade)
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/prerm.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/prerm.ex                      
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/prerm.ex      2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,38 @@
+#!/bin/sh
+# prerm script for paparazzi-stm32
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <prerm> `remove'
+#        * <old-prerm> `upgrade' <new-version>
+#        * <new-prerm> `failed-upgrade' <old-version>
+#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
+#        * <deconfigured's-prerm> `deconfigure' `in-favour'
+#          <package-being-installed> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+    remove|upgrade|deconfigure)
+    ;;
+
+    failed-upgrade)
+    ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/rules
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/rules                         
(rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/rules 2010-08-09 13:33:15 UTC 
(rev 5275)
@@ -0,0 +1,121 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+#
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+#
+# Modified to make a template file for a multi-binary package with separated
+# build-arch and build-indep targets  by Bill Allombert 2001
+
+# Uncomment this to turn on verbose mode.
+export DH_VERBOSE=1
+
+# This has to be exported to make some magic below work.
+export DH_OPTIONS
+
+#libgmp3-dev 
+#libmpfr-dev 
+
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+       touch configure-stamp
+
+
+#Architecture
+build: build-arch build-indep
+
+build-arch: build-arch-stamp
+build-arch-stamp: configure-stamp  
+
+       # Add here commands to compile the arch part of the package.
+       $(MAKE)
+       touch $@
+
+build-indep: build-indep-stamp
+build-indep-stamp: configure-stamp  
+
+       # Add here commands to compile the indep part of the package.
+       #$(MAKE) doc
+       touch $@
+
+clean: 
+       dh_testdir
+       dh_testroot
+       rm -f build-arch-stamp build-indep-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       $(MAKE) clean
+
+       dh_clean 
+
+install: install-indep install-arch
+install-indep:
+       dh_testdir
+       dh_testroot
+       dh_prep -i 
+       dh_installdirs -i
+
+       # Add here commands to install the indep part of the package into
+       # debian/<package>-doc.
+       #INSTALLDOC#
+
+       dh_install -i
+
+install-arch:
+       dh_testdir
+       dh_testroot
+       dh_prep -s 
+       dh_installdirs -s
+
+       # Add here commands to install the arch part of the package into
+       # debian/tmp.
+       $(MAKE) DESTDIR=$(CURDIR)/debian/paparazzi-stm32 install
+
+       dh_install -s
+# Must not depend on anything. This is to be called by
+# binary-arch/binary-indep
+# in another 'make' thread.
+binary-common:
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+       dh_installexamples
+#      dh_installmenu
+#      dh_installdebconf
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_python
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+       dh_installman
+       dh_link
+#      dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+       dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+# Build architecture independant packages using the common target.
+binary-indep: build-indep install-indep
+       $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
+
+# Build architecture dependant packages using the common target.
+binary-arch: build-arch install-arch
+       $(MAKE) -f debian/rules DH_OPTIONS=-s binary-common
+
+binary: binary-arch binary-indep
+.PHONY: build clean binary-indep binary-arch binary install install-indep 
install-arch configure


Property changes on: toolchains/stm32/paparazzi-stm32-1.0.0/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: toolchains/stm32/paparazzi-stm32-1.0.0/debian/watch.ex
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/debian/watch.ex                      
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/debian/watch.ex      2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,23 @@
+# Example watch control file for uscan
+# Rename this file to "watch" and then you can run the "uscan" command
+# to check for upstream updates and more.
+# See uscan(1) for format
+
+# Compulsory line, this is a version 3 file
+version=3
+
+# Uncomment to examine a Webpage
+# <Webpage URL> <string match>
+#http://www.example.com/downloads.php paparazzi-stm32-(.*)\.tar\.gz
+
+# Uncomment to examine a Webserver directory
+#http://www.example.com/pub/paparazzi-stm32-(.*)\.tar\.gz
+
+# Uncommment to examine a FTP server
+#ftp://ftp.example.com/pub/paparazzi-stm32-(.*)\.tar\.gz debian uupdate
+
+# Uncomment to find new files on sourceforge, for devscripts >= 2.9
+# http://sf.net/paparazzi-stm32/paparazzi-stm32-(.*)\.tar\.gz
+
+# Uncomment to find new files on GooglePages
+# http://example.googlepages.com/foo.html paparazzi-stm32-(.*)\.tar\.gz

Added: toolchains/stm32/paparazzi-stm32-1.0.0/patch_libcmsis
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/patch_libcmsis                       
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/patch_libcmsis       2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,13 @@
+diff -uNr paparazzi.orig/stm32/arm-none-eabi/include/cmsis/stm32.h 
paparazzi/stm32/arm-none-eabi/include/cmsis/stm32.h
+--- paparazzi.orig/stm32/arm-none-eabi/include/cmsis/stm32.h   2010-04-22 
00:16:55.000000000 +0200
++++ paparazzi/stm32/arm-none-eabi/include/cmsis/stm32.h        2010-04-22 
00:15:30.000000000 +0200
+@@ -234,7 +234,9 @@
+ //typedef __I uint16_t vuc16;  /*!< Read Only */
+ //typedef __I uint8_t vuc8;   /*!< Read Only */
+ 
++#ifndef FALSE
+ typedef enum {FALSE = 0, TRUE = !FALSE} bool;
++#endif
+ 
+ typedef enum {RESET = 0, SET = !RESET} FlagStatus, ITStatus;
+ 

Added: toolchains/stm32/paparazzi-stm32-1.0.0/patch_libstm32
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/patch_libstm32                       
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/patch_libstm32       2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,12 @@
+diff -uNr libstm32-v3.0.0-1.orig/src/Makefile libstm32-v3.0.0-1/src/Makefile
+--- libstm32-v3.0.0-1.patched/src/Makefile     2010-08-08 02:25:03.000000000 
+0200
++++ libstm32-v3.0.0-1/src/Makefile     2009-05-14 02:20:13.000000000 +0200
+@@ -25,7 +25,7 @@
+ CC=${compiler_prefix}gcc
+ AR=${compiler_prefix}ar
+ AS=${compiler_prefix}as
+-CFLAGS=-I../include -fno-common -Os -g -mcpu=cortex-m3 -mthumb 
-ffunction-sections -fdata-sections
++CFLAGS=-I../include -Wall  -fno-common -Os -g -mcpu=cortex-m3 -mthumb 
-ffunction-sections -fdata-sections -D'assert_param(_cond)={}'
+ ARFLAGS=rcsv
+ ASFLAGS=-ahls -mapcs-32
+ 

Added: toolchains/stm32/paparazzi-stm32-1.0.0/patch_openocd
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/patch_openocd                        
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/patch_openocd        2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,129 @@
+diff --git a/src/jtag/drivers/ft2232.c b/src/jtag/drivers/ft2232.c
+index 1a0eb4b..7440f0c 100644
+--- a/src/jtag/drivers/ft2232.c
++++ b/src/jtag/drivers/ft2232.c
+@@ -188,6 +188,7 @@ static int signalyzer_init(void);
+ static int signalyzer_h_init(void);
+ static int ktlink_init(void);
+ static int redbee_init(void);
++static int lisa_l_init(void);
+ 
+ /* reset procedures for supported layouts */
+ static void ftx23_reset(int trst, int srst);
+@@ -210,6 +211,7 @@ static void flyswatter_jtag_blink(void);
+ static void turtle_jtag_blink(void);
+ static void signalyzer_h_blink(void);
+ static void ktlink_blink(void);
++static void lisa_l_blink(void);
+ 
+ /* common transport support options */
+ 
+@@ -303,6 +305,12 @@ static const struct ft2232_layout  ft2232_layouts[] =
+               .reset = redbee_reset,
+               .channel = INTERFACE_B,
+       },
++      { .name = "lisa-l",
++              .init = lisa_l_init,
++              .reset = ftx23_reset,
++              .blink = lisa_l_blink,
++              .channel = INTERFACE_B,
++      },
+       { .name = NULL, /* END OF TABLE */ },
+ };
+ 
+@@ -3093,6 +3101,39 @@ static int cortino_jtag_init(void)
+       return ERROR_OK;
+ }
+ 
++static int lisa_l_init(void)
++{
++      uint8_t  buf[3];
++      uint32_t bytes_written;
++
++      /*
++       * NOTE:  This is now _specific_ to the "usbjtag" layout.
++       * Don't try cram any more layouts into this.
++       */
++      ftx232_dbus_init();
++
++      nTRST    = 0x10;
++      nTRSTnOE = 0x10;
++      nSRST    = 0x40;
++      nSRSTnOE = 0x40;
++
++      high_output = 0x00;
++      high_direction = 0x18;
++
++      /* initialize high port */
++      buf[0] = 0x82; /* command "set data bits high byte" */
++      buf[1] = high_output;
++      buf[2] = high_direction;
++      LOG_DEBUG("%2.2x %2.2x %2.2x", buf[0], buf[1], buf[2]);
++
++      if (ft2232_write(buf, sizeof(buf), &bytes_written) != ERROR_OK)
++      {
++              LOG_ERROR("couldn't initialize FT2232 with 'lisa_l' layout");
++              return ERROR_JTAG_INIT_FAILED;
++      }
++
++      return ftx232_dbus_write();
++}
+ static void olimex_jtag_blink(void)
+ {
+       /* Olimex ARM-USB-OCD has a LED connected to ACBUS3
+@@ -3145,6 +3186,25 @@ static void turtle_jtag_blink(void)
+       buffer_write(high_direction);
+ }
+ 
++static void lisa_l_blink(void)
++{
++      /*
++       * Lisa/L has two LEDs connected to BCBUS3 and ACBUS4
++       */
++      if (high_output & 0x10)
++      {
++              high_output = 0x08;
++      }
++      else
++      {
++              high_output = 0x10;
++      }
++
++      buffer_write(0x82);
++      buffer_write(high_output);
++      buffer_write(high_direction);
++}
++
+ static int ft2232_quit(void)
+ {
+ #if BUILD_FT2232_FTD2XX == 1
+diff --git a/tcl/board/lisa-l.cfg b/tcl/board/lisa-l.cfg
+new file mode 100644
+index 0000000..00afa5e
+--- /dev/null
++++ b/tcl/board/lisa-l.cfg
+@@ -0,0 +1,7 @@
++# the Lost Illusions Serendipitous Autopilot
++# http://paparazzi.enac.fr/wiki/Lisa
++
++# Work-area size (RAM size) = 20kB for STM32F103RB device
++set WORKAREASIZE 0x5000
++
++source [find target/stm32.cfg]
+diff --git a/tcl/interface/lisa-l.cfg b/tcl/interface/lisa-l.cfg
+new file mode 100644
+index 0000000..cc7d6cc
+--- /dev/null
++++ b/tcl/interface/lisa-l.cfg
+@@ -0,0 +1,11 @@
++#
++# Lisa/L
++#
++# http://paparazzi.enac.fr/wiki/Lisa
++#
++
++interface ft2232
++ft2232_vid_pid 0x0403 0x6010
++ft2232_device_desc "Lisa/L"
++ft2232_layout "lisa-l"
++ft2232_latency 2

Added: toolchains/stm32/paparazzi-stm32-1.0.0/summon-arm-toolchain
===================================================================
--- toolchains/stm32/paparazzi-stm32-1.0.0/summon-arm-toolchain                 
        (rev 0)
+++ toolchains/stm32/paparazzi-stm32-1.0.0/summon-arm-toolchain 2010-08-09 
13:33:15 UTC (rev 5275)
@@ -0,0 +1,454 @@
+#!/bin/bash
+# Written by Uwe Hermann <address@hidden>, released as public domain.
+# Modified by Piot Esden-Tempski <address@hidden>, released as public domain.
+# Modified by Poine <address@hidden>, released as public domain
+
+TARGET=arm-none-eabi                     # Or: TARGET=arm-none-eabi
+PREFIX=/opt/paparazzi/stm32               # Install location of your final 
toolchain
+PARALLEL=""                              # Or: PARALLEL="-j 5" for 4 CPU's
+DARWIN_OPT_PATH=/opt/local                # Path in which MacPorts or Fink is 
installed
+
+#BINUTILS=binutils-2.20.1
+BINUTILS=binutils-2.19.1
+#GCC=gcc-4.5.1
+#GCC=gcc-4.5.0
+GCC=gcc-4.4.3
+#GCC=gcc-4.4.0
+NEWLIB=newlib-1.17.0
+GDB=gdb-7.1
+#GDB=gdb-6.8
+LIBCMSIS=v1.10-2
+LIBSTM32=v3.0.0-1
+LIBSTM32USB=v3.0.1-1
+LIBSTM32_EN=1
+LIBOPENSTM32_EN=0
+LIBOPENSTM32=master
+OPENOCD=openocd-mygit
+#OPENOCD=openocd-0.4.0
+
+
+export PATH="${PREFIX}/bin:${PATH}"
+
+BUILDLOG=`pwd`/my_log
+
+case "$(uname)" in
+       Linux)
+       echo "Found Linux OS."
+       GCCFLAGS=
+       GDBFLAGS=
+       ;;
+       Darwin)
+       echo "Found Darwin OS."
+       GCCFLAGS="--with-gmp=${DARWIN_OPT_PATH} \
+                 --with-mpfr=${DARWIN_OPT_PATH} \
+                 -with-libiconv-prefix=${DARWIN_OPT_PATH}"
+        GDBFLAGS="--disable-werror"
+       ;;
+       *)
+       echo "Found Unknown OS. Aborting!"
+       exit 1
+       ;;
+esac
+
+if [ ! -e sources ]; then
+    mkdir sources
+fi
+
+# tired of downloading ....
+cp -a /tmp/sources .
+
+cd sources
+if [ ! -e ${BINUTILS}.tar.bz2 ]; then
+       echo "Downloading binutils sources..."
+       wget -c http://ftp.gnu.org/gnu/binutils/${BINUTILS}.tar.bz2
+fi
+
+if [ ! -e ${GCC}.tar.bz2 ]; then
+       echo "Downloading gcc sources..."
+       wget -c http://ftp.gnu.org/gnu/gcc/${GCC}/${GCC}.tar.bz2
+fi
+
+if [ ! -e ${NEWLIB}.tar.gz ]; then
+       echo "Downloading newlib sources..."
+       wget -c ftp://sources.redhat.com/pub/newlib/${NEWLIB}.tar.gz
+fi
+
+if [ ! -e ${GDB}.tar.bz2 ]; then
+       echo "Downloading gdb sources..."
+       wget -c http://ftp.gnu.org/gnu/gdb/${GDB}.tar.bz2
+fi
+
+if [ ${LIBSTM32_EN} != 0 ]; then
+if [ ! -e libcmsis-${LIBCMSIS}.tar.bz2 ]; then
+       echo "Cloning libcmsis sources..."
+       git clone git://git.open-bldc.org/libcmsis.git
+        cd libcmsis
+        git archive --format=tar --prefix=libcmsis-${LIBCMSIS}/ ${LIBCMSIS} | \
+            bzip2 --stdout > ../libcmsis-${LIBCMSIS}.tar.bz2
+        cd ..
+        rm -rf libcmsis
+fi
+
+if [ ! -e libstm32-${LIBSTM32}.tar.bz2 ]; then
+       echo "Cloning libstm32 sources..."
+       git clone git://git.open-bldc.org/libstm32.git
+        cd libstm32
+        git archive --format=tar --prefix=libstm32-${LIBSTM32}/ ${LIBSTM32} | \
+            bzip2 --stdout > ../libstm32-${LIBSTM32}.tar.bz2
+        cd ..
+        rm -rf libstm32
+fi
+
+if [ ! -e libstm32usb-${LIBSTM32USB}.tar.bz2 ]; then
+       echo "Cloning libstm32usb sources..."
+       git clone git://git.open-bldc.org/libstm32usb.git
+        cd libstm32usb
+        git archive --format=tar --prefix=libstm32usb-${LIBSTM32USB}/ 
${LIBSTM32USB} | \
+            bzip2 --stdout > ../libstm32usb-${LIBSTM32USB}.tar.bz2
+        cd ..
+        rm -rf libstm32usb
+fi
+fi
+
+if [ ${LIBOPENSTM32_EN} != 0 ]; then
+if [ ! -e libopenstm32-${LIBOPENSTM32}.tar.bz2 ]; then
+       echo "Cloning libopenstm32 sources..."
+       git clone git://libopenstm32.git.sourceforge.net/gitroot/libopenstm32
+        cd libopenstm32
+        git archive --format=tar --prefix=libopenstm32-${LIBOPENSTM32}/ 
${LIBOPENSTM32} | \
+            bzip2 --stdout > ../libopenstm32-${LIBOPENSTM32}.tar.bz2
+        cd ..
+        rm -rf libopenstm32
+fi
+fi
+
+if [ ! -e ${OPENOCD}.tar.bz2 ]; then
+       echo "Cloning openocd sources..."
+       git clone git://openocd.git.sourceforge.net/gitroot/openocd/openocd
+        pushd openocd
+        git checkout 28ddefd0659048773fd6066d0265fca76ca036d5  
+        git archive --format=tar --prefix=${OPENOCD}/ master | \
+            bzip2 --stdout > ../${OPENOCD}.tar.bz2
+        popd
+        rm -rf openocd
+#      echo "Downloading openocd sources..."
+#      wget -c 
http://downloads.sourceforge.net/project/openocd/openocd/0.4.0/${OPENOCD}.tar.bz2?use_mirror=hivelocity
+#       piotr patch august 4 2010 : 28ddefd0659048773fd6066d0265fca76ca036d5
+#       previous patch 2a17fd9f9b51516a830ba4b3ae2f2284929ff266
+fi
+
+cd ..
+
+if [ ! -e build ]; then
+    mkdir build
+fi
+
+if [ ! -e .${BINUTILS}.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking ${BINUTILS}"
+    echo "******************************************************************"
+    tar xfj sources/${BINUTILS}.tar.bz2
+    cd build
+    echo "******************************************************************"
+    echo "* Configuring ${BINUTILS}"
+    echo "******************************************************************"
+    ../${BINUTILS}/configure --target=${TARGET} \
+                             --prefix=${PREFIX} \
+                             --enable-interwork \
+                             --enable-multilib \
+                            --with-gnu-as \
+                             --with-gnu-ld \
+                             --disable-nls \
+                             --disable-werror >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Building ${BINUTILS}"
+    echo "******************************************************************"
+    make ${PARALLEL} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing ${BINUTILS}"
+    echo "******************************************************************"
+    make install >> ${BUILDLOG} 2>&1 || exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up ${BINUTILS}"
+    echo "******************************************************************"
+    touch .${BINUTILS}.build
+    rm -rf build/* ${BINUTILS}
+fi
+
+if [ ! -e .${GCC}-boot.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking ${GCC}-boot"
+    echo "******************************************************************"
+    tar xfj sources/${GCC}.tar.bz2
+    cd build
+    echo "******************************************************************"
+    echo "* Configuring ${GCC}-boot"
+    echo "******************************************************************"
+    ../${GCC}/configure --target=${TARGET} \
+                        --prefix=${PREFIX} \
+                        --enable-interwork \
+                        --enable-multilib \
+                        --enable-languages="c" \
+                        --with-newlib \
+                       --with-cpu=cortex-m3 \
+                        --with-tune=cortex-m3 \
+                        --with-mode=thumb \
+                        --with-float=soft \
+                       --without-headers \
+                        --with-gnu-as \
+                        --with-gnu-ld \
+                        --disable-nls \
+                        --disable-shared \
+                        --disable-threads \
+                     ${GCCFLAGS} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Building ${GCC}-boot"
+    echo "******************************************************************"
+    make ${PARALLEL} all-gcc  >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing ${GCC}-boot"
+    echo "******************************************************************"
+    make install-gcc >> ${BUILDLOG} 2>&1 || exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up ${GCC}-boot"
+    echo "******************************************************************"
+    touch .${GCC}-boot.build
+    rm -rf build/* ${GCC}
+fi
+
+if [ ! -e .${NEWLIB}.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking ${NEWLIB}"
+    echo "******************************************************************"
+    tar xfz sources/${NEWLIB}.tar.gz
+    cd build
+    echo "******************************************************************"
+    echo "* Configuring ${NEWLIB}"
+    echo "******************************************************************"
+    ../${NEWLIB}/configure --target=${TARGET} \
+                           --prefix=${PREFIX} \
+                           --enable-interwork \
+                           --enable-multilib \
+                           --with-gnu-as \
+                           --with-gnu-ld \
+                           --disable-nls \
+                          --disable-shared \
+                           --disable-newlib-supplied-syscalls >> ${BUILDLOG}  
2>&1 || exit
+    echo "******************************************************************"
+    echo "* Building ${NEWLIB}"
+    echo "******************************************************************"
+    make ${PARALLEL} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing ${NEWLIB}"
+    echo "******************************************************************"
+    make install >> ${BUILDLOG} 2>&1 || exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up ${NEWLIB}"
+    echo "******************************************************************"
+    touch .${NEWLIB}.build
+    rm -rf build/* ${NEWLIB}
+fi
+
+# Yes, you need to build gcc again!
+if [ ! -e .${GCC}.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking ${GCC}"
+    echo "******************************************************************"
+    tar xfj sources/${GCC}.tar.bz2
+    cd build
+    echo "******************************************************************"
+    echo "* Configuring ${GCC}"
+    echo "******************************************************************"
+    ../${GCC}/configure --target=${TARGET} \
+                        --prefix=${PREFIX} \
+                        --enable-interwork \
+                        --enable-multilib \
+                        --enable-languages="c" \
+                        --with-newlib \
+                       --with-float=soft \
+                       --with-cpu=cortex-m3 \
+                        --with-tune=cortex-m3 \
+                        --with-mode=thumb \
+                        --disable-shared \
+                       --disable-threads \
+                       --disable-nls \
+                        --with-gnu-as \
+                        --with-gnu-ld \
+                     ${GCCFLAGS} >> ${BUILDLOG}  2>&1 || exit
+    echo "******************************************************************"
+    echo "* Building ${GCC}"
+    echo "******************************************************************"
+    make ${PARALLEL} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing ${GCC}"
+    echo "******************************************************************"
+    make install >> ${BUILDLOG} 2>&1 || exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up ${GCC}"
+    echo "******************************************************************"
+    touch .${GCC}.build
+    rm -rf build/* ${GCC}
+fi
+
+if [ ! -e .${GDB}.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking ${GDB}"
+    echo "******************************************************************"
+    tar xfj sources/${GDB}.tar.bz2
+    cd build
+    echo "******************************************************************"
+    echo "* Configuring ${GDB}"
+    echo "******************************************************************"
+    ../${GDB}/configure --target=${TARGET} \
+                        --prefix=${PREFIX} \
+                        --enable-interwork \
+                        --enable-multilib  \
+                        --disable-werror   \
+                       ${GDBFLAGS} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Building ${GDB}"
+    echo "******************************************************************"
+    make ${PARALLEL} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing ${GDB}"
+    echo "******************************************************************"
+    make install >> ${BUILDLOG} 2>&1 || exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up ${GDB}"
+    echo "******************************************************************"
+    touch .${GDB}.build
+    rm -rf build/* ${GDB}
+fi
+
+if [ ${LIBSTM32_EN} != 0 ]; then
+if [ ! -e .libcmsis-${LIBCMSIS}.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking libcmsis-${LIBCMSIS}"
+    echo "******************************************************************"
+    tar xfj sources/libcmsis-${LIBCMSIS}.tar.bz2
+    cd libcmsis-${LIBCMSIS}
+    echo "******************************************************************"
+    echo "* Building libcmsis-${LIBCMSIS}"
+    echo "******************************************************************"
+    make arch_prefix=${TARGET} prefix=${PREFIX} 2>&1 >> ${BUILDLOG} || exit
+    echo "******************************************************************"
+    echo "* Installing libcmsis-${LIBCMSIS}"
+    echo "******************************************************************"
+    make arch_prefix=${TARGET} prefix=${PREFIX} install 2>&1 >> ${BUILDLOG} || 
exit
+    cd ..
+    PATCH_CMSIS=`pwd`/patch_libcmsis
+    pushd ${PREFIX}
+    patch -p2 < ${PATCH_CMSIS}
+    popd
+    echo "******************************************************************"
+    echo "* Cleaning up libcmsis-${LIBCMSIS}"
+    echo "******************************************************************"
+    touch .libcmsis-${LIBCMSIS}.build
+    rm -rf libcmsis-${LIBCMSIS}
+fi
+
+if [ ! -e .libstm32-${LIBSTM32}.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking libstm32-${LIBSTM32}"
+    echo "******************************************************************"
+    tar xfj sources/libstm32-${LIBSTM32}.tar.bz2
+    cd libstm32-${LIBSTM32}
+    echo "******************************************************************"
+    echo "* Patching libstm32-${LIBSTM32}"
+    echo "******************************************************************"
+    patch -p1 < ../patch_libstm32 >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Building libstm32-${LIBSTM32}"
+    echo "******************************************************************"
+    make arch_prefix=${TARGET} prefix=${PREFIX} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing libstm32-${LIBSTM32}"
+    echo "******************************************************************"
+    make arch_prefix=${TARGET} prefix=${PREFIX} install >> ${BUILDLOG} 2>&1 || 
exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up libstm32-${LIBSTM32}"
+    echo "******************************************************************"
+    touch .libstm32-${LIBSTM32}.build
+    rm -rf libstm32-${LIBSTM32}
+fi
+
+if [ ! -e .libstm32usb-${LIBSTM32USB}.build ]; then
+    echo "******************************************************************"
+    echo "* Unpacking libstm32usb-${LIBSTM32USB}"
+    echo "******************************************************************"
+    tar xfj sources/libstm32usb-${LIBSTM32USB}.tar.bz2
+    cd libstm32usb-${LIBSTM32USB}
+    echo "******************************************************************"
+    echo "* Building libstm32usb-${LIBSTM32USB}"
+    echo "******************************************************************"
+    make arch_prefix=${TARGET} prefix=${PREFIX} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing libstm32usb-${LIBSTM32USB}"
+    echo "******************************************************************"
+    make arch_prefix=${TARGET} prefix=${PREFIX} install >> ${BUILDLOG} 2>&1 || 
exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up libstm32usb-${LIBSTM32USB}"
+    echo "******************************************************************"
+    touch .libstm32usb-${LIBSTM32USB}.build
+    rm -rf libstm32usb-${LIBSTM32USB}
+fi
+fi
+
+if [ $LIBOPENSTM32_EN != 0 ]; then
+    echo "******************************************************************"
+    echo "* Unpacking libopenstm32-${LIBOPENSTM32}"
+    echo "******************************************************************"
+    tar xfj sources/libopenstm32-${LIBOPENSTM32}.tar.bz2
+    cd libopenstm32-${LIBOPENSTM32}
+    echo "******************************************************************"
+    echo "* Building libopenstm32-${LIBOPENSTM32}"
+    echo "******************************************************************"
+    make PREFIX=${TARGET} DESTDIR=${PREFIX} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************"
+    echo "* Installing libopenstm32-${LIBOPENSTM32}"
+    echo "******************************************************************"
+    make PREFIX=${TARGET} DESTDIR=${PREFIX} install >> ${BUILDLOG} 2>&1 || exit
+    cd ..
+    echo "******************************************************************"
+    echo "* Cleaning up libopenstm32-${LIBOPENSTM32}"
+    echo "******************************************************************"
+    touch .libopenstm32-${LIBOPENSTM32}.build
+    rm -rf libopenstm32-${LIBOPENSTM32}
+fi
+
+
+if [ ! -e .${OPENOCD}.build ]; then
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    echo "* Unpacking openocd-${OPENOCD}"                                     
| tee -a ${BUILDLOG}
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    tar xfj sources/${OPENOCD}.tar.bz2
+    cd ${OPENOCD}
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    echo "* Configuring ${OPENOCD}"                                           
| tee -a ${BUILDLOG}
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    patch -p1 < ../patch_openocd
+    ./bootstrap  >> ${BUILDLOG} 2>&1 || exit
+    ./configure --prefix=${PREFIX} --enable-maintainer-mode \
+                --enable-ft2232_libftdi >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    echo "* Building ${OPENOCD}"                                              
| tee -a ${BUILDLOG}
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    make ${PARALLEL} >> ${BUILDLOG} 2>&1 || exit
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    echo "* Installing ${OPENOCD}"                                            
| tee -a ${BUILDLOG}
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    make install >> ${BUILDLOG} 2>&1 || exit
+    cd ..
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    echo "* Cleaning up ${OPENOCD}"                                           
| tee -a ${BUILDLOG}
+    echo "******************************************************************" 
| tee -a ${BUILDLOG}
+    touch .${OPENOCD}.build
+    rm -rf build/* ${OPENOCD}
+fi


Property changes on: toolchains/stm32/paparazzi-stm32-1.0.0/summon-arm-toolchain
___________________________________________________________________
Added: svn:executable
   + *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]