[Python-modules-commits] r11081 - in packages/pynxt/trunk (10 files)

bzed at users.alioth.debian.org bzed at users.alioth.debian.org
Sun Jan 10 14:40:57 UTC 2010


    Date: Sunday, January 10, 2010 @ 14:40:56
  Author: bzed
Revision: 11081

Add old pynxt stuff again.

Added:
  packages/pynxt/trunk/debian/
  packages/pynxt/trunk/debian/changelog
  packages/pynxt/trunk/debian/compat
  packages/pynxt/trunk/debian/control
  packages/pynxt/trunk/debian/copyright
  packages/pynxt/trunk/debian/fwexec.1
  packages/pynxt/trunk/debian/fwflash.1
  packages/pynxt/trunk/debian/manpages
  packages/pynxt/trunk/debian/pycompat
  packages/pynxt/trunk/debian/rules

Added: packages/pynxt/trunk/debian/changelog
===================================================================
--- packages/pynxt/trunk/debian/changelog	                        (rev 0)
+++ packages/pynxt/trunk/debian/changelog	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1,27 @@
+pynxt (0.0.1-2) UNRELEASED; urgency=low
+
+  [ Piotr Ożarowski ]
+  * Rename XS-Vcs-* fields to Vcs-* (dpkg supports them now)
+
+  [ Sandro Tosi ]
+  * debian/control
+    - uniforming Vcs-Browser field
+  * debian/control
+    - switch Vcs-Browser field to viewsvn
+
+  [ Bernd Zeimetz ]
+  * debian/control:
+    - Updating my email address.
+
+  [ Carlos Galisteo ]
+  * debian/control:
+    - Added Homepage field.
+
+ -- Bernd Zeimetz <bzed at debian.org>  Sun, 02 Mar 2008 22:21:52 +0100
+
+pynxt (0.0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #444485)
+
+ -- David Anderson <dave at natulte.net>  Thu, 27 Sep 2007 20:04:16 +0200
+

Added: packages/pynxt/trunk/debian/compat
===================================================================
--- packages/pynxt/trunk/debian/compat	                        (rev 0)
+++ packages/pynxt/trunk/debian/compat	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1 @@
+5

Added: packages/pynxt/trunk/debian/control
===================================================================
--- packages/pynxt/trunk/debian/control	                        (rev 0)
+++ packages/pynxt/trunk/debian/control	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1,24 @@
+Source: pynxt
+Section: python
+Priority: optional
+Maintainer: David Anderson <dave at natulte.net>
+Uploaders: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>, Bernd Zeimetz <bzed at debian.org>
+Build-Depends: debhelper (>= 5), python-all
+Build-Depends-Indep: python-support (>= 0.3)
+Standards-Version: 3.7.2
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/pynxt/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pynxt/trunk/
+Homepage: https://ssl.natulte.net/nxos/
+
+Package: python-nxt
+Architecture: all
+Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}, python-pyusb (>= 0.4)
+Description: Lego Mindstorms NXT Python interface
+ PyNXT is a Python module that enables developers to communicate with
+ Lego Mindstorms NXT bricks at a low level. It currently facilitates
+ scanning the USB chain for a NXT brick and implements the SAM-BA
+ bootloader communication protocol.
+ .
+ It comes with two utilities, fwflash and fwexec, which can be used to
+ write a firmware to either flash memory or RAM, and execute it from
+ there.

Added: packages/pynxt/trunk/debian/copyright
===================================================================
--- packages/pynxt/trunk/debian/copyright	                        (rev 0)
+++ packages/pynxt/trunk/debian/copyright	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1,30 @@
+This package was debianized by David Anderson <dave at natulte.net> on
+Thu, 27 Sep 2007 20:04:16 +0200.
+
+It was downloaded from https://ssl.natulte.net/nxos/devel
+
+Upstream Author: David Anderson <dave at natulte.net>
+
+Copyright: 2006, 2007 David Anderson
+
+License:
+
+   This package 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 of the License, or
+   (at your option) any later version.
+
+   This package 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 this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL-2'.
+
+The Debian packaging is (C) 2007, David Anderson <dave at natulte.net> and
+is licensed under the GPL, see above.

