From d2d0c5f3bceb78cfaf3255acb4ac7312c7bf4683 Mon Sep 17 00:00:00 2001 From: travisutk Date: Mon, 17 May 2010 22:34:21 +0000 Subject: [PATCH] Updated Makefile to build py2exe. Py2exe only compiles on Windows, rsync caused a bluescreen for me. git-svn-id: https://svn.code.sf.net/p/goodfet/code/trunk@516 12e2690d-a6be-4b82-a7b7-67c4a43b65c8 --- client/Makefile | 46 +++++++++++++++++++++++++++++++++++++++++++++- client/p2e.txt | 11 +++++++++++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 client/p2e.txt diff --git a/client/Makefile b/client/Makefile index df6d840..2f05579 100644 --- a/client/Makefile +++ b/client/Makefile @@ -6,4 +6,48 @@ link: mkdir -p /usr/local/bin ln -s `pwd`/goodfet `pwd`/goodfet.* /usr/local/bin/ install: - #Try 'make link' instead. + echo "Try 'make link' instead." + +py2exepub: +#publish the windows build. + rsync --exclude .svn -ave ssh tmp/goodfet.zip travisutk,goodfet@web.sourceforge.net:htdocs/dist/gfwin.zip +py2exe: +#Run this from Win32 with Python, py2exe, py-serial, and GNU utils. +#MSP430 Client + sed s/PYTHONCONSOLE/goodfet.msp430/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gf430.exe +#Monitor + sed s/PYTHONCONSOLE/goodfet.monitor/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfmon.exe +#BSL + sed s/PYTHONCONSOLE/goodfet.bsl/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfbsl.exe +#BSL + sed s/PYTHONCONSOLE/goodfet.bsl/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfbsl.exe +#AVR + sed s/PYTHONCONSOLE/goodfet.avr/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfavr.exe +#Chipcon + sed s/PYTHONCONSOLE/goodfet.cc/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfcc.exe +#SPI Flash + sed s/PYTHONCONSOLE/goodfet.spiflash/ setup.py + python setup.py py2exe + mv dist/goodfet.exe dist/gfspi.exe +#Goodfet. This must be last. + sed s/PYTHONCONSOLE/goodfet/ setup.py + python setup.py py2exe +# mv dist/goodfet.exe dist/goodfet.exe +#Now package it all. + rm -rf tmp + mkdir tmp\goodfet + mv dist/* tmp/goodfet/ + cd tmp && zip -r goodfet.zip goodfet + diff --git a/client/p2e.txt b/client/p2e.txt new file mode 100644 index 0000000..c44ca0d --- /dev/null +++ b/client/p2e.txt @@ -0,0 +1,11 @@ +#!/usr/bin/env python +# GoodFET py2exe Script +# +# Written poorly by Q, amended by Travis. +# PYTHONCONSOLE is rewritten by sed to be the proper name. +# Build with 'make py2exe' on Win32 with Python, py2exe, py-serial, and GNU. + +from distutils.core import setup +import py2exe + +setup(console=['PYTHONCONSOLE']) -- 2.20.1