Added: packages/pynxt/trunk/debian/fwexec.1
===================================================================
--- packages/pynxt/trunk/debian/fwexec.1	                        (rev 0)
+++ packages/pynxt/trunk/debian/fwexec.1	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1,64 @@
+.\" 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 "fwexec" 1 "September 28, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+fwflash \- Execute a Lego Mindstorms NXT firmware from RAM
+.SH SYNOPSIS
+.B fwexec
+.I file "load-address"
+.BR
+.SH DESCRIPTION
+.B fwexec
+is a program that takes a firmware image for the Lego Mindstorms NXT,
+uploads it to the RAM of a brick connected to the computer by its USB
+cable, and executes it directly from RAM. This is meant for use by
+developers of firmwares, so that they can test their code without
+causing wear and tear to the flash chip (and especially the region lock
+bits, which have a very limited lifespan).
+.PP
+The Lego Mindstorms NXT brick should be put into reset mode (also known
+as "clicking brick" mode) by pressing the button hidden in the top-left
+whole of its underside.
+.PP
+Note that
+.B fwexec
+does not validate the contents of the firmware image (how could it?). It
+only checks that the firmware image is smaller than 56kB, ensuring that
+it can fit into the NXT's RAM without clobbering the area reserved by
+the bootloader.
+.PP
+Further note that firmwares passed to
+.I fwflash
+cannot be passed to
+.I fwexec
+unmodified. To be executable in-place without being written to flash
+memory, a firmware needs to be compiled in a different way. Check the
+Lejos or NxOS projects for examples of how to compile a firmware for
+in-place execution.
+.PP
+Finally, note that since nothing is written to non-volatile memory by
+.I fwexec
+, the brick will reboot into the SAM-BA bootloader if you power down the
+brick. If you want to write your firmware to non-volatile memory, you
+should use
+.I fwflash
+instead.
+.SH OPTIONS
+This program follows 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 fwexec (1).
+.SH AUTHOR
+This manual page was written by David Anderson <dave at natulte.net>.
+Send bug reports or comments to the above address.

Added: packages/pynxt/trunk/debian/fwflash.1
===================================================================
--- packages/pynxt/trunk/debian/fwflash.1	                        (rev 0)
+++ packages/pynxt/trunk/debian/fwflash.1	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1,48 @@
+.\" 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 "fwflash" 1 "September 28, 2007"
+.\" Please adjust this date whenever revising the manpage.
+.SH NAME
+fwflash \- Flash a Lego Mindstorms NXT firmware
+.SH SYNOPSIS
+.B fwflash
+.I file
+.BR
+.SH DESCRIPTION
+.B fwflash
+is a program that takes a firmware image for the Lego Mindstorms NXT and
+writes it to the flash memory of a brick connected to the computer by
+its USB cable.
+.PP
+The Lego Mindstorms NXT brick should be put into reset mode (also known
+as "clicking brick" mode) by pressing the button hidden in the top-left
+whole of its underside.
+.PP
+Note that
+.B fwflash
+does not validate the contents of the firmware image (how could it?). It
+only checks that the firmware image is smaller than 256kB, ensuring that
+it can fit into the NXT's flash memory.
+.PP
+Once the firmware has been written to the NXT,
+.B fwflash
+automatically passes control to the firmware, meaning that your brick
+should immediately boot the newly written firmware.
+.SH OPTIONS
+This program follows 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 fwexec (1).
+.SH AUTHOR
+This manual page was written by David Anderson <dave at natulte.net>.
+Send bug reports or comments to the above address.

Added: packages/pynxt/trunk/debian/manpages
===================================================================
--- packages/pynxt/trunk/debian/manpages	                        (rev 0)
+++ packages/pynxt/trunk/debian/manpages	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1,2 @@
+debian/fwflash.1
+debian/fwexec.1

Added: packages/pynxt/trunk/debian/pycompat
===================================================================
--- packages/pynxt/trunk/debian/pycompat	                        (rev 0)
+++ packages/pynxt/trunk/debian/pycompat	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1 @@
+2

Added: packages/pynxt/trunk/debian/rules
===================================================================
--- packages/pynxt/trunk/debian/rules	                        (rev 0)
+++ packages/pynxt/trunk/debian/rules	2010-01-10 14:40:56 UTC (rev 11081)
@@ -0,0 +1,128 @@
+#!/usr/bin/make -f
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+PKGNAME := python-pynxt
+PYVERS := $(shell pyversions -r)
+GCCVER := 4.4
+
+
+# Setting the rebuild_flash_driver option will do a complete rebuild of
+# the flash driver blob, which includes building the appropriate
+# cross-compiler.
+ifneq (,$(findstring rebuild_flash_driver,$(DEB_BUILD_OPTIONS)))
+
+#first find our build dependencies:
+GCC_SOURCE = $(shell dpkg -L gcc-$(GCCVER)-source | grep "/usr/src/gcc-$(GCCVER)/gcc-$(GCCVER).*.tar.bz2")
+GCC_DIR = $(shell tar tfj $(GCC_SOURCE) | head -1 | sed 's,/.*,,')
+MULTILIB_CONFIG=$(CURDIR)/$(GCC_DIR)/gcc/config/arm/t-arm-elf
+
+BINUTILS_SOURCE = $(shell dpkg -L binutils-source | grep "/usr/src/binutils/binutils-.*.tar.bz2")
+BINUTILS_DIR = $(shell tar tfj $(BINUTILS_SOURCE) | head -1 | sed 's,/.*,,')
+
+TOOLCHAIN_DIR=$(CURDIR)/toolchain
+
+flash_driver.bin: build-toolchain
+	export PATH=$(TOOLCHAIN_DIR)/bin:$$PATH ;\
+	    cd flash_write; $(MAKE)
+
+build-toolchain: build-binutils-stamp build-gcc-stamp
+
+build-binutils-stamp:
+	dh_testdir
+	mkdir -p $(TOOLCHAIN_DIR)
+	tar xfj $(BINUTILS_SOURCE)
+	cd $(BINUTILS_DIR) ;\
+	    ./configure --target=arm-elf --prefix=$(TOOLCHAIN_DIR) \
+	                --enable-interwork --enable-multilib \
+	                --with-float=soft ;\
+	    $(MAKE) all install
+	touch $@
+
+build-gcc-stamp:
+	dh_testdir
+	tar xfj $(GCC_SOURCE)
+	echo "MULTILIB_OPTIONS += mno-thumb-interwork/mthumb-interwork" >> $(MULTILIB_CONFIG)
+	echo "MULTILIB_DIRNAMES += normal interwork" >> $(MULTILIB_CONFIG)
+	cd $(GCC_DIR) ;\
+	    export PATH=$(TOOLCHAIN_DIR)/bin:$$PATH ;\
+	    ./configure --target=arm-elf --prefix=$(TOOLCHAIN_DIR) \
+	                --enable-interwork --enable-multilib --with-float=soft \
+	                --enable-languages="c" ;\
+	    $(MAKE) all-gcc install-gcc
+	touch $@
+
+clean_flash_driver.bin:
+	rm -f flash_driver.bin
+
+else
+
+build: build-stamp
+build-stamp: 
+	dh_testdir
+
+	set -e; \
+	for py in $(PYVERS); do  \
+	    $$py setup.py build; \
+	done
+
+	touch $@
+
+endif
+
+ifneq (,$(findstring rebuild_flash_driver,$(DEB_BUILD_OPTIONS)))
+clean_flash_driver.bin:
+	rm -f flash_driver.bin
+
+clean_toolchain:
+	for dir in $(TOOLCHAIN_DIR) $(GCC_DIR) $(BINUTILS_DIR); do \
+	    [ ! -d "$$dir" ] || rm -rf $$dir ;\
+	done
+.PHONY: clean_toolchain clean_flash_driver.bin
+clean: clean_flash_driver.bin clean_toolchain
+else
+clean:
+endif
+	dh_testdir
+	dh_testroot
+	-for py in $(PYVERS); do  \
+	    $$py setup.py clean; \
+	done
+	find . -name \*.pyc | xargs rm -f
+	rm -rf build
+	rm -f install-stamp build-stamp
+	dh_clean
+
+install: install-stamp
+install-stamp:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	set -e; \
+	for py in $(PYVERS); do  \
+	    $$py setup.py install --root=debian/$(PKGNAME); \
+	done
+	touch install-stamp
+
+binary-arch: build install
+# We have nothing to do by default.
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installman
+	dh_installdocs
+	dh_installchangelogs
+	dh_compress -X.py
+	dh_fixperms
+	dh_pysupport
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install


Property changes on: packages/pynxt/trunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *




More information about the Python-modules-commits mailing